11 - 271 11 - 271
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Writing to extension file registers
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)
Block number
Specify the block number of the
extension file registers.
%(3)
%(6)
Device number
Specify the device number of the
extension file registers.
Processing Code 4
%(4)
%(7)
Number of points
Specify the number of points to be written.
• It is possible to write data to extension file registers (file registers with block
number 1 or greater) 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 4.
%(2)
• • • • • •
Specify the block number of the extension file registers.
• If 0 is specified for the block number, data is written to
the file registers of the PLC CPU.
(This is the same processing as writing to R by
writing device memory.)
• If a number greater than 0 is specified for the block
number, data is written to the extension file registers.
• The maximum value that can be specified for the block
number varies depending on the memory cassette
mounted on the PLC CPU.
%(3)
• • • • • •
Specify the device number of the extension file registers.
The maximum value that can be specified for the device
number is the value set in the parameters of the PLC CPU.
%(4)
• • • • • •
Specify the number of device points to be written, including
the device specified in %(3).
The allowable specification range is from 1 to 64 points.