11 - 172 11 - 172
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Reading device memory data
Control table format definition
Element position
Item
Description
Format 1
Format 2
%(0)
• • • • • • •
Station number
Specify the station number of the PLC.
%(0)
Control table
Specify a control table of format 2.
%(1)
Network number
Specify the network number.
%(2)
Station number
Specify the station number of the PLC.
%(3)
Detailed error code
Detailed error codes are stored here.
%(1)
%(4)
Processing code
Specify the processing code.
%(2)
%(5)
Processing unit
Specify the device processing unit.
%(3)
%(6)
Device code
Specify the device code.
%(4)
%(7)
Device number
Specify the device number.
Processing Code 1
%(5)
%(8)
Number of points
Specify the number of points to be read.
• It is possible to read data of device memory other than extension file registers of
the PLC CPU using this code.
• Specify the following data for <control table>.
Format 1 control table
%(0)
• • • • • •
Specify the station number of the PLC CPU from which
data is to be read.
See Section 4.2.2 for the allowable specification range.
%(1)
• • • • • •
Processing code
• Specify 1.
%(2)
• • • • • •
Specify the device processing unit.
• When reading in bit units • • • • • 1
• When reading in word units • • • 2
Always specify "2" when reading from word devices.
%(3)
• • • • • •
Specify the device using the defined code.
See Section 4.2.5 for the code numbers.
%(4)
• • • • • •
Specify the device number of the device specified in %(3).
See Section 4.2.5 for the allowable specification range.
Note, however, that values other than 0 or multiples of 16
cannot be specified for the device number when reading
from bit devices in word units.
%(5)
• • • • • •
Specify the number of points of device memory to be read,
including the device specified in %(3) and %(4).
The allowable specification range is as follows: