Dabbling with some expressions in my OIT program FTV ME 9, not something I am that experienced with. Managed an If,then, else that works well for a multistate state indicator. Now I am trying to get one working for visibility during state 3.
State 1 is based on a limit switch being made, state 2 is based on a different limit switch being made and 3 is when neither limit is made.
During this state I would like state 3 to animate using visibility. So if neither limit is made and my bit that is running off a timer is made visibility will pulse with the timer.
when I run something like this. I manage the opposite of what I would like to accomplish, states 1 and 2 pulse visibility with the timer and 3 stays solid.
{::[PLC]Program:MainProgram.LIMIT1} AND
{::[PLC]Program:VISIBILITY} OR
{::[PLC]Program:MainProgram.LIMIT2} AND
{::[PLC]Program:MainProgram.VISIBILITY}
When I run something like this all three states pulse...
NOT {::[PLC]Program:MainProgram.LIMIT1} AND
{::[PLC]Program:VISIBILITY} OR
NOT {::[PLC]Program:MainProgram.LIMIT2} AND
{::[PLC]Program:MainProgram.VISIBILITY}
Is there someway to check the state of each bit using an expression, say
limit1 =0 and visibility =1
or limit2 =0 and visibility =1
Or maybe someway to use State3 of the multistate indicator in conjunction with my timer bit that would make the statement true that I just don't know how to write do to my lack of knowledge with expressions?
State 1 is based on a limit switch being made, state 2 is based on a different limit switch being made and 3 is when neither limit is made.
During this state I would like state 3 to animate using visibility. So if neither limit is made and my bit that is running off a timer is made visibility will pulse with the timer.
when I run something like this. I manage the opposite of what I would like to accomplish, states 1 and 2 pulse visibility with the timer and 3 stays solid.
{::[PLC]Program:MainProgram.LIMIT1} AND
{::[PLC]Program:VISIBILITY} OR
{::[PLC]Program:MainProgram.LIMIT2} AND
{::[PLC]Program:MainProgram.VISIBILITY}
When I run something like this all three states pulse...
NOT {::[PLC]Program:MainProgram.LIMIT1} AND
{::[PLC]Program:VISIBILITY} OR
NOT {::[PLC]Program:MainProgram.LIMIT2} AND
{::[PLC]Program:MainProgram.VISIBILITY}
Is there someway to check the state of each bit using an expression, say
limit1 =0 and visibility =1
or limit2 =0 and visibility =1
Or maybe someway to use State3 of the multistate indicator in conjunction with my timer bit that would make the statement true that I just don't know how to write do to my lack of knowledge with expressions?