11 - 322 11 - 322
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Processing Code 515 Writing data to the device memory of a 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.
Only
applicable
to QD51
(-R24)
%(0)
%(0)
Control table
Specify a control table of format 2.
%(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.
• It is possible to write data to a Q/QnA series PLC CPU’s device memory using
this code.
• Specify the following data for <control table>.
Format 1 control table
%(0)
• • • • • •
Specify the station number of the PLC CPU to which data is
written.
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) of the device specified in
%(2). See Section 4.2.5 for the allowable specification
range.
%(4)
• • • • • •
Specify the device number (higher) 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 written, 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