Does anyone know how to bring Modbus data into PAC Project in four digit binary groups, BCD? The data coming in reads 584 which is the decimal value of binary 10 0100 1000. But, that is not what I need. I need it to read it in groups of 4 starting with the LSB. So, it would be 248, which represents 24.8 degrees C.
There are a couple ways to do this. Since the BCD representation is equivalent to the hexadecimal representation, you can use a couple built in functions:
Hi. Now, I am trying to figure out how to go the other way. Take a 4 digit integer and send out the BCD number. For example 9900 as 1001 1001 0000 0000