Modbus
Characteristics - Modbus
MODBUS is an application-layer messaging protocol, positioned at level 7 of the OSI model. It provides client/server communication between devices connected on different types of buses or networks. To learn more about the standard visit the MODBUS website.
Information Model Requirements
The following Node Types can be used to model a register:
Variables with a Simple Data Type.
Variables with a Custom Data Type.
Configuration - Modbus
Select Modbus/Tcp Client as Channel Type.
Click the Configure button.
Make sure the root model node is selected to configure the Modbus/TCP Client
Enter the IP address and the port
(Optional) Change the Connect interval if needed
(Optional) Change the Reconnect interval if needed
(Optional) Change the Receive interval if needed
Select the complex variable node
Enable the checkbox TCP Client connection configuration
(Optional) Enable Autorefresh to specify the retrieval rate
Select the Function Code
(Optional) Change the Max update interval if needed
Select the complex variable node
Enable the checkbox Variables configuration
Select the Data type
(Optional) Enter the register address
Note
If address is left empty, SMARTUNIFIER assumes that the Information Model structure is in line with the register addresses.
Description of data type format:
Data Type |
Size |
Range |
---|---|---|
BYTE, USINT, UInt8 |
8 Bit |
|
WORD, UINT, UInt16 |
16 Bit |
|
DWORD,UDINT, UInt32 |
32 Bit |
|
LWORD,ULINT, UInt64 |
64 Bit |
|
SINT, Int8 |
8 Bit |
|
INT, Int16 |
16 Bit |
|
DINT, Int32 |
32 Bit |
|
LINT, Int64 |
64 Bit |
|
REAL, Float32 |
32 Bit |
|
LREAL, Float64 |
64 Bit |
|
Description of configuration properties:
Property |
Description |
Example |
---|---|---|
IP |
Client IP |
|
Port |
Client port |
|
Connection timeout |
Time interval the connection times out |
|
Reconnect interval |
Time interval to reconnect to the client after loss of connection |
|
Receive interval |
TCP/IP receive timeout |
|
Autorefresh |
Automatic polling of Modbus server |
|
Read function code |
Function code used for reading variables from a modbus server |
|
Max update interval |
Minimum time between requests to the Modbus server (if autorefresh is not used) |
|
Variable configuration Type |
Format of variable |
|
Variable configuration Address |
Address of the variable on the modbus server |
|