pymate icon indicating copy to clipboard operation
pymate copied to clipboard

pv_current does not match with the real value

Open saulep98 opened this issue 2 years ago • 1 comments

I am using the pymate library for python, I connected the flexmax 80 with a raspberry pi and had communication, but when I printed the status, the pv_current has no decimals, for example the flexmax display shows 3.6A and the script readout.py prints 3.0 A.

Do you have any idea what might be going on?

saulep98 avatar Mar 24 '23 01:03 saulep98

It's possible the lower digit of pv_current is located in a different part of the packet, though I'd explored it pretty thoroughly by modifying each byte in the packet and seeing the effect on the MATE display.

Currently pv_current has a resolution of 0 decimal places and has a range of -127A to +127A.

Not sure there's much I can do about this unless I can figure out which byte (if any) is hiding that extra few bits of resolution.

jorticus avatar Mar 24 '23 10:03 jorticus