Using Com_Mod_Mast to read data of different data types from a Signal Fire Gateway
My customer is bringing in tank levels (32 bit Float),battery voltages (16 bit uint), and discretes back to a gateway. I can poll for the data and dump it into an array. I do this as a real. The values get fouled up after the first couple of registers. Has any one done this. I am having heck!
Float values (real) takes 2 words.
So, in case you write them in consequent registers, should use 2 registers and not consequent registers.
If the first float is written in %MW0.0, it is placed in %MW0.0 and %MW0.1
The next float should be written in %MW0.2 etc (ensure 1 spare word)
How did you define the array? You can send a screen-shot to look in it for more details