I need to add the following to my code:
a) In the midst of other steps in my program, I need to add a step that will look for a change in the state of one of my discrete inputs from false to true. When this change is seen…
b) The controller will wait 1 minutes (or other time), then execute a move on my axes.
I found the _SysMS tag that I think I have figured out how to execute a timer. Not elegant, but it works. Not so sure about detecting a change in discrete input state, while staying inside the current program. I know I could use a program trigger, but that would force me to jump to another program, and then I’m not sure how I would recover and get my main program to continue controlling my axes. So I basically need a program trigger within the step of my given program. Any ideas of thoughts on how get there?
Note: I’m trying to get access to an additional discrete in, and if I get that then this becomes much easier, as I can just trigger off of that input alone. Regardless, still would like to know how to execute reading a change within a step…
Thanks!