Master device writes data to slave device register(s) over TCP/IP network
Simulink Support Package for Raspberry Pi Hardware / Network
In the Modbus TCP/IP Master Write block, the master device writes data to the register(s) of the slave device.
Simulink® Support Package for Raspberry Pi™ Hardware supports the MODBUS® communication protocol over the TCP/IP network. The master (client) and the slave (server) must be connected to the TCP/IP network for successful MODBUS communication.
The master can perform either a read, write, or a read and write operation on the slave register depending on the slave register(s) type.
| Register Type | Register Size | Operation Performed by Master |
|---|---|---|
| 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 TCP/IP Master Read | Modbus TCP/IP Slave Read | Modbus TCP/IP Slave Write