20.09.2023, 08:32
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?
Modbus ASCII
|
20.09.2023, 08:32
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?
20.09.2023, 09:42
No but you can try reading it via script, use modbus proxy alongside profile.
------------------------------
Ctrl+F5
20.09.2023, 10:52
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.
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/showthrea...34#pid7434 But just getting an empty string as the result.
20.09.2023, 11:21
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.
20.09.2023, 11:50
The script actually worked fine, but as always I had to subtract 1 from the modbusregister for it to work.
Thank you! |
« Next Oldest | Next Newest »
|