User`s manual

FX communication
Commands 8
8-6
8.4 Batch Write of Word Device (WW command)
1 ) Command specification
Protocol format 1 is shown
2 ) Specification examples
a ) Example 1
To write to 32 points from M640 to M671 at station No.0 (with message wait time set to
0 ms).
Computer
Programmable
controller
E N Q
Station
No.
PLC No.
B R
Message
wait time
Sum check
code
Station
No.
A C K
PLC No.
Data of
the
specified
devices
Batch write Command (words)
Head device
(5 characters)
Number of
devices
(2 characters,
hexadecimal)
Specifies the range of devices to be read.
Character area C
One word device requires four hexadecimal digits.
Therefore,one word is expressed using four
characters.
Notes
Specify the range and number of devices (16 bit words) so as to satisfy the following
conditions.
-1
number of devices
64 (10 words in the case of bit devices)
- Head device No. + number of devices (number of devices
×
16 in the case of bit
device) -1
max. device No.
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
30H30H
0 0
46H46H
F F
57H57H
W W
30H
0
4DH 30H34H36H30H 32H30H
M 0 6 4 0 0 2
05H
A
C
K
30H30H
0 5
46H46H
F F
06H
0010111001000 0100100110110 01111 1
M
6
5
6
12 69BA73
M
6
5
7
M
6
5
8
M
6
5
9
M
6
6
9
M
6
7
0
M
6
7
1
M
6
4
0
M
6
4
1
M
6
4
2
M
6
4
3
M
6
5
3
M
6
5
4
M
6
5
5
32H 37H34H33H 41H 36H39H42H
2 3 4 7 A B 9 6
35H30H
0 5
Notes
Command WW uses word units. When writing 32 points, the number of devices is
specified by “02” (16 points (bits) per one word unit).