Programming instructions
NC Programming 17VRS Commands for Controlling Processes and Programs
9-9
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Branch Absolute
‘BRA’
The "BRA" command branches to the label set in the command parame-
ter and continues program execution there.
BRA <branch label>
BRA .WEITER
Jump to NC Program
‘JMP’
The "JMP" command jumps to the NC program number set in the com-
mand parameter and continues program execution in this new NC pro-
gram in the first NC block.
JMP <program number[1..99]>
JMP 50
JMP <variable>
JMP @100
The jump can go to any desired NC program in the active NC program
package of the NC memory. The reverse vectors an not changed by a
jump to a different NC program.
9.4 Subroutines
Subroutine Technique
When workpieces are being machined it is sometimes necessary to re-
peat a given operation a number of times. This operation could be pro-
grammed as a subroutine so that the similar processing sequences could
be called repeatedly. This subroutine could be called from any point in the
NC machining program as a complete function module.
Subroutines are organized in the CNC based on the following structure.
NC Program Memory B
Pro
g
ram No. 0
Machine Builder´s
and INDRAMAT GmbH
Subroutines
and Cycles
NC Cycles Memory
NC Program [1..98]
Advance Program
Reverse Pro
g
ram
Subroutines in the
Advance and Reverse
Program
Pro
g
ram No. 99
Subroutines
and
NC Program Package-
NC Program Memory A
Specific Cycles
9
Fig. 9-3: Program organization in the CNC
Subroutines which are specific to the NC program are programmed in the
current NC program. Subroutines which are specific to the NC package
are programmed in the program using number "99". They can be called
from any NC program in the package. Parameterizable subroutines and
machining NC cycles are programmed/loaded in the NC cycles memory.
These NC cycle programs can be called from any NC memory, process
and NC program package.
Syntax
Syntax