14
…5
MODBUS FUNCTIONS
5.8
Force Multiple Coils – Function Code 15
5.8.1
Force Multiple Coils Query
Coils existing within the recorder can have their contents changed by this message (a maximum of 16 coils). When used with
slave address zero (broadcast mode) all slave controllers load the selected coils with the contents specified.
Note. To write to multiple coils, the initial coil offset address must be used, e.g. to write to coil 45 onwards, the offset
address 44 (2CH) is transmitted.
Example
– a preset multiple coils request to set coil address 45 (total 1 print command) active, coil address 46 (total 2 print
command) inactive, coil address 47 (total 3 print command) active and coil address 48 (total 4 print command) active in slave 01
is shown below.
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
t
r
a
t
S
l
i
o
C
h
g
i
H
t
e
s
f
f
O
t
r
a
t
S
l
i
o
C
w
o
L
t
e
s
f
f
O
f
o
r
e
b
m
u
N
s
l
i
o
C
e
t
y
B
t
n
u
o
C
s
u
t
a
t
S
l
i
o
C
2
5
o
t
5
4
s
u
t
a
t
S
l
i
o
C
0
6
o
t
3
5
)
6
1
-
C
R
C
(
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
1
0
F
0
0
0
C
2
4
0
0
0
2
0
D
0
0
0
4
E
C
E
5.8.2
Force Multiple Coils Response
The response confirms slave identification, function code, starting coil address and quantity only.
Example
:
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
t
r
a
t
S
l
i
o
C
h
g
i
H
t
e
s
f
f
O
t
r
a
t
S
l
i
o
C
w
o
L
t
e
s
f
f
O
s
l
i
o
C
f
o
r
e
b
m
u
N
)
6
1
-
C
R
C
(
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
1
0
F
0
0
0
C
2
0
0
4
0
5
9
1
C
5.9
Preset Multiple Registers – Function Code 16
5.9.1
Preset Multiple Registers Query
Holding registers existing within the controller can have their contents changed by this message. When used with slave address
zero (broadcast mode) all slave controllers load the selected registers with the contents specified.
Note. To write to multiple registers, the initial register offset address must be used, e.g. to write to register 02 onwards,
the offset address 01 is transmitted.
Example
– a preset multiple registers request to write the value 10 to the register address 02 (chart speed 1) and the value 100
to the register address 03 (chart speed 2) in slave 01 is shown below.
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
r
e
t
s
i
g
e
R
t
r
a
t
S
t
e
s
f
f
O
h
g
i
H
r
e
t
s
i
g
e
R
t
r
a
t
S
t
e
s
f
f
O
w
o
L
f
o
r
e
b
m
u
N
s
r
e
t
s
i
g
e
R
e
t
y
B
t
n
u
o
C
g
n
i
d
l
o
H
r
e
t
s
i
g
e
R
h
g
i
H
2
0
g
n
i
d
l
o
H
r
e
t
s
i
g
e
R
w
o
L
2
0
g
n
i
d
l
o
H
r
e
t
s
i
g
e
R
h
g
i
H
3
0
g
n
i
d
l
o
H
r
e
t
s
i
g
e
R
w
o
L
3
0
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
)
6
1
-
C
R
C
(
1
0
0
1
0
0
1
0
2
0
0
0
4
0
0
0
A
0
0
0
4
6
3
1
A
8
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
t
r
a
t
S
r
e
t
s
i
g
e
R
h
g
i
H
t
e
s
f
f
O
t
r
a
t
S
r
e
t
s
i
g
e
R
w
o
L
t
e
s
f
f
O
s
r
e
t
s
i
g
e
R
f
o
r
e
b
m
u
N
)
6
1
-
C
R
C
(
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
1
0
0
1
0
0
1
0
0
0
2
0
0
1
8
0
5.9.2
Preset Multiple Registers Response
The response confirms slave identification, function code, starting register address and quantity only.
Example
: