Batch Read (Command: Er) - Mitsubishi Electric MELSEC IQ-R series Reference Manual

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

Advertisement

Batch read (command: ER)

Read extended file register (R) in 1-point units.
Message format
The following shows the message format of the request data and response data of the command.
■Request data
E
R
Message wait
Head device No.
45
52
H
H
■Response data
The value of read device is stored in word units. (Page 74 Read data, write data)
Data specified by request data
■Command
ACPU common
E
R
45
52
H
H
■Message wait
Specify the delayed time of the response transmission. (Page 347 Message wait)
■Head device No.
Specify the block number and device number of head device with 7 digits. (Page 374 Device number)
■Number of device points
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Specify the number of device points within the following range:
• 1  Number of device points  64
• Head device No. + Number of device points - 1  Maximum device No.
Communication example
Read data of 2 points (R8190 and R8191) of block number 12 under the following conditions.
• Message wait: 0 ms
• Block number: 12
• Head device: R8190
• Number of device points: 2 points (2 words)
(Request data)
Message wait
Head device No.
E
R
0
1
2
R
8
45
52
30
31
32
52
38
H
H
H
H
H
H
H
(Response data)
Data read
1
2
3
4
7
A
B
C
(Decimal : 4660) (Decimal : 31420)
31
32
33
34
37
41
42
43
H
H
H
H
H
H
H
H
(R8190 in NO.12) (R8191 in NO.12)
Number of device points
(Number of words)
Number of device points
(Number of words)
1
9
0
0
2
31
39
30
30
32
H
H
H
H
H
17 COMMUNICATING USING 1C FRAMES
17.5 Read and Write Extended File Register
17
375

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents