Subroutine within gcode
Posted: Fri Jul 17, 2020 8:42 am
Does UCCNC support running a subroutine within the gcode like Mach3 does ? if so is the sysntax the same as this example ?
O0001 (MAIN PROGRAM)
G00 G90 G43
etc..
G54
M98 P0002 L1 (call to sub routine, with L being number of times to run it)
G55
M98 P0002 L1 (call to sub routine, with L being number of times to run it)
G58
M98 P0003 L1 (call to sub routine, with L being number of times to run it)
M30
O0002 (SUB PROGRAM)
(SOME CODE)
M99 (return to main program)
O0003 (SUB PROGRAM)
(SOME CODE)
M99 (return to main program)
O0001 (MAIN PROGRAM)
G00 G90 G43
etc..
G54
M98 P0002 L1 (call to sub routine, with L being number of times to run it)
G55
M98 P0002 L1 (call to sub routine, with L being number of times to run it)
G58
M98 P0003 L1 (call to sub routine, with L being number of times to run it)
M30
O0002 (SUB PROGRAM)
(SOME CODE)
M99 (return to main program)
O0003 (SUB PROGRAM)
(SOME CODE)
M99 (return to main program)