EXOxAL13N
Member
Factorytalk ME Edition.
what i'm trying to do is have a single button that opens and closes a valve manually. When the valve is opening I want the button to show that its opening and vise-versa when closing.
so far what I've come up with but not sure how correct it is because I am new and self taught...
if [Valve_Closed_Status] =0 and [Valve_Close_Output] then 0 else if
[Valve_Opened_Status] =0 and [Valve_Open_Output] then 1 else if
[Valve_Open_Output] and [Valve_Opened_Status] then 2 else if
[Valve_Close_Output] and [Valve_Closed_Status] then 3 else 4
0-Closing status indicator
1-Openeing status indicator
2-close function (toggles bit to 0)
3-open function (toggles bit to 1)
4-error msg
unsure how to write a tag as "false" other than "=0"
what i'm trying to do is have a single button that opens and closes a valve manually. When the valve is opening I want the button to show that its opening and vise-versa when closing.
so far what I've come up with but not sure how correct it is because I am new and self taught...
if [Valve_Closed_Status] =0 and [Valve_Close_Output] then 0 else if
[Valve_Opened_Status] =0 and [Valve_Open_Output] then 1 else if
[Valve_Open_Output] and [Valve_Opened_Status] then 2 else if
[Valve_Close_Output] and [Valve_Closed_Status] then 3 else 4
0-Closing status indicator
1-Openeing status indicator
2-close function (toggles bit to 0)
3-open function (toggles bit to 1)
4-error msg
unsure how to write a tag as "false" other than "=0"