Program Jumps To Jump Markers (Gotob, Gotof, Goto, Gotoc) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

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 GOTOS command is not available in synchronized actions and technology cycles.
Example
Program code
N10 ...
...
N90 GOTOS
...
1.10.2

Program jumps to jump markers (GOTOB, GOTOF, GOTO, GOTOC)

Function
Jump markers (labels) can be set in a program, that can be jumped to from another location
within the same program using the commands GOTOF, GOTOB, GOTO or GOTOC. Program
execution is resumed with the instruction that immediately follows the destination marker.
This means that branches can be realized within the program.
In addition to jump markers, main and sub-block numbers are possible as jump designation.
If a jump condition (IF ...) is formulated before the jump instruction, the program jump is
only executed if the jump condition is fulfilled.
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
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.
Comments
; Beginning of the program
; Jump to beginning of the program
Flexible NC programming
1.10 Program jumps and branches
93

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents