LogicMachine Forum
Modbus Read_swap function - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Modbus Read_swap function (/showthread.php?tid=6261)



Modbus Read_swap function - Ceros2112 - 21.01.2026

Hello,

I've run some tests with the new modbus profiler app, basically if I upload a JSON with Read_swap not globally set but individually in every register LM5 seems to ignore it, but if I set it from the modbus profiler and then download it it's ok, for example:

this JSON:
Code:
{     "manufacturer": "IO",     "description": "TEST",     "read_swap": "bw",     "mapping": [         {             "type": "register",             "name": "TEST",             "address": 0,             "datatype": "int16",             "bus_datatype": "int16",             "writable": true,             "read_swap": "n"         }     ] }

Uploaded, saved and downloaded results in this:
Code:
{     "manufacturer": "IO",     "description": "TEST",     "read_swap": "bw",     "mapping": [         {             "type": "register",             "name": "TEST",             "address": 0,             "datatype": "int16",             "bus_datatype": "int16",             "writable": true         }     ] }

but if i set read swap to none in the app, save and download the output is correct.

Am I doing something wrong?


RE: Modbus Read_swap function - admin - 27.01.2026

Thanks for letting us know. Updated Modbus profiler app is available in our app store.


RE: Modbus Read_swap function - Ceros2112 - 27.01.2026

You're welcome, thank you for your fast reply and fix.