Parametric jump call
The $GOTO command also offers the possibility to program the labels in parametric way. This enables a NC-program flow controled from outside (e.g. from PLC).
For the style of the block number <expr> at the jump call of expression labels all available mathematical types of descriptions like parameters, local and global variables and external variables are allowed.
$GOTO N <expr> Jump call
The jump call of string labels can also be programmed via external variables from type string respectively string array (see also chapter 13.5). Here the name of the label is stored in the external variable.
$GOTO V.E. ... Jump call
Programming example
N10 ...
:
N50 $GOTO NV.E.JUMP_EXPR (Jump e.g. to N200 via ext. variable)
(V.E.JUMP_EXPR including the value 200)
:
:
N100 $GOTO V.E.JUMP_STR (Jump e.g. to [CONTINUE) via ext. variable)
(V.E.JUMP_STR including the value 200)
:
:
N200: ...
:
N500:...
:
:
:
[CONTINUE]...
:
N...