Hello , i have this Power Quality Analyzer ISKRA iMC784 im communicating with this PQA over Modbus TCP. We must read special encoding Registers like the picture below
Did anyone of you guys manage read something similar ?
Oy! That's ugly. (IEEE 754 is a standard for a reason.)
You'll need to write a script with masks and shifts to extract the parts and re-assemble.
Thank you , Phil , at least i know how to start now, but my question is , even i write the script i need to read the value from before , and the value must be in which format ? or is there any other way to do it?
Actually, an expression should suffice. Bring in the original 32-bit value with an OPC Item Path like so: [devName]HRI6
or perhaps [devName]1.HRI6
(or some other address offset).
Then make an expression tag beside it like so:
(({[.]Raw & 0x7fffff) - ({[.]Raw} & 0x800000)) * 10.0 ^ ({[.]Raw >> 24)
(Untested)
Hi Phil it does work with your expression thanks a lot for your help. They need to make a statue for you one day. Check the result below
I'm going to assume you noticed and fixed the missing curly braces...
yes ofc , im getting the same readings as the PQA , i have send you a screenshot