I want to control a valve where I have a solenoid (when the HIGH valve opens and when the LOW valve closes).
It will control a few states, for example
-Opened
-Closed,
-Opening,
-Closing and
-ErrorState
There could be CommandOpen and CommandClose RPC. How can I implement it in structured text? It should have an enum that indicates the states and it will change the states when opens or closes. Thank you
It will control a few states, for example
-Opened
-Closed,
-Opening,
-Closing and
-ErrorState
There could be CommandOpen and CommandClose RPC. How can I implement it in structured text? It should have an enum that indicates the states and it will change the states when opens or closes. Thank you
