Logic Machine Forum
Modbus RTU Issue - 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 RTU Issue (/showthread.php?tid=4565)



Modbus RTU Issue - khalil - 07.02.2023

Hello
I have A Power meter connected to RS485 serial Port, and I use a pre tested profile, but the values are incorrect and keep changing in a strange behavior.
but I tried values from read test its give a right value!
I tried to stop and start the modbus via this script but it didnt work
Code:
os.execute('sh /lib/genohm-scada/plugins/modbus/stop.sh')
os.sleep(1)
os.execute('sh /lib/genohm-scada/plugins/modbus/start.sh')

What could cause this issue


RE: Modbus RTU Issue - admin - 07.02.2023

Post your profile and what settings you used for the read test.


RE: Modbus RTU Issue - khalil - 07.02.2023

Here is the profile, Its the same profile worked with SL version 2.7.0
data sheet also attached.
yes the different when I read from read test I used function 03 integer-16 data type.
while the profile using function 04 floating-32 data type.
As I mentioned its was working in version 2.7.0, this issue pop up in version 2.8


RE: Modbus RTU Issue - admin - 07.02.2023

Try doing read test with the exact same parameters as in the profile. I suspect you need to either deduct 1 from all addresses so it starts from 0 instead of 1 or use a different swap parameter value. Try all combinations to find the correct parameters.


RE: Modbus RTU Issue - khalil - 07.02.2023

here is the result from read test, I set the same parameters as the profile (this profile is tested and run in several projects)
while the reading from the profile is a mess.

see this attached image for the same profile but for SL V2.7

   

these are from SL V 2.8
   
   


RE: Modbus RTU Issue - Daniel - 07.02.2023

Just to be sure, clear browser cache.


RE: Modbus RTU Issue - khalil - 07.02.2023

(07.02.2023, 12:04)Daniel Wrote: Just to be sure, clear browser cache.

the same 
I tried also from different browser, but the same issue.


RE: Modbus RTU Issue - Daniel - 07.02.2023

Try deleting this device, deleting the profile and add profile and add device again.


RE: Modbus RTU Issue - Daniel - 07.02.2023

Actually you need to correct your profile, add "read_swap":"n"


RE: Modbus RTU Issue - khalil - 07.02.2023

(07.02.2023, 12:47)Daniel Wrote: Actually you need to correct your profile, add "read_swap":"n"

Thank you Daniel, its worked.
I see that in the read test that its work when I set the swap to None, But I confused because its working without adding  "read_swap":"n" in other projects.

thanks for the support.