Switch to desktop version  
Modbus TCP/IP Write registers - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: Ewon Embedded Technology (https://techforum.ewon.biz/forum-51.html)
+---- Forum: Ewon Data Publishing (https://techforum.ewon.biz/forum-4.html)
+---- Thread: Modbus TCP/IP Write registers (/thread-2474.html)



Modbus TCP/IP Write registers - dezanvu - 22-03-2024

Greetings,
I am trying to write some registers:
400YY on a device x.x.1.55 port:1500

Configuration:
IO modbus: [TOPIC A] ID:1 | IP:x.x.1.55 [enabled]

In order to be able to read from the device i added this:
Advanced parameters (IOSrvData):
IpMbsSrvPort:1500
TcpPort:1500

and some tags...:
tag1 30001
tag2 30002
tag3 40001
tag4 40002
Reading from device is ok.


How should i write the 40000 registers to the device x.x.1.55 ?
I tried to manually update the values from tag values and click apply.
Tried simple scripts like tag3@ = 5
Also tried with ModbusForceFunction06 = 1 (menu Edit COM cfg)
But the new values are not received by the device.

Any ideas will be usefull!


RE: Modbus TCP/IP Write registers - simon - 25-03-2024

Hi,

Indeed you have tried all easy options...
The best to investigate that is to register a support ticket on the HMS ticketing platform and we will probably ask you an access to your test device via Talk2m to troubleshoot it live.


RE: Modbus TCP/IP Write registers - dezanvu - 26-03-2024

Ok solved.

I had to add "ModbusForceFunction06 = 1" to Advanced parameters (IOSrvData).