112
8 DEVICE ACCESS
8.4 Batch Read and Write Multiple Blocks
8.4 Batch Read and Write Multiple Blocks
Read or write values for specified multiple blocks by handling consecutive devices as one block.
Batch read multiple blocks (command: 0406)
Read values for specified multiple blocks by handling consecutive word devices or bit devices as one block.
Each block can be specified with discontinuous device numbers.
When communicating with a Universal model QCPU or an LCPU, if other than "Specify service process
execution counts" is selected for "Service Processing Setting" of the CPU module, data separation may occur.
To avoid data separation, select "Specify service process execution counts".
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
Message format
The following shows the message format of the request data and response data of the command.
■Request data
■Response data
The value of read device is stored in hexadecimal. The data order differs between ASCII code or binary code. (Page 74
Read data, write data)
Data specified by request data
■Command
ASCII code Binary code
Number of word
device blocks
(m points)
Number of bit
device blocks
(n points)
Block of word
device
(first point)
Block of word
device
(mth point)
Command Subcommand
Block of bit device
(first point)
Block of bit device
(nth point)
Data for the number of word device blocks
Data for the number of bit device blocks
Word device Bit device
Data in the
first block
Data in the
mth block
Data in the
first block
Data in the
nth block