CHAPTER 8: MODBUS FUNCTIONS FUNCTION CODE 10H
SR3 SERIES PROTECTIVE RELAY PLATFORM – COMMUNICATIONS GUIDE 8-13
Performing Commands Using Function Code 10H
Commands can be performed using function code 16 (10H) as well as function code 5.
When using FUNCTION CODE 16, the Command Function register must be written with a
value of 5. The Command Operation register must be written with a valid command
operation number. The Command Data registers must be written with valid data; this is
dependent upon the command operation.
For example, consider a request for slave 17 to perform command operation 1 (RESET): The
master/slave packets have the following format:
Table 8-9: MASTER/SLAVE PACKET FORMAT FOR PERFORMING COMMANDS
Field Name Hex
Slave Address FE
Function 10
Starting Address Hi 0F
Starting Address Lo 0A
No. of Registers Hi 00
No. of Registers Lo 02
MASTER TRANSMISSION BYTES EXAMPLE DESCRIPTION
SLAVE ADDRESS 1 11 message for slave 17
FUNCTION CODE 1 10 store multiple
setpoints
DATA STARTING ADDRESS 2 00 80 setpoint address 00
80
NUMBER OF SETPOINTS 2 00 02 2 setpoints = 4 bytes
total
BYTE COUNT 1 04 4 bytes of data
DATA 1 2 00 05 data for address 00
80
DATA 2 2 00 01 data for address 00
81
CRC 2 7E CE CRC error code
SLAVE RESPONSE BYTES EXAMPLE DESCRIPTION
SLAVE ADDRESS 1 11 message from slave
17
FUNCTION CODE 1 10 store multiple
setpoints
DATA STARTING ADDRESS 2 00 80 setpoint address 00
80
NUMBER OF SETPOINTS 2 00 02 2 setpoints
CRC 2 42 B0 CRC error code