So this question has to do with sequence of events in a PLC program. I am using AB RSLogix 5k v20.01 for those interested, but this question tends to be pretty simple.
For an example, lets say I want to move a cylinder out and then back in when a photo eye is made, but I don't want to interrupt the process once it starts. I realize there is a lot more to something like that, such as alarms if the cylinder gets stuck or a sensor for extend and retract fails, etc but I would really like to focus on how to sequence it out.
Steps:
Step 1: Photo eye gets "made" and turns on an input.
Step 2: Cylinder Extends
Step 3: Cylinder Retracts
This is a really simple and dumbed down version of what I'm going to do, but I would really like some more details or even some example logic if you have some on how to accomplish this.
I guess one could use bit masks, bit shifts, a counter, etc to mark where one is at in the process so that we could pick back up in the same spot.
Thanks in advance for the help!
For an example, lets say I want to move a cylinder out and then back in when a photo eye is made, but I don't want to interrupt the process once it starts. I realize there is a lot more to something like that, such as alarms if the cylinder gets stuck or a sensor for extend and retract fails, etc but I would really like to focus on how to sequence it out.
Steps:
Step 1: Photo eye gets "made" and turns on an input.
Step 2: Cylinder Extends
Step 3: Cylinder Retracts
This is a really simple and dumbed down version of what I'm going to do, but I would really like some more details or even some example logic if you have some on how to accomplish this.
I guess one could use bit masks, bit shifts, a counter, etc to mark where one is at in the process so that we could pick back up in the same spot.
Thanks in advance for the help!