Manufacturing > Subroutine Programming > Examples: Subroutine Programming
Examples: Subroutine Programming
Example 1: Group vs. Individual
If an operation contains four NC sequences, and you selected sequences 1 and 3 for subroutine patterning with number of instances equal to two, the output will look like this:
Group
Individual
CALSUB / 1
CALSUB / 2
CALSUB / 3
CALSUB / 1
CALSUB / 2
CALSUB / 3
SEQ4
CALSUB / 1
CALSUB / 1
SEQ2
CALSUB / 3
CALSUB / 3
SEQ4
Example 2: Incremental Output
If Incremental is selected, the system outputs two additional commands, MODE/INCR and MODE/ABSOL, for each NC sequence that is placed in a subroutine. This triggers the post processor to process and output the data as incremental moves (the output in the subroutine is still absolute):

DEFSUB / 1

MODE / INCR

GOTO ...

(absolute output)

MODE / ABSOL

ENDSUB
Was this helpful?