07-17-2018 02:51 PM
I would like to send digital output to switch contactors at user defined delay times by writing a boolean array without using the sequence structure and wait function .Any ideas how I can achieve this ?Below is my code but it uses the wait function
07-17-2018 02:58 PM - edited 07-17-2018 02:59 PM
How about a state machine then?
Lets see besides the standard initialize, error, and exit cases you might need:
A state to take user input for the delay times
A state to switch the relays on
A state to switch the relays off
A wait state
...
BTW: Except for a few rare instances of a single pane sequence, you should NEVER need to use the Sequence structure. If you find yourself grabbing for it stop and think about what you are doing as there is probably a better way...
07-17-2018 03:50 PM - edited 07-17-2018 03:52 PM