|
Re: Flat Sequence Structure autonomous with limit switches
Place a While loop in the frame you want to leave when the switch is pressed. Inside the loop, put a 10 ms Wait so you don't keep things like communication and timed tasks from running. Also inside the loop, read the switch. Wire the value of the switch to the Stop terminal of the While loop.
Now, when the sequence reaches that frame, it will stay there until the switch is activated.
If your switch is active low and reads FALSE when pressed, change the loop's red Stop terminal to a green Continue terminal.
|