I have the SMF file add an auto lead in to apply cutter comp, but there is
no auto lead out option. I have set SMF questions 121=2 and 122=0. I then
added the following logic to the template file of out burners (notice, no Z
axis moves). This automatically adds 90� linear lead in and lead out moves
equal to the radius of the cutter. I consider these as dummy moves because
theoretically they generates no movement at the machine, but it does satisfy
the requirements of the controller for the addition and removal of cutter
comp.
There is some extra logic in the template to address closed profiles. This
is to insure that the tool movement at the machine matches the Show Path
display in SmartCAM.

All of this can be overridden if desired by using lead in and lead out moves
without offset in the model.

@STPROF
< #MOV> X#XPOS Y#YPOS
// store auto lead in start coordinates
#EVAL(#XLead=#XPOS)
#EVAL(#YLead=#YPOS)
// look ahead past auto lead in and
// store start profile coordinates
#NEXTPT
#EVAL(#XStart=#XPOS)
#EVAL(#YStart=#YPOS)



@ENDPROF
// add lead out line move to remove cutter comp
// check if comp has changed
#IFCHG(#DCOMP)<
// force linear interpolation mode
#EVAL(#MOV=1)
// store current end of profile coordinates for dummy move
#EVAL(#XST=#XPOS)
#EVAL(#YST=#YPOS)
// check if this was a closed profile
#IF(#XPOS=#XStart,#AND#YPOS=#YStart)<
// if closed profile, return to lead in coordinates
#EVAL(#XPOS=#XLead)
#EVAL(#YPOS=#YLead)
>#ELSE<
// if an open profile, calculate 90 degree lead out
#EVAL(#XPOS=#XPOS+COS(#OVANG)*#TLDIA/2)
#EVAL(#YPOS=#YPOS+SIN(#OVANG)*#TLDIA/2)
>
// add dummy line move to remove residual cutter comp
< #MOV> X#XST Y#YST
>

#IFCHG(#DCOMP)<#IF(#Units=0)<< X#XPOS Y#YPOS>>#ELSE
<< X#FMT(#XPOS,D5.2) Y#FMT(#YPOS,D5.2)>>>


============================================= 
 Fred Lauzus, CAM Programming Coordinator 
 High Steel Structures, Incorporated 
  mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.highsteel.com <http://www.highsteel.com/>  
============================================= 
  

-----Original Message-----
From: Vance Qualls [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 8:34 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Cancelling Cutter Comp


My HAAS VF-O insists on having a linear move after or on the same line as
G40. The code output by SmartCam doesn't give me this. I don't see a
question dealing with this in "Machine Define". Am I missing something? If
not, is there a way to edit the .SMF or .TMP file to get code "ready to
use"?
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================


Reply via email to