Master device reads data from slave device register(s) over RS485 network
Simulink Support Package for Arduino Hardware / Common
In the Modbus RS485 Master Read block, the master device reads data from 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.
Modbus properties | Modbus RS485 Master Write | Modbus RS485 Slave Read | Modbus RS485 Slave Write | RS485 properties