Program Structures - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.14 Program Structures

1842
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.
Incorrect program structure
IFT
WHILEF
ENDI
ENDW
HEIDENHAIN Technical Manual iTNC 530 HSCI

Advertisement

Table of Contents
loading

Table of Contents