Function Code 05 (0X05) Write Single Coil - Emerson Bettis XTE3000 Installation, Operation And Maintenance Manual

Modbus rtu module
Table of Contents

Advertisement

Section 8: Modbus Function
October 2022
8.5

Function Code 05 (0x05) Write Single Coil

References 0x
This function is used to write a single coil to either ON or OFF in a remote device.
XTE3000 Modbus RTU Module has implemented 11 coils.
If coil address is more than 10, Exception Code 02 (0x02) is generated.
If coil value in data field is different from 0xFF00 or 0x0000, Exception Code 03 (0x03) is generated.
If an error occurs while the slave device is performing the action requested in the query,
Exception Code 04 (0x04) is generated.
If slave device is engaged to complete a request from the logic card, Exception Code 06 (0x06)
is generated.
Broadcast messages are allowed, no response is generated after a broadcast request.
The list of the coils implemented in the XTE3000 Modbus RTU module is described in Section 7.2.
The commands can be sent to the actuator also with Function Codes 06 (Write Single Register),
15 (Write Multiple Coils) and 16 (Write Multiple Registers); it is recommended to verify the absence
of conflict between commands from coils and commands from registers.
Example of a request to write coil 1 (address 0) in the slave device 12:
Table 14.
Field Name
Address
Function Code
Output address Hi
Output address Lo
Output Value Hi
Output Value Lo
CRC
Table 15.
Field Name
Address
Function Code
Output Address Hi
Output Address Lo
Output Value Hi
Output Value Lo
CRC
38
Installation, Operation and Maintenance Manual
Request
Response
VCIOM-15081-EN Rev. 7
Value (HEX)
0C
05
00
00
FF
00
-
Value (HEX)
0C
05
00
00
FF
00
-
Modbus Function

Advertisement

Table of Contents
loading

Table of Contents