11 - 229 11 - 229
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Processing Code 515 Reading device memory of the Q/QnA series PLC CPU
Control table format definition
Element position
Item
Description
Format 1
Format 2
Format 3
%(0)
Station number
Specify the station number of the PLC.
%(0)
%(0)
Control table
Specify a control table of format 2.
Only
applicable
to
QD51
(-R24)
%(1)
%(1)
Network number
Specify the network number.
%(2)
%(2)
Station number
Specify the station number of the PLC.
%(3)
%(3)
Detailed error code
Detailed error codes are stored here.
%(4)
Requested CPU
Specify the requested CPU.
%(1)
%(4)
%(5)
Processing code
Specify the processing code.
%(2)
%(5)
%(6)
Device code
Specify the device code.
%(3)
%(6)
%(7)
lower
%(4)
%(7)
%(8)
Device
number
higher
Specify the device number.
%(5)
%(8)
%(9)
Number of points
Specify the number of device points to
be read.
• It is possible to read the device memory of the Q/QnA series PLC 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 515 (&H203).
%(2)
• • • • • •
Specify the device using the defined code.
• See Section 4.2.5 for the code numbers.
%(3)
• • • • • •
Specify the device number (lower digit) of the device
specified in %(2). See Section 4.2.5 for the allowable
specification range.
%(4)
• • • • • •
Specify the device number (higher digit) of the device
specified in %(2). See Section 4.2.5 for the allowable
specification range.
%(5)
• • • • • •
Specify the number of device points to be read, including
the devices specified in %(2), %(3), and %(4).
The allowable specification ranges are as follows:
(a) Bit devices
• Q series CPU
• QnA series CPU
1 to 15360 points
1 to 7680 points
(b) Word devices
• Q series CPU
• QnA series CPU
1 to 960 points
1 to 480 points