Modbus TCP/IP Master Write
Master device writes data to slave device register(s) over TCP/IP network
- Library:
Simulink Support Package for Raspberry Pi Hardware / Network
Description
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.
Ports
Input
Parameters
Version History
Introduced in R2021a