Unconditional Program Jumps - Siemens SINUMERIK 840Di sl Programming Manual

Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

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
GOTOF
GOTO
GOTOC
<destination>
Label
Label:
Block number
String variable
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Arithmetic Parameters and Program Jumps
"Jump instruction" with backward jump destination (towards beginning
of program)
Jump instruction with forward jump destination (towards end of
program)
Jump instruction with forward, then backward destination search (first
towards end of program and then towards beginning of program)
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)
Branch destination parameters for label, block number, or string
variable
Destination for a jump instruction
Labeling of branch destination within the program
Branch destination as main block or subblock number (e.g., 200, N300)
Variable of type string containing a label or block number
10.2 Unconditional program jumps
419

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents