We have two sets of 4 inputs, creating two 4 bit binary values that allows us to select a value of up to 9 on each dial. This is to give us the ability to have double figure values.
e.g. dial 1 set to 2 (0100) dial 2 set to 8 (0001). I wish to combine these values to give the value 28.
normally in config.dat i would use $IN TO $IN to give a decimal value from binary inputs. however because the each dial only goes up to 9, this is not possible.
I could probably do something in the SPS but this is for a tool ID and if the SPS is stopped it, the tool id may be incorrect.
Is there a way to achieve what i want?