
12
…5
MODBUS FUNCTIONS
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
t
e
s
f
f
O
l
i
o
C
h
g
i
H
t
e
s
f
f
O
l
i
o
C
w
o
L
e
u
l
a
V
a
t
a
D
h
g
i
H
e
u
l
a
V
a
t
a
D
w
o
L
)
6
1
-
C
R
C
(
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
1
0
5
0
0
0
8
2
F
F
0
0
C
0
2
3
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
t
e
s
f
f
O
l
i
o
C
h
g
i
H
t
e
s
f
f
O
l
i
o
C
w
o
L
e
u
l
a
V
a
t
a
D
h
g
i
H
e
u
l
a
V
a
t
a
D
w
o
L
)
6
1
-
C
R
C
(
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
1
0
5
0
0
0
8
2
F
F
0
0
C
0
2
3
5.5
Force Single Coil – Function Code 05
5.5.1
Force Single Coil Query
This message forces a single coil into the active or inactive state. The data value 65,280 (FF00 HEX) renders the coil active and
the value zero renders the coil inactive. All other values are illegal and do not affect the coil.
Note. To write to a coil the coil offset address must be used, e.g. to write to coil 41, the coil address 40 (28H) is
transmitted.
The use of slave address zero (broadcast mode) forces all attached slaves to modify the desired coil.
Example
– a force single coil request to set coil address 41 active (print operator message command) in slave 01 is shown below.
5.5.2
Force Single Coil Response
The response is confirmation of the query after the coil state has been altered.
Example
: