EasyManua.ls Logo

Siemens SINUMERIK 828D

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
Loading...
Flexible NC programming
1.10 Program jumps and branches
Job planning
88 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Examples
Example 1: Jumps to jump markers
Program code Comments
N10 …
N20 GOTOF Label_1 ; Jump towards the end of the program to the jump
marker "Label_1".
N30 …
N40 Label_0: R1=R2+R3 ; Jump marker "Label_0" set.
N50 …
N60 Label_1: ; Jump marker "Label_1" set.
N70 …
N80 GOTOB Label_0 ; Jump in the direction of the beginning of the
program to the jump marker "Label_0".
N90 …
Example 2: Indirect jump to the block number
Program code Comments
N5 R10=100
N10 GOTOF "N"<<R10 ; Jump to the block whose block number is located
in R10.
...
N90 ...
N100 ... ; Jump destination
N110 ...
...
Example 3: Jump to variable jump destination
Program code Comments
DEF STRING[20] DESTINATION
DESTINATION = "Marker2"
GOTOF DESTINATION ; Jump in the direction of the end of the program
to the variable jump destination DESTINATION.
Marker 1: T="Drill1"
...
Marker 2: T="Drill2" ; Jump destination
...

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals