8
Subprograms and program section repeats | Labeling subprograms and program section repeats
8.1
Labeling subprograms and program
section repeats
Subprograms and program section repeats enable you to program a
machining sequence once and then run it as often as necessary.
Label
The beginnings of subprograms and program section repeats in
NC programs are marked by (LBL) labels.
A LABEL contains a number between 1 and 65535 or a name to be
defined by you. LABEL names can have up to 32 characters.
Permitted characters: # $ % & , - _ . 0 1 2 3 4 5 6 7 8 9 @
a b c d e f g h i j k l m n o p q r s t u v w x y z- A B C D E F
G H I J K L M N O P Q R S T U V W X Y Z
Impermissible characters: <blank> ! " ' ( ) * + : ; < = > ? [ / ]
^ ` { | } ~
Each LABEL number or LABEL name can be assigned only once
within an NC program, using the LABEL SET. The quantity of label
names that may be entered is limited only by the amount of internal
memory.
Do not use a label number or label name more than once!
Label 0 (LBL 0) is used exclusively to mark the end of a subprogram
and can therefore be used as often as desired.
Before creating your NC program, compare the
subprogram and program section repeat programming
techniques using If-Then decisions.
You can thereby avoid possible misunderstandings and
programming errors.
Further information: "If-then decisions with Q
parameters", Page 280
244
HEIDENHAIN | TNC 620 | Klartext Programming User's Manual | 01/2022