I-7021/22/24, M-7022/24/28 User Manual, Rev: B2.3
158
M-7024U
3.5 05 (0x05) Write Single Coil
This function code is used to write a digital output value of a
module.
Request
00
Address
1 Byte 1 ~ 247
01
Function code
1 Byte 0x05
02 ~ 03 Output channel
numbers
2 Bytes 0x0000 ~ 0x0003 for M-7024U
04 ~ 05 Output value
2 Bytes A value of 0xFF00 sets the output to
ON. A value of 0x0000 sets it to
OFF. All other values are illegal and
will not affect the coil.
Note
:
This function is only available to the M-7024U.
Response
00
Address
1 Byte 1 ~ 247
01
Function code
1 Byte 0x05
02 ~ 03 Output channel
numbers
2 Bytes The value is the same as byte 02 and
03 of the Request
04 ~ 05 Output value
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 0x85
02
Exception code
1 Byte Refer to the Modbus standard for
more details.
Содержание I-7021
Страница 9: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 9 1 2 Terminal Assignment 7021 7021P 7022 ...
Страница 10: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 10 7024 7024L 7024R ...
Страница 11: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 11 7024U 7028 ...
Страница 46: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 46 1 13 3 Wall Mounting ...