Batch Write In Word Units (Command: 03) - Mitsubishi Electric MELSEC IQ-R series Reference Manual

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

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
Number of
Head device
device points
■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'.
ASCII code
0
0
30
30
H
H
■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)
Head device
4
4
2
0
0
0
0
34
34
32
30
30
30
30
H
H
H
H
H
H
H
■Data communication in binary code
(Request data)
Head device
Number of device points Data for the number of specified device points
64
00
00
00
20
44
03
H
H
H
H
H
H
H
Fixed value
Write data
Binary code
00
H
Number of device points
0
0
0
6
4
0
3
30
30
30
36
34
30
33
H
H
H
H
H
H
H
00
34
12
76
98
09
01
H
H
H
H
H
H
H
(D100)
(D101)
(D102)
Data for the number of specified device points
0
0
1
2
3
4
9
30
30
31
32
33
34
39
H
H
H
H
H
H
H
(D100)
18 COMMUNICATING USING 1E FRAMES
18.4 Read and Write Device Memory
8
7
6
0
1
0
9
38
37
36
30
31
30
39
H
H
H
H
H
H
H
(D101)
(D102)
18
409

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents