Function Code 15 (0X0F) Write Multiple Coils; Quantity Of Coils Hi - Emerson Bettis XTE3000 Installation, Operation And Maintenance Manual

Modbus rtu module
Table of Contents

Advertisement

Section 8: Modbus Function
8.8

Function Code 15 (0x0F) Write Multiple Coils

This function code is used to write the coils indicated in the query to ON or OFF state.
XTE3000 Modbus RTU Module has implemented 11 coils.
If quantity of coils is less than 1 or more than 11, Exception Code 03 (0x03) is generated.
Exception code 03 (0x03) is also generated if the byte count value is not correct.
If starting address or its combination with the quantity of coils is more than 11, Exception Code 02
(0x02) 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 05 (Write Single Coil),
06 (Write Single Register) 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 coils 1 - 5 (address 0 - 4) to device 3:
Table 21.
Field Name

Quantity of Coils Hi

Quantity of Coils Lo
Coils Value (data bits 7-0)*
Table 22.
Field Name
Quantity of Coils Lo
CRC
42
Installation, Operation and Maintenance Manual
Request
Value (HEX)
03
0F
00
00
00
05
01
08
-
03
00
00
00
05
-
Modbus Function

Advertisement

Table of Contents
loading

Table of Contents