TheWaterboy
Lifetime Supporting Member + Moderator
I can't seem to sort out how to decode this into useful numbers. Maybe I'm tired and this will be obvious tomorrow but it hasn't been all day.
The register table is as shown.
1. How do I create a 32 bit unsigned long in a 5380? DINTs are signed and LONG is 64 bits.
2. How to I apply a specific number of decimal places to it?
Assume that is even the correct direction to go and I can swap bytes around to get a reasonable number... what am I to do with the next register with number of decimal places? I assume it is used against the unsigned long to get a REAL value.
I have worked with swapping bytes and words to respect Endian, but I have not had a set of registers like this before with a third one for consideration.
The register table is as shown.
1. How do I create a 32 bit unsigned long in a 5380? DINTs are signed and LONG is 64 bits.
2. How to I apply a specific number of decimal places to it?
Assume that is even the correct direction to go and I can swap bytes around to get a reasonable number... what am I to do with the next register with number of decimal places? I assume it is used against the unsigned long to get a REAL value.
I have worked with swapping bytes and words to respect Endian, but I have not had a set of registers like this before with a third one for consideration.