User`s manual
FX communication
Commands 8
8-8
8.5 Test of Bit Device (BT command)
1 ) Command specification
Protocol format 1 is shown
2 ) Specification example
To set ON M50, OFF S100, and ON Y001 at station No.5 (with message wait time set to 0
ms).
Computer
Programmable
controller
E N Q
Station
No.
PLC No.
B T
Message
wait time
Sum check
code
Station
No.
A C K
PLC No.
Test command
(selective write,bits)
Device
(5 characters)
Number of
devices
(2 characters,
hexadecimal)
1 character
Character area C
Set/reset
Device
(5 characters)
Set/reset
"0" (30H) indicates reset (OFF)
"1" (31H) indicates set (ON)
Notes
• Specify the range and number of devices so as to satisfy the following condition.
-1
≤
number of devices
≤
20(10 for FX
0N
)
• The station number, PC (PLC) number, number of devices, and sum check code are
expressed in hexadecimal.
Computer
Programmable
controller
E
N
Q
Set (ON)
35H30H
0 5
46H46H
F F
54H42H
B T
30H
0
33H30H
0 3
05H
A
C
K
35H30H
0 5
46H46H
F F
06H
4DH 35H30H30H 30H 31H
M 0 0 5 0 1
43H45H
E C
53H 30H31H30H 30H 30H
S 0 1 0 0 0
59H 30H30H30H 31H 31H
Y 0 0 0 1 1
Set (ON)Reset (OFF)
The sum check is calculated over this range