Programming
10.10 Program jumps
Surface grinding
280
Programming and Operating Manual, 11/2012, 6FC5398-5CP10-3BA0
Note
Writing of PLC tags is generally limited to a maximum of three tags (elements).
Where PLC tags are to be written in rapid succession, one element will be required per write
operation.
If more write operations are to be executed than there are elements available, then block
transfer will be required (a preprocessing stop may need to be triggered).
Example:
$A_DBB[1]=1 $A_DBB[2]=2 $A_DBB[3]=3
STOPRE
$A_DBB[4]=4
10.10
Program jumps
10.10.1
Jump destination for program jumps
Functionality
A label or a block number serve to mark blocks as jump destinations for program jumps.
Program jumps can be used to branch to the program sequence.
Labels can be freely selected, but must contain a minimum of 2 and a maximum of 8 letters
or numbers of which the first two characters must be letters or underscore characters.
Labels that are in the block that serves as the jump destination are ended by a colon. They
are always at the start of a block. If a block number is also present, the label is located after
the block number.
Labels must be unique within a program.
Programming example
N10 LABEL1: G1 X20
;LABEL1 is the label, jump destination
...
TR789: G0 X10 Z20
;TR789 is the label, jump destination
- No block number existing
N100 ...
;Block number can be jump target
...