John,
What kind of edit are you doing? Are you coding with cutter comp and
finding that the start point is off by the radius of the cutter? This is a
common "error" that I have experienced. I add a vertical lead in (make sure
it has no offset) to my toolpath before turning it into a sub.
My sections for subs:
@SUBDEF
%
O#SNAME
#ONBLK G91
@ENDDEF
G90
M99
#OFFBLK
%
@GOSUB
M98 P#SNAME L#SREPT
Hope this helps,
Chris Kocourek
CNC Department Manager
Flextronics Enclosures Solutions
John Coulston
<jcoulston@cb To: SmartCAM
<[EMAIL PROTECTED]>@SMTP@Exchange
rcnc.com> cc:
Subject: [mfg-smartcam] Sub-program
question
08/29/2001
03:37 PM
Whenever I use a sub program I always have to edit the code. I usually
have to edit the first move of the sub. Does anyone have any suggestions
for using sub programs? What do your @sub sections contain. When defining
subs where is the best palace for the handle x y z? Can you change the
properties of the sub with a property change command or should you define
the sub with the values from the status bar when defining?
// sub program start for sub definition (called in place of @STPRG)
@SUBDEF
O#SNAME (#FILE)
(SUBDEF,#SNAME, NOTE USED BY #FILE)
#ONBLK #ABSI
@
//
// sub program end (called in place of @END)
@ENDDEF
G00 Z#CLEAR
M99
#OFFBLK
@
// sub program call
@GOSUB
M98 P#SNAME/// L#SREPT
G00 #ABSI
@
Thank you,
John Coulston
CBR Industries, Inc.
CNC Milling & Turning
www.cbrcnc.com
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================