Program Structures - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.13 Program Structures

7 – 170
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 instructions in up to 16
levels. It is not possible to share levels.
Example:
Correct program structure
IFT
WHILEF
ENDW
ENDI
The instructions IFT, IFF, WHILET, WHILEF, ENDW, UNTILT and UNTILF
require a valid gating result in the logic accumulator. You conclude the
sequence of gating operations. The instructions ELSE, ENDI and REPEAT
require that all previous operations sequences have been concluded.
Incorrect program structure
IFT
WHILEF
ENDI
ENDW
HEIDENHAIN Technical Manual TNC 426, TNC 430

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents