I want to learn how to do some programming. Basically if Tag1 is on my system is not talking to the node. If Tag2 is on the system is being used by someone. If Tag1 is on and Tag2 is off the system is running OK. So I have a multistate indicator with 5 states.
0=Red Off
1=Red On
2=Yellow Off
3=Yellow On
4=Green On
I would like to write a statement that is something like this.
IF (Tag1 && !Tag2)
state 4
else if (Tag1=0)
alternate between state 0 &1
else if (Tag2=1)
alternate between state 2&3.
I could do this by layering lights over top of one another but man that gets ugly quick. Think about when you have to find out why the light is flashing red and you open the software only to see the light should be yellow. I have been bitten by this once or twice from myself and other guys. SO does anybody have a clue how to write this?
0=Red Off
1=Red On
2=Yellow Off
3=Yellow On
4=Green On
I would like to write a statement that is something like this.
IF (Tag1 && !Tag2)
state 4
else if (Tag1=0)
alternate between state 0 &1
else if (Tag2=1)
alternate between state 2&3.
I could do this by layering lights over top of one another but man that gets ugly quick. Think about when you have to find out why the light is flashing red and you open the software only to see the light should be yellow. I have been bitten by this once or twice from myself and other guys. SO does anybody have a clue how to write this?