Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1745

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.35 Program Structures
January 2012
To design an easily understandable program, divide it into program sequences.
Use labels (LBL) as well as conditional and unconditional jumps. If you use
structured statements, the compiler creates the labels and jump commands.
Remember that using these labels and jump commands reduces the number
of available labels accordingly. You can nest structured statements in up to 16
levels. It is not possible to share levels.
Example:
Correct program structure
IFT
WHILEF
ENDW
ENDI
The statements IFT, IFF, WHILET, WHILEF, ENDW, UNTILT and UNTILF
require a valid gating result in the logic accumulator. They conclude the
sequence of gating operations. The statements ELSE, ENDI and REPEAT
require that all previous operations sequences have been concluded.
8.35 Program Structures
Incorrect program structure
IFT
WHILEF
ENDI
ENDW
1745

Advertisement

loading