Skip to content

MODBUS TCP

MODBUS TCP is the most commonly used variant for MODBUS communication over Ethernet. It operates on the TCP/IP layer and uses port 502 by default. inSCADA supports the MODBUS TCP protocol in both Client (Master) and Server (Slave) roles.

In Client mode, inSCADA connects to field devices (PLCs, RTUs, energy analysers, etc.) to read and write data.

First, define a connection to the target device.

ParameterExampleDescription
ProtocolModbus TCPProtocol selection
IP Address192.168.1.100Target device IP address
Port502Target port (default: 502)
Timeout3000 msResponse wait time
Connect Timeout5000 msConnection establishment timeout
Retries3Failed request retry count
Reconnect on ErrortrueAutomatic reconnection on error

Add one or more devices under the connection. Each device represents a different Slave address (Unit ID).

ParameterExampleDescription
Station Address1MODBUS Slave address (1-247)
Scan Time1000 msScan period
Scan TypePERIODICPERIODIC or FIXED_DELAY

Define the register blocks to be read from the device. MODBUS data blocks can be a maximum of 255 bytes, 127 Words or 63 Double Words.

ParameterExampleDescription
TypeHolding RegisterRegister type
Start Address1000Starting address
Quantity20Number of registers to read
Is ReadabletrueRead permission
Is WritabletrueWrite permission

Define each data point within the Frame as a variable.

ParameterExampleDescription
Start Address0Register offset within frame
TypeFloatData type
Byte SwapfalseByte order swap
Word SwapfalseWord order swap

Once configuration is complete, start the connection from the Runtime Control Panel. The connection status will show “Connected”.

In Server mode, inSCADA allows external systems (SCADA, DCS, another inSCADA instance, etc.) to connect and read data. This mode is used to present data collected by inSCADA to upstream systems.

When creating a Server connection:

ParameterExampleDescription
ProtocolModbus TCP SlaveProtocol selection
Port502Listening port (for incoming connections)

In Server mode, Frame and Variable definitions follow the same structure as Client mode. The values of defined variables are presented to connecting clients as MODBUS registers.