CANBUS Output multiple switch states to a single byte

I’m trying to output switch states to an emerald k6 ECU. Here is the info for the Ecu :

I don’t see an easy way to combine multiple switch states into a single byte, certainly not on the CANbus Export page – it seems to be x1 value per channel.

Is there way around this? Any help would be mega!
Emerald CAN protocol5.pdf (41.3 KB)

you need to use number function and multiply status by value corresponding to bit number
so bit 0 is 1, bit 1 is 2, bit 2 is 4, bit 3 is 8, bit 4 is 16, bit … bit 7 is 128

Thanks Greg, I’m not sure I follow, is there any possibility of you please showing me an example ??

like below please note status need to be 0 or 1 no other value
on the picture missed status 4 will be multiplied by 8

1 Like

Thanks Greg, I’ll try and have a play, I’ll let you know how I get on.