My control Fanuc OM needs the S with the M29 not the first positioning move like a normal tool.  Add the following at the beginning of the file and were ever you have a tool change event.

 

 

Checks to see if it is a tap and that the tapping cycle is set to 2 in the process operation.

 

#EVAL(#cyc=jos(cycle))

#EVAL(#type=jos(op_type))

#IF(#cyc=1,#AND#type=206)<

 G90 G54< #MOV>< #DCOMP#EXC D#DOFF> X#XPOS Y#YPOS T#NTOOL

>#ELSE<

 G90 G54< #MOV>< #DCOMP#EXC D#DOFF> X#XPOS Y#YPOS #SPNDL S#SPEED T#NTOOL

>

 

 

 

 

 

// tap

@OP_TAP

// Use G74 (M04=left hand tapping) or G84 (M03=tapping cycle)

#IF(#U1)<#RESET(#CYCLE,#XPOS,#YPOS,#ZDPTH,#CLEAR,#FEED,#top)#EVAL(#U1=0)#EVAL(#U2=1)#EVAL(#U3=0)#EVAL(#U4=0)#EVAL(#count=0)>

#IFCHG(#CYCLE)<#RESET(#XPOS,#YPOS,#FEED,#CYCLE)>

#IFCHG(#ZDPTH)<#RESET(#CYCLE,#ZDPTH,#CLEAR,#FEED)>/// recodes cycle feed and R if depth of hole changes

#IF(#CYCLE=1,AND #U4=0)<#CALL(RIDGED)>

//

<#ABSI>< #CYCLE>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#top>< F#FEED>//<a#RTNLVL> probably wont need #rtnvvl G98 set by SMF q173-175

#ONBLK

//

//

@@CYCLE

0,G85

1,G84

2,

@

 

@RIDGED

 M29 S#SPEED

#EVAL(#U4=1)

@

 

 

 

HTH

John Coulston

 

CBR Industries, Inc.

CNC Milling & Turning

www.cbrcnc.com

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Mamontov
Sent: Friday, August 10, 2001 1:33 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] M29

 

Need insert M29( rig. tapping) before G84

CODE MUST LOOKS LIKE

M29

G84 X0. Y0.Z-.25 R.1 F4.0

X1. Y1.0

ETC.

 

ANY HELP ?

Reply via email to