Problem with mini sliding gate

Thread Starter


Joined Jun 24, 2021
I am learning about relays and to practice what I have learned I have decided to make a small electric gate using the following method. I am making a circuit to control the opening and closing of the gate with three push buttons and two limit switches. Pushbutton S1 opens the gate, S2 closes it, S3 is an emergency stop pushbutton, FCI1 is the left limit switch and FCD1 is the right limit switch. Everything works fine, but there is a problem, if the motor is turning in one direction and I press the push button to turn the motor in the other direction, the motor stops (it should keep turning until it reaches the limit switch or S3 is pressed). How can I do so that when it turns in one direction, no matter if it is given the order to turn in the other direction, it keeps turning until it reaches the limit switch or when S3 is pressed (as far as possible without using another relay)?



PS: Sorry if my English is not very good, I am not a native English speaker.


Joined Nov 6, 2012
Remove Grey-Colored-Wires and replace with Orange-Colored-Wires to
disable both the Open and Close Buttons while Motor is running in either direction.

The safest configuration is one where ..........
In a "panic-situation", where the operator may be confused,
hitting the opposite direction Button should cause the Motor to STOP,
and will "lock-out" both the Close and Open Buttons, so that they do nothing.
This situation will then require pressing the "E-Stop" Button,
to reset the Relays for normal operation.
Relay Logic Gate Opener .png