Modbus RS485 Client Write
Client device writes data to server device register(s) over RS485 network
Since R2020b
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
Libraries:
Simulink Support Package for Arduino Hardware /
Common
Description
In the Modbus RS485 Client Write block, the client device writes data to the register(s) of the server device.
Simulink® Support Package for Arduino® Hardware supports the Modbus® communication protocol over the RS485 network. The client and the 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 server device registers referenced by the Modbus client device.
Register Type | Register Size | Allowed Client 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 client can perform either a read or a write operation (depending on the register type) on register(s) of a server device.
Ports
Input
Parameters
Version History
Introduced in R2020b