18 COMMUNICATING USING 1E FRAMES
18.4 Read and Write Device Memory
409
18
Batch write in word units (command: 03)
Write bit devices (X, Y, M, etc.) in 16-point units.
Write word devices (D, T, C, etc.) in 1-point units.
Message format
The following shows the message format of the request data and response data of the command.
■Request data
■Response data
There is no response data for this command.
Data specified by request data
■Head device
Specify the head device of the device to be written.
■Number of device points
Specify the number of device points to be written.
Specify '00H' when the number of device points is to 256 points.
When specifying bit devices, set the head device No. in multiples of 16 (0, 16, ... in decimal notation).
■Fixed value
Fixed to '0'.
■Write data
Stored data for the number of device points to be written.
The order of data differs depending on the ASCII code or binary code. (Page 402 Read data, write data)
Communication example
Write the devices in the CPU module with E71 mounted under the following conditions.
• Head device: D100
• Number of device points: 3 points
■Data communication in ASCII code
(Request data)
■Data communication in binary code
(Request data)
ASCII code Binary code
Head device
Number of
device points
Fixed value Write data
34
H
34
H
32
H
30
H
30
H
30
H
30
H
30
H
30
H
30
H
36
H
34
H
33
H
30
H
30
H
30
H
32
H
31
H
34
H
33
H
38
H
39
H
36
H
37
H
31
H
30
H
39
H
30
H
4420 000000 64 03001234 9876
01 09
(D100) (D101) (D102)
Data for the number of specified device points
Number of device points
Head device
03H 00H
64H
00H 00H 00H
20H
44H
34H
12H 76H 98H
09H
01H
(D100) (D101) (D102)
Head device
Number of device points Data for the number of specified device points