8-4 SR3 SERIES PROTECTIVE RELAY PLATFORM – COMMUNICATIONS GUIDE
FUNCTION CODE 05H CHAPTER 8: MODBUS FUNCTIONS
Function Code 05H
Modbus Implementation: Force Single Coil
3 Series relay Implementation: Execute Operation
This function code allows the master to request a 3 Series relay to perform specific
command operations.
For example, to request slave 17 to execute operation code 1 (reset), we have the following
master/slave packet format:
Table 8-3: MASTER/SLAVE PACKET FORMAT FOR FUNCTION CODE 05H
Forces a single coil (0X reference) to either ON or OFF.
The query message specifies the coil reference to be forced. Coils are addressed starting at
zero: coil 1 is addressed as 0.
The requested ON/OFF state is specified by a constant in the query data field.
A value of FF 00 hex requests the coil to be ON. A value of 00 00 requests it to be OFF. All
other values are illegal and will not affect the coil.
Force Virtual Inputs:
Field Name Hex
Slave Address FE
Function 04
Byte Count 02
Data Hi (Register 30305) 80
Data Lo (Register 30305) 80
MASTER TRANSMISSION BYTES EXAMPLE DESCRIPTION
SLAVE ADDRESS 1 11 message for slave 17
FUNCTION CODE 1 05 execute operation
OPERATION CODE 2 00 01 operation code 1
CODE VALUE 2 FF 00 perform function
CRC 2 DF 6A CRC error code
SLAVE RESPONSE BYTES EXAMPLE DESCRIPTION
SLAVE ADDRESS 1 11 message from slave
17
FUNCTION CODE 1 05 execute operation
OPERATION CODE 2 00 01 operation code 1
CODE VALUE 2 FF 00 perform function
CRC 2 DF 6A CRC error code
Description Coil Address (HEX) Description Coil Address (HEX)
Virtual Input 1 0x1000 Virtual Input 17 0x1010
Virtual Input 2 0x1001 Virtual Input 18 0x1011
Virtual Input 3 0x1002 Virtual Input 19 0x1012
Virtual Input 4 0x1003 Virtual Input 20 0x1013
Virtual Input 5 0x1004 Virtual Input 21 0x1014