Good question, tell me what you think would work best.
I'm going to have a pulse train which is artificially generated by the PLC, or one coming from an encoder input. The pulse train, plus some math, will be used to interpret distances that operators will enter as their ON and OFF values.
I'll have for example, one output that will ON in a stage, then OFF in the next stage, then ON again in the next, repeating this for up to 24 stages. The time in each stage will be based on the preset values entered by the user. There will be a input used to start the stage's logic. So my guess is, I use a counter in each stage?
EDIT:
I just realized, I'll have to store 24 recipes, but only one will run at one time, BUT I could have up to 8 outputs operating based on the settings of each recipe. So, worst case is 8 outputs, or the subroutine being called 8-times per scan. I guess.
Got to think about this more.