Logic Machine Forum
ModBus RS485 not reading from profile but reading from "read test" - 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 RS485 not reading from profile but reading from "read test" (/showthread.php?tid=4259)



ModBus RS485 not reading from profile but reading from "read test" - robikozo - 22.09.2022

Hello, I am currently working with a smart modbus energy meter, and I am trying to connect it to log data, if I try to read data with "Read Test" button it shows exactly as its supposed to, (I took an example of grid frequency, and it shows the right amount) but when i apply the same settings to a modbus profile and upload it i get a return of an enormous number and I can't figure what is going on, any ideas?
I included the profile I am using right now.

Sincerely, 
Robert


RE: ModBus RS485 not reading from profile but reading from "read test" - CristianAgata - 22.09.2022

Hi,
Try to add "datatype" : "float32" in every item.
Best regards Cristian


RE: ModBus RS485 not reading from profile but reading from "read test" - Daniel - 23.09.2022

What were the settings you used via read test? I'm more than sure that different registers will have different settings.


RE: ModBus RS485 not reading from profile but reading from "read test" - robikozo - 24.09.2022

This is the setup I was using.
I also included the reading that the profile is giving out.


RE: ModBus RS485 not reading from profile but reading from "read test" - admin - 26.09.2022

Do as Cristian suggested. Your profile is missing correct "datatype" field for each mapping entry.


RE: ModBus RS485 not reading from profile but reading from "read test" - robikozo - 01.10.2022

(26.09.2022, 05:36)admin Wrote: Do as Cristian suggested. Your profile is missing correct "datatype" field for each mapping entry.

That Worked well, 
Thank you.