User`s manual

FX communication
Commands 8
8-5
8
8.3 Batch Write of Bit Device (BW command)
1 ) Command specification
Protocol format 1 is shown
2 ) Command example
To write data into five points from M903 to M907 at station No.0 (with message wait time set
to 0 ms).
E N Q
Station
No.
PLC No.
B W
Message
wait time
Sum check
code
Station
No.
A C K
PLC No.
Data of
the
specified
devices
Head device
(5 characters)
Number of
devices
(2 characters,
hexadecimal)
Batch write command (bits)
Character area A
Computer
Programmable
controller
Specifies the range of devices to be written.
"0" (30H) indicates OFF.
"1" (31H) indicates ON.
Notes
Specify the range and number of devices so as to satisfy the following conditions.
-1
number of devices
160
- Head device No. + number of devices -1
max. device No.
The station number, PC (PLC) number, number of devices, and sum check code are
expressed in hexadecimal.
Computer
Programmable
contoroller
E
N
Q
The sum check is calculated over this range
30H30H
0 0
46H46H
F F
57H42H
B W
30H
0
4DH 33H30H39H30H 35H30H
M 0 9 0 3 0 5
36H
32H
2 6
05H
A
C
K
30H30H
0 0
46H46H
F F
06H
0 1 1 0 1
30H 31H30H31H31H
Specifies to turn OFF M903
Specifies to turn ON M905
Specifies to turn ON M904
Specifies to turn ON M907
Specifies to turn OFF M906