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

<<attachment: winmail.dat>>

Reply via email to