I-7021/22/24, M-7022/24/28 User Manual, Rev: B2.3
160
M-7024U
3.7 15 (0x0F) Write Multiple Coils
This function code is used to write the digital output values of a
module.
Request
00
Address
1 Byte 1 ~ 247
01
Function code
1 Byte 0x0F
02 ~ 03 Starting channel 2 Bytes 0x0000 ~ 0x0003 for M-7024U
04 ~ 05 Number of
output channels
2 Bytes
0x0001 ~ 0x0004 for M-7024U
06
Byte count (N)
1 Byte
Number of bytes of the following
output values, 0x01
07
Data of output
channels
N
Bytes
A bit corresponds to a channel.
When the bit is 1 it denotes that the
value of the channel that was set is
ON. If the bit is 0 it denotes that the
value of the channel that was set is
OFF.
Note
:
This function is only available to the M-7024U
Response
00
Address
1 Byte 1 ~ 247
01
Function code
1 Byte 0x0F
02 ~ 03 Starting channel 2 Bytes The value is the same as byte 02 and
03 of the Request
04 ~ 05 Number of
output channels
2 Bytes The value is the same as byte 04 and
05 of the Request
Error Response
00
Address
1 Byte 1 ~ 247
01
Function code
1 Byte 0x8F
02
Exception code
1 Byte Refer to the Modbus standard for
more details.
Summary of Contents for M-7024
Page 9: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 9 1 2 Terminal Assignment 7021 7021P 7022 ...
Page 10: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 10 7024 7024L 7024R ...
Page 11: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 11 7024U 7028 ...
Page 46: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 46 1 13 3 Wall Mounting ...