Hi everyone,
I have a Fronius welder that's connected to my KRC4 whose variables are mapped using WoV. Some of the weld parameters are boolean (1 bit), some are unsigned short integer (1 byte) and some are decimal (2 bytes - high byte and low byte).
I am able to process the boolean and the integers easily. However, I am having trouble parsing the decimal variables that are stored as Low Byte and High Byte where each of those are stored individually as bits. For instance, I am seeing 100A current on the Fronius welder side that maps to the following 16 bits with their corresponding address:
IN[297] : 1
IN[298] : 0
IN[299] : 0
IN[300] : 1
IN[301] : 1
IN[302] : 0
IN[303] : 0
IN[304] : 1
IN[305] : 1
IN[306] : 0
IN[307] : 0
IN[308] : 1
IN[309] : 1
IN[310] : 0
IN[311] : 0
IN[312] : 0
IN[297] - IN[304]: Low Byte
IN[305] - IN[312]: High Byte
I have tried low byte + high byte * 256 per https://www.robot-forum.com/robotforum/yas…9040/#msg119040 but that doesn't work as the high byte per these values comes to 25 and 25 * 256 = 6400. Any help with this conversion between bits to decimal values will be much appreciated.
WoV: V5.0.5_Build0600
KRC4: 8.3.25
Fronius: RCU5000i