User Tools

Site Tools


mb_tcp_app_note

WebHMI's TCP server demo

In this demo, we will show how to read float data with one WebHMI (client) from another (server) via WebHMI's Modbus TCP server.

Test structure

  1. WebHMI server (MB_SERVER), reading data from Modbus RTU device (simulated with Modbus Slave tool)
  2. WebHMI client (MB_CLIENT), reading data from MB_SERVER

Modbus RTU device setup

We will simulate our data with Modbus Slave testing tool.

And check our MB_SERVER reads it well:

Depending on your test tool or device, you may need to set reverse order check to see your data properly.

Enable Modbus TCP server function on WebHMI and check with testing tool

Enable Modbus TCP server and setup the value

Please refer to this article for enabling Modbus TCP server function.

Check the value is available with testing tool

Setup WebHMI Modbus TCP client

Create modbus tcp connection to your server

Step 1

Put proper MB_SERVER's IP address and port.

Step 2

Enable group read because float value is 2-word value, so you need group read function.

For the register on the client's side, set Modbus TCP address, Double Word format and float type register (remember you may need reverse word order here too):

Then you will see the value:

mb_tcp_app_note.txt ยท Last modified: 2024/07/24 11:16 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki