tmadore
Member
I have a bevel button on a crimson 3 G15 panel. I am trying to use the 2 state color animation to change button colors based on tag data.
I have two flag bits which I need to control the 2 state color.
basically I have 2 buttons which control the direction of a conveyor belt as well as turn it on, and an off button which turns the conveyor off.
One bit A turns the conveyor on and the other bit B controls the direction.
I wish to color the direction button only if the conveyor is powered and going in that direction.
I cannot seem to figure out how to change the color of the button with the logic from two data bits.
I have tried nested if statements but I keep getting "not enough arguments"
Any ideas would be appreciated.
I have two flag bits which I need to control the 2 state color.
basically I have 2 buttons which control the direction of a conveyor belt as well as turn it on, and an off button which turns the conveyor off.
One bit A turns the conveyor on and the other bit B controls the direction.
I wish to color the direction button only if the conveyor is powered and going in that direction.
I cannot seem to figure out how to change the color of the button with the logic from two data bits.
I have tried nested if statements but I keep getting "not enough arguments"
Any ideas would be appreciated.