Arithmetic Parameters and Program Jumps
10.2 Unconditional program jumps
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
419
When assigning, write the character " = " after the address character. It is also possible to
have an assignment with a minus sign. A separate block is required for assignments to axis
addresses (traversing instructions).
Example:
N10 G0 X=R2 ;Assignment to the X axis
Arithmetic operations and functions
When operators/arithmetic functions are used, it is necessary to use conventional
mathematical notation. Machining priorities are set by parentheses. Otherwise, multiplication
and division take precedence over addition and subtraction. Degrees are used for the
trigonometrical functions.
10.2 Unconditional program jumps
Function
By default, main programs, subprograms, cycles and interrupt routines execute the blocks in
the sequence in which they were programmed. Program jumps can be used to modify this
sequence.
Programming
GOTOB <destination>
GOTOF <destination>
GOTO/GOTOC <destination variable>
Parameter
GOTOB
"Jump instruction" with backward jump destination (towards beginning
of program)
GOTOF
Jump instruction with forward jump destination (towards end of
program)
GOTO
Jump instruction with forward, then backward destination search (first
towards end of program and then towards beginning of program)
GOTOC
Suppress Alarm 14080 "Branch destination not found". Jump instruction
with forward, then backward destination search (first towards end of
program and then towards beginning of program)
<destination>
Branch destination parameters for label, block number, or string
variable
Label
Destination for a jump instruction
Label:
Labeling of branch destination within the program
Block number
Branch destination as main block or subblock number (e.g., 200, N300)
String variable
Variable of type string containing a label or block number