EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK 828D

Siemens SINUMERIK 828D Programming Manual

Siemens SINUMERIK 828D
822 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #86 background imageLoading...
Page #86 background image
Flexible NC programming
1.10 Program jumps and branches
Job planning
86 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
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.
Syntax
GOTOB <jump destination>
IF <jump condition> = TRUE GOTOB <jump destination>
GOTOF <jump destination>
IF <jump condition> = TRUE GOTOF <jump destination>
GOTO <jump destination>
IF <jump condition> = TRUE GOTO <jump destination>
GOTOC <jump destination>
IF <jump condition> = TRUE GOTOC <jump destination>
Significance
GOTOB: Jump instruction with jump destination towards the beginning of the
program.
GOTOF: Jump instruction with jump destination towards the end of the program.
GOTO: Jump instruction with jump destination search. The search is first
made in the direction of the end of the program, then in the direction of
the beginning of the program.
GOTOC: Same effect as for GOTO with the difference that Alarm 14080 "Jump
designation not found" is suppressed.
This means that program execution is not interrupted in the case that
the jump destination search is unsuccessful – but is continued with the
program line following the GOTOC command.
Jump destination parameter
Possible data include:
<jump marker>: Jump destination is the jump marker (label) set
in the program with a user-defined name: <
j
ump
marker>:
<block number>: Jump destination is main block or sub-block
number (e.g.:
200, N300)
<jump
destination>
:
STRING type
variable:
Variable jump destination. The variable stands
for a jump marker or a block number.

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 828D and is the answer not in the manual?

Siemens SINUMERIK 828D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 828D
CategoryControl Systems
LanguageEnglish

Related product manuals