Function 10 – Preset Multiple Registers
Presets the state of multiple registers to specific values. A typical function 10
command and response follow.
Command Usage
Address
Function
Starting Addr HI
Starting Addr LO
Num Registers HI
Num Registers LO
Byte Count
Data HI
Data LO
Response Message
Address
Function
Starting Addr HI
Starting Addr LO
Num Registers HI
Num Registers LO
Error Check
Modbus Exceptions
These Exception Codes are returned when an error is detected within the command messages
transmitted to the module.
EXCEPTION
NAME
01
Illegal Function
02
Illegal Data Address
03
Illegal Data Value
06
Slave Busy
07
Negative Acknowledge
Specification
Interface
Communications via Modbus RTU protocol
Environmental
Temperature Range: Operating -13 °F to 158 °F (-25 °C to 70 °C)
Storage: -13 °F to +185 °F (25 °C to 85 °C)
Relative Humidity: 0 to 95% noncondensing
One Byte Slave Address
One Byte Function Number
Starting Register Address HI Byte
Starting Register Address LO Byte
Number of Registers to Write HI
Number of Registers to Write LO
Number of Data Bytes Transmitted
Force Data HI
Force Data LO
One Byte Slave Address
One Byte Function Number
Starting Address HI Byte
Starting Address LO Byte
Preset Data value HI
Preset Data value LO
Two Byte CRC
DESCRIPTION
Generated when the module does not recognize the
function code.
Generated when the module does not support the specified
data address in the command.
Generated if the command data is out of range for
the function.
Generated during the first 3 seconds after the module is
reset or powered up.
Generated if the command tries to write a value into the module
EEPROM without being write-enabled first.
Same value as in command above.
Same value as in command above.
Same value as in command above.
Same value as in command above.
17