Function Code 5 ($05) - Write Single Coil
Description
Modbus function code $05 is a request to write a single coil. This will write a digital output of an RIO
configured as a slave.
Operating as a master
The function code of the response can be queried with the _MW command. If an exception occurred, the
exception code of the response can be queried with _MW1.
Example:
Normal Response
Exception Response
_MW results in $05
_MW results in $85
_MW1
contains
$01
or
$02
Ways to use Function Code 5 with Galil commands:
1. MB command in raw packet mode
2.
MB command with Modbus function code 5
3.
SB
4.
CB
5.
OB
Operating as a slave
The RIO will accept a write single coil request with a starting address ranging from $0000-$000F,
referencing digital outputs 0-15.
The RIO will respond with a Modbus packet that is identical to the packet it received.
RIO-47xxx
Chapter 3 Communication
●
27
Содержание RIO-47120
Страница 2: ......
Страница 93: ...RIO Dimensions RIO 471xx Units in centimeters RIO 47xxx Appendix 87...
Страница 94: ...RIO 472xx Units in millimeters 88 Appendix RIO 47xxx...
Страница 107: ...Internal 56 64 Zero Stack 53 RIO 47xxx Index 101...