Modbus RS485 Master Write
Master device writes data to slave device register(s) over RS485 network
Since R2020b
Libraries:
Simulink Support Package for Arduino Hardware /
Common
Description
In the Modbus RS485 Master Write block, the master device writes data to the register(s) of the slave device.
Simulink® Support Package for Arduino® Hardware supports the Modbus® communication protocol over the RS485 network. The master (client) and the slave (server) must be connected on the same RS485 network for successful Modbus communication. Each device on the RS485 network is referenced by a unique 8-bit address or identifier.
This table categories the slave device registers referenced by the Modbus master device.
Register Type | Register Size | Allowed Master Operation on Register |
---|---|---|
Coil | 1-bit | Read and Write |
Discrete Input | 1-bit | Read |
Holding Register | 16-bit | Read and Write |
Input Register | 16-bit | Read |
The master can perform either a read or a write operation (depending on the register type) on register(s) of a slave device.
Ports
Input
Parameters
Version History
Introduced in R2020b