Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 52

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

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.
Ex.
SFT(P) instruction
SET
SFTP
or
SET
SFTP
Ex.
SER(P) instruction
Start device number of search range
Specify a label which has a larger data range than the search range (n) points.
Restrictions on naming labels
The following restrictions apply when naming labels.
• Start the name with a character or underline (_). Numbers cannot be used at the beginning of label names.
• Reserved words cannot be used.
For details on the reserved words, refer to the following.
 GX Works3 Operating Manual
4 LABELS
50
4.7 Precautions
bLabel[0]
To shift the bits correctly, specify the array of the bit type label.
bLabel[1]
wLabel1.0
Specify the bit number of the word type label.
wLabel1.1
wLabel1[0]
10
wLabel1[1]
500
123
-123
20
123
wLabel1[n+1]
Data matched
Search range:
(n) points

Advertisement

Table of Contents
loading

Table of Contents