Logic Machine Forum
Modbus TCP slave example - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Modbus TCP slave example (/showthread.php?tid=181)

Pages: 1 2


RE: Modbus TCP slave example - rw_echo - 16.03.2023

The source code is as follows:
https://forum.logicmachine.net/showthread.php?tid=181&pid=3233#pid3233:~:text=if%20not%20mb%20then,loop(0.1)

Lm as modbus rtu slave:
1.I need to add the 'inputregisters' and' discreteinputs' mapping list of the source code. How should I change the code?

2.Another problem is that if the value of the group address "1/1/1" of dt.float16 is 23 and the mapped register address value is 2300, how do you make their values correspond?


RE: Modbus TCP slave example - admin - 17.03.2023

Universal script has been update with RTU support: https://forum.logicmachine.net/showthread.php?tid=4288