MODBUS PROBLEM

For general Flowcode discussion that does not belong in the other sections.
Post Reply
max.tisc
Posts: 113
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 10 times

Flowcode v9 MODBUS PROBLEM

Post by max.tisc »

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
Attachments
2.zip
(4.41 MiB) Downloaded 167 times
1.zip
(1.88 MiB) Downloaded 182 times
test modbus.fcfx
(19.92 KiB) Downloaded 173 times

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: MODBUS PROBLEM

Post by BenR »

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.
Problem.png
Problem.png (32.9 KiB) Viewed 1815 times
This means on the other end you are only getting half of the bits of the float variable.

max.tisc
Posts: 113
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 10 times

Re: MODBUS PROBLEM

Post by max.tisc »

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

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: MODBUS PROBLEM

Post by BenR »

No problem, happy to help.

Many thanks for letting us know and glad it's working correctly for you now.

Post Reply