hi team
I have a problem with the modbus, in practice the data I receive are not true, at the beginning they are correct but after a while they start to round starting from the decimals up to the units, which setting am I doing wrong? I made a test flowchart, in video 1 you can see that the decimals are read, in 2 they are at 0
Thank you
MODBUS PROBLEM
-
- Posts: 82
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 5:40 pm
- Been thanked: 6 times
MODBUS PROBLEM
- Attachments
-
- 2.zip
- (4.41 MiB) Downloaded 85 times
-
- 1.zip
- (1.88 MiB) Downloaded 96 times
-
- test modbus.fcfx
- (19.92 KiB) Downloaded 90 times
-
- Matrix Staff
- Posts: 1895
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 491 times
- Been thanked: 664 times
Re: MODBUS PROBLEM
Hello,
I beleive this is the problem, the float is being broken up into two 16-bit values but then both values are being stored to the same 16-bit modbus register.
This means on the other end you are only getting half of the bits of the float variable.
I beleive this is the problem, the float is being broken up into two 16-bit values but then both values are being stored to the same 16-bit modbus register.
This means on the other end you are only getting half of the bits of the float variable.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: MODBUS PROBLEM
Thanks Ben, I've been looking around for 2 days, sorry if I wasted your time for this nonsense that I hadn't noticed, now it's working fine
you are always the best
thanks
you are always the best
thanks
-
- Matrix Staff
- Posts: 1895
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 491 times
- Been thanked: 664 times
Re: MODBUS PROBLEM
No problem, happy to help.
Many thanks for letting us know and glad it's working correctly for you now.
Many thanks for letting us know and glad it's working correctly for you now.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel