Modbus TCP/IP Client Write
Client device writes data to server device register(s) over TCP/IP network
Since R2022a
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
Libraries:
NVIDIA Jetson and NVIDIA DRIVE /
Network
Description
In the Modbus TCP/IP Client Write block, the client device writes data to the register(s) of the server device.
MATLAB® Coder™ Support Package for NVIDIA® Jetson™ and NVIDIA DRIVE® Platforms supports the Modbus® communication protocol over the TCP/IP network on Jetson platforms. The client and the server must be connected to the TCP/IP network for successful Modbus communication.
Note
The Modbus TCP/IP Client Write block is not supported on NVIDIA DRIVE platforms.
The client can perform either a read, write, or a read and write operation on the server register depending on the server register(s) type.
Register Type | Register Size | Operation Performed by client |
---|---|---|
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.
Examples
Ports
Input
Parameters
Version History
Introduced in R2022a