Modbus TCP/IP Server Read
R2026bServer device reads data from server device register over TCP/IP network
Libraries:
Raspberry Pi Blockset /
Network
Description
In the Modbus TCP/IP Server Read block, the server device reads data from its registers. The server can read data from only one register per read operation.
Raspberry Pi® Blockset supports the Modbus® communication protocol over the TCP/IP network.
The server can perform read and write operation on these server register(s).
| Register Type | Register Size |
|---|---|
| Coil | 1-bit |
| Discrete Input | 1-bit |
| Holding Register | 16-bit |
| Input Register | 16-bit |
The server can perform either a read or a write operation on its registers.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Examples
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"raspberrypiNetworklib/Modbus TCP//IP Server Read"
Example: add_block("raspberrypiNetworklib/Modbus TCP//IP Server Read","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2021a
