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]

Field

Code

Description

Sub

O

The number to be used to uniquely identify

 

 

the sub-program. (Required)

 

 

 

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

Call

P

The uniquely identifying number of the

 

 

sub-program to be called and executed.

 

 

(Required)

 

 

 

7.4 Sub-programs

ACU-RITE 3500i

235

Page 261
Image 261
Acu-Rite CNC 3500i user manual Defining a sub-program, Ending a sub-program, Calling a sub-program, 235