Program code
N10 ...
/N20 ...
N30 ...
/N40 ...
/N50 ...
/N60 ...
N70 ...
...
Skip levels
Blocks can be assigned to skip levels (max. 10), which can be activated via the user interface
or the PLC user program.
The assignment is made in the NC program using a forward slash, followed by the number of
the skip level. Only one skip level can be specified for each block.
Example:
Program code
/ ...
/0 ...
/1 N010...
/2 N020...
...
/7 N100...
/8 N080...
/9 N090...
Note
The levels to be skipped can only be changed when the control system is in the STOP/reset
state.
Note
The number of skip levels that can be used depends on a display machine data.
Note
Skipping blocks also remains active during block searches.
Note
System and user variables can also be used in conditional jumps in order to control program
execution.
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
2.2 Fundamental Principles of NC Programming
Comment
; Is executed
; Skipped
; Is executed
; Skipped
; Skipped
; Skipped
; Is executed
Comment
; Block is skipped (1st skip level)
; Block is skipped (1st skip level)
; Block is skipped (2nd skip level)
; Block is skipped (3rd skip level)
; Block is skipped (8th skip level)
; Block is skipped (9th skip level)
; Block is skipped (10th skip level)
Fundamentals
49