Unconditional Program Jumps - Siemens SINUMERIK 840DE Programming Manual

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Assignments to other addresses
The flexibility of an NC program lies in assigning these arithmetic parameters or expressions
with arithmetic parameters to other NC addresses. Values, expressions and arithmetic
parameters can be assigned to all addresses; Exception: address N, G and L.
When assigning, write the character " = " after the address character. It is also possible to
have an assignment with a negative leading sign. A separate block is required for
assignments to axis addresses (traversing instructions).
Example:
N10 G0 X=R2 ;Assignment to X axis
Arithmetic operations and functions
When operators/arithmetic functions are used, it is necessary to use the 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 <jump destination>
GOTOF <jump destination>
GOTO/GOTOC <jump destination variable>
Parameters
GOTOB
GOTOF
GOTO
GOTOC
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Arithmetic Parameters and Program Jumps
"Jump instruction" with backward jump destination (toward
program start)
Jump instruction with forward jump destination (toward
program end)
Jump instruction with destination search first forward then
backward (first toward end of program and then toward
beginning of program)
Suppress Alarm 14080 "Destination not found". Jump
instruction with destination search first forward then
backward (first toward end of program and then toward
beginning of program)
10.2 Unconditional program jumps
10-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents