8 DEVICE ACCESS
8.1 Data to be Specified in Commands
67
8
8 DEVICE ACCESS
This chapter explains the commands to read and write devices.
8.1 Data to be Specified in Commands
This section explains the contents and specification methods for data items which are set in each command related to device
access.
Devices
Specify the device to be accessed by a device code and a device number.
• The data order differs between ASCII code or binary code.
• The data size to be set differs between MELSEC-Q/L series subcommands (subcommand: 0000, 0001) and MELSEC iQ-R
series subcommands (subcommand: 0002, 0003).
When accessing any of the following devices, use the device extension specification (subcommand: 008).
• Link direct device
• Module access device
• CPU buffer memory access device
For the message format for device extension specification, refer to the following section.
Page 438 Read/Write by Device Extension Specification
Subcommand type ASCII code Binary code
For MELSEC-Q/L series
For MELSEC iQ-R series
Device
code
Device number
(2 digits) (6 digits)
Device
number
Device
code
(3 bytes)
(1 byte)
Device code Device number
(4 digits) (8 digits)
Device number
Device code
(4 bytes)
(2 bytes)