Specifications

Chapter 8 PAC Language Syntax
8-3
8.3 Label
A label can be used to indicate a branch destination and the position of a
statement in a program.
The following rules apply when using a label.
A label name starts with an asterisk ( * ) .
The second letter of a label name must be an arbitrary alphabet letter.
Any combination of alphabet letters and numerals can be used for the third
letter and the following letters in a label name.
The last letter of a label name must be a colon ( : ) .
A reserved word cannot be used as a label name.
A label name to be referred to must be placed at the head of a line.
An error occurs if the same label name to be referred to is duplicated.
The range in which a label can be referred to is only in the program where
the label is present.
PROGRAM WITH_LABEL
IF IO138=1 THEN*ACTION: ELSE *NOACTION:
*ACTION: SPEED 100
MOVEP,P1
DELAY 200
MOVEP,P2
*NOACTION: DELAY 200
END IF
END
Program Example Using Label