Skip to main content

Anybus® ONE™ Developer Portal

Set up Modbus RTU demo

Set up a Modbus RTU Slave demo on your PC to exchange data with the Evaluation Board. Install the Modbus RTU Slave application, then configure it to match the Modbus RTU settings in the configuration installed on the Evaluation Board SoM.

Install Modbus RTU Slave
Before you begin

Download the HIFF Modbus RTU file to the EVB. For more information, see Install a configuration on the Evaluation Board SoM.

Modbus slave software

Any PC‑based Modbus slave application can be used.

This set up uses Modbus Slave from Witte Software.

For more information, visit Modbus Tools.

  • Available as a 30‑day trial

  • Trial limited to 10 minutes per session

Install software
  1. Install the Modbus Slave application.

  2. Start the Modbus Slave.

    Modbus Slave main window
    Figure 8. Modbus Slave main window


Configure Modbus RTU Slave

To configure the Modbus RTU slave, do one of the following:

Use a preconfigured workspace (optional)

A workspace for the Anybus Studio example configuration is available for download, see Set up a configuration in Anybus Studio .

  1. Download the pre-configured example workspace for Modbus RTU Slave Simulator:

  2. Start the Modbus RTU Slave.

  3. Select Open Workspace and browse to the workspace file (.msw).

    Open Workspace
    Figure 9. Open Workspace


  4. Verify that the COM-port setting matches the one used by your RS-485 to USB converter. Select Connection > Connect....

Configure the simulation manually
  1. Start the Modbus RTU Slave.

  2. In the connection window, right‑click and select Slave Definition....

    Slave Definition...
    Figure 10. Slave Definition...


  3. Configure the slave definition:

    Slave Definition window

    The settings shown are according to the Evaluation Board default configuration.

    Figure 11. Slave Definition window


    • Slave ID: Match the Studio Modbus RTU host interface configuration.

    • Function: Select the Modbus function based on the data to read or write.

    • Address: Address of the parameter to access.

    • Quantity: Number of consecutive registers to read.

  4. Save the slave definition.

  5. Select Connection > Connect....

    Connection Setup window

    The settings shown are according to the Evaluation Board default configuration.

    Figure 12. Connection Setup window


  6. Select the serial port to which the Evaluation Board is connected.

  7. Configure the serial communication settings:

    • Baud rate: Match the Studio Modbus RTU host interface configuration

    • Parity: Match the Studio Modbus RTU host interface configuration

    • Stop bits: Match the Studio Modbus RTU host interface configuration

    • Data bits: Fixed to 8

    • Mode: Select RTU

  8. Save the connection setup to start the Modbus RTU session.

Monitor Modbus RTU communication

When the connection is established, the Evaluation Board waits for a PROFINET master to connect.

When connected, Modbus RTU requests start automatically.

Monitor and log Modbus traffic in: Display > Communication.

To do next

Configure a PROFINET master and connect it to the Evaluation Board.

See Install PROFINET Master Simulator and Configure PROFINET Master Simulator.