I want to represent 8 (on/off) signals with bits.

How do you represent bit notation in Opto Script:

Can I write:

nSignals = 0b0000_0000; what is opto script equivalent?

How do I set 2nd bit in Opto? result: nSignals = 0b0000_0010

How do I set multiple bit (4th and 6th) in Opto? result: nSignals = 0b0010_1010

How do I reset bit (6th) in Opto? result: nSignals = 0b0000_1010

How do I reset Multiple bit (2nd and 4th)? result: nSignals = 0b0000_0000

how do you merge 2 binary notation:

0b0110_0000

plus 0b0000_0110

equals 0b0110_0110