I am trying to use the same tool with two different operations in a sub
program.  It codes fine but it only will use the speed and feed information
from the first operation.  Is there any way to have the sub update the
speeds and feeds when the operation changes?  I get good code when I use two
operations and I am not using a sub, the feeds and speed up date properly.


// step change without a tool change
@STEPCHG
@
//

// 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 //added back 8/29/01  removed 8/24/00 covered at end of sub
@




Thanks 

John



CBR Industries, Inc.
CNC Milling & Turning
www.cbrcnc.com

<<attachment: winmail.dat>>

Reply via email to