ACU-RITE 3500i 235
7.4 Sub-programs
Defining a sub-program
To define and enter the blocks for a sub-program, use the Sub
command to designate the start of the sub-program along with a
number to identify that particular sub-program. sub-programs need to
be entered after the end of the main program.
Select Sub Programs and then "Sub" from the pop-up
menu.
Conversational format: Sub
G-code format: O[n]
Ending a sub-program
To designate the end of the sub-program, use the EndSub command.
Select Sub Programs and then "EndSub" from the
pop-up menu.
Conversational format: EndSub
G-code format: M99
Calling a sub-program
To execute a sub-program, use the Call command in the main program
or in another sub-program. The 3500i will leave the current program
position, execute the sub-program, and then return back to that
program position and continue program run from that point.
Select Sub Programs and then "Call" from the pop-up
menu.
Conversational format: Call
G-code format: M98 Pn Ln
Field Code Description
Sub O The number to be used to uniquely identify
the sub-program. (Required)
Field Code Description
Call P The uniquely identifying number of the
sub-program to be called and executed.
(Required)