Connect to a Modbus Device (Tutorial) teaches you to:

  • Configure communication channels
  • Add device nodes
  • Map device addresses to tags
  • Monitor communication status

Prerequisites:

On this page:

  
Devices →  Tutorial | Concept | How-to Guide | Reference


Create Device Channel

  1. Navigate to Devices → Protocols
  2. Select Modbus
  3. Click on New channel:
    • Channel Name: ModbusChannel
    • Protocol: Modbus Master Protocol
    • Interface: TCP/IP

Add Device Node

  1. Go to Devices → Nodes
  2. Create node:
    • Name: PLC1
    • Channel: ModbusChannel
    • Station: IP Address (use 127.0.0.1 for simulator)
    • Port 502
    • Device ID: 1

Create Device Points

  1. Navigate to Devices → Points
  2. Add points:

Digital Input:

  • Tag Name: TankFarm/Tank1/Level
  • Node: PLC1
  • Address: 40001 
  • Data Type: Native
  • AccessType: ReadWrite

Analog Input:

  • Name: TankFarm/Tank2/Level
  • Node: PLC1
  • Address: 40002 
  • Data Type: Native
  • AccessType: ReadWrite



Starting Modbus Device Simulator

  1. Devices → Channels
  2. Select ModbusChannel
  3. Run Modbus Simulator



Test Communication

  1. Start Runtime
  2. Open Devices → Monitor
  3. Check status (if the ActivityCounter is increasing and LastErrorCode stays fixed, it means everything is running properly)



In this section...