11 - 199 11 - 199
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Reading comment 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)
Starting address
Specify the starting address of the
comment data to be read.
Processing Code 10
%(3)
%(6)
Number of bytes
Specify the number of bytes to be read.
• It is possible to read comment data from 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 10.
%(2)
• • • • • •
Specify the starting address of the comment to be read.
The maximum number of bytes of comment data is the
capacity set by the parameter.
%(3)
• • • • • •
Specify the number of bytes to be read.
The allowable specification range is from 1 to 128 bytes.
Format 2 control table
%(0)
• • • • • •
Format 2 control table
• Specify 256.
%(1)
• • • • • •
Specify the number of the network to be accessed.
See Section 4.2.2 for the allowable specification range.
%(2)
• • • • • •
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.
%(3)
• • • • • •
Detailed error codes are stored here.
See Appendix 4.4.2 for the details about the error codes.
%(4)
• • • • • •
Processing code
• Specify 10.