User`s manual
FX communication
Commands 8
8-3
8
8.2 Batch Read of Word Device (WR command)
1 ) Command specification
Protocol format 1 is shown.
2 ) Command examples
a ) Example 1
To read 32 points of data from X040 to X077 at station No.5 (with message wait time set to
100 ms).
Computer
Programmable
controller
E N Q
Station
No.
PLC No.
W R
Message
wait time
Sum check
code
Station
No.
S T X
PLC No.
Data of
the
specified
devices
E T X
Sum check
code
Station
No.
A C K
PLC No.
Character area B
Batch read command (words)
Head device
(5 characters)
Number of
devices
(2 characters,
hexadecimal)
Specifies the range of
devices to be read.
One word device requires
four hexadecimal digits.
Therefore,one word is
expressed using four
characters.
Character area A
Notes
• Specify the range and number of devices (16 bit words) so as to satisfy the following
conditions.
-1
≤
number of devices
≤
64 (32 words in the case of bit devices) (13 words for FX
0N
)
- Head device No. + number of devices (number of devices
×
16 in the case of bit
devices) -1
≤
max. device No.
- When reading 32-bit devices (C200 to C255), the returned data is a double word.
Hence, the maximum number of devices is 32.
• The station number, PC (PLC) number, number of devices, and sum check code are
expressed in hexadecimal.
Computer
Programmable
controller
E
N
Q
The sum check is calculated
over this range
The sum check is calculated
over this range
35H30H
0 5
46H46H
F F
52H57H
W R
30H
0
58H 30H34H30H30H 32H30H
X 0 0 4 0 0 2
38H34H
4 8
05H
S
T
X
35H30H
0 5
46H46H
F F
02H
E
T
X
38H30H
0 8
03H
A
C
K
35H30H
0 5
46H46H
F F
06H
31H 34H33H32H 41H 44H43H42H
0000101010001 1111100101010 00111 0
X
0
6
0
12 DCBA43
1 2 3 4 A B C D
X
0
6
1
X
0
6
2
X
0
6
3
X
0
6
7
X
0
7
0
X
0
7
1
X
0
7
2
X
0
7
7
X
0
4
0
X
0
4
1
X
0
4
2
X
0
4
3
X
0
4
7
X
0
5
0
X
0
5
1
X
0
5
2
X
0
5
7
Notes
• Command WR uses word units. When reading 32 points, the number of devices is
specified by “02” (16 points (bits) per one word unit).