42
4 LABELS
4.7 Precautions
Precautions for creating programs
When specifying a label as an operand used in instructions, match the data type of the label with that of the operand. In
addition, when specifying a label as an operand used in instructions that control continuous data, specify the data range used
in instructions within the data range of the label.
SFT(P) instruction
SFR(P) instruction
Specify a label which has a larger data range than the search range (n) points.
Limitations on label names
Label names have the following limitations:
• A label name must start with a nonnumeric character or underscore (_). It cannot start with a number.
• Reserved words cannot be used as label names.
For details of reserved words, refer to the following.
GX Works3 Operating Manual
bLabel[0]SFT
bLabel[1]SFTP
SFTP
wLabel1.0
wLabel1.1
SFT
To shift the bits correctly, specify the array of a bit type label.
Specify the bit number of a word type label.
or
wLabel1[0]
wLabel1[1]
wLabel1[n]
10
500
20
123
-123
123
Start device number of search range
Data matched
Search range :
(n) points