Logic Machine Forum
Modbus ASCII - Printable Version

+- Logic Machine 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 ASCII (/showthread.php?tid=4976)



Modbus ASCII - FatMax - 20.09.2023

I have a device connected through Modbus TCP/IP where one of the registers contains FW-version of client. However, datatype is ASCII. Is it possible to poll this with a profile?

   


RE: Modbus ASCII - Daniel - 20.09.2023

No but you can try reading it via script, use modbus proxy alongside profile.


RE: Modbus ASCII - admin - 20.09.2023

String datatype support has been recently added to profiles. Apart from "datatype": "string" you also need to specify the number of registers to read - "read_count": 6
Null (zero) bytes are automatically removed from the final string value.


RE: Modbus ASCII - FatMax - 20.09.2023

What would be considered newer FW for the SL? I'm on 2.7.0. Edit: Tried to create a profile but the SL responded with invalid field for datatype when it was string.

Tried this:

https://forum.logicmachine.net/showthread.php?tid=1245&pid=7434#pid7434

But just getting an empty string as the result.


RE: Modbus ASCII - admin - 20.09.2023

2.7.0 is not the latest firmware. Try reading these registers via read test, it's quite possible that the version is all zeros.


RE: Modbus ASCII - FatMax - 20.09.2023

The script actually worked fine, but as always I had to subtract 1 from the modbusregister for it to work. 

Thank you!