Program Jumps And Branches; Return Jump To The Start Of The Program (Gotos) - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Note
The table indicates that the NC data types AXIS and FRAME cannot be directly used in the
SPRINT function. However it is possible:
● To convert the AXIS data type into a string using the AXSTRING function – which can then
be processed with SPRINT.
● To read the individual values of the FRAME data type per frame component access. As a
consequence, a REAL data type is obtained, which can be processed with SPRINT.
3.1.5

Program jumps and branches

3.1.5.1

Return jump to the start of the program (GOTOS)

The GOTOS command can be used to jump back to the beginning of a main or subprogram in
order to repeat the program.
Machine data can be used to set that for every return jump is made to the program start:
● The program runtime is set to "0".
● Workpiece counting is incremented by the value "1".
Syntax
GOTOS
Meaning
GOTOS:
Supplementary conditions
● GOTOS internally initiates a STOPRE (pre-processing stop).
● For a subprogram with data definitions (LUD variables) with the GOTOS, a jump is made to
the first program block after the definition section, i.e. data definitions are not executed
again. This is the reason that the defined variables retain the value reached in the GOTOS
block and are not reset to the standard values programmed in the definition section.
● The GOTOS command is not available in synchronized actions and technology cycles.
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Jump statement where the destination is the beginning of the program.
The execution is controlled via the NC/PLC interface signal:
DB21, to DBX384.0 (control program branching)
Value:
Meaning:
0
No return jump to the beginning of the program. Program execution is re‐
sumed with the next part program block after GOTOS.
1
Return jump to the beginning of the program. The part program is repeated.
Work preparation
3.1 Flexible NC programming
463

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents