BIT SWITCH has two states: ON and OFF, the same as BIT LAMP. Sometimes, we need a switch or lamp to show more than 2 states. There are two ways to do that.
Click here to download the sample. Refer to the sample to understand what’s following:
1. We use two BIT LAMPS laid one on top of another. Set them to the same size, other properties as how a normal two-state lamp would be. Use one bit address to control its state, another bit address to control its visibility. The same for the other one.
Then in the script, create a loop. In the loop, adjust the two lamps state and visibility according to other conditions.
2. The second way is much easier. Put a WORD LAMP on the screen, set how many states you would like (up to 128), then create a multi-state picture set. Please note while by default a picture set has 2 states, you can change it to up to 128 states. Apply this new picture set to your WORD LAMP. Give it a WORD address.
Now you can change the WORD LAMP’s state by changing the WORD address’s value.