I am taking the Control Systems course in high school and the teacher gave as the first exercise to make a 3 floor elevator.
To make the elevator, 3 push buttons must be used, one to go to the second floor, one to go to the second floor and one to go to the third floor, there is also 1 limit switch on each floor and finally 1 lamp on each floor that is activated when it is on that floor.
I was able to realize the elevator without many problems, but I would like to know if there is a way to simplify the logic of my circuit, because I use 14 relays and I do not think it is necessary to use so many.
Here is the photo of the circuit:

P1 is the first floor push button, P2 is the second floor push button and P3 is the third floor push button.
FC1 is the first floor limit switch, FC2 is the second floor limit switch and FC3 is the third floor limit switch.
To make the elevator, 3 push buttons must be used, one to go to the second floor, one to go to the second floor and one to go to the third floor, there is also 1 limit switch on each floor and finally 1 lamp on each floor that is activated when it is on that floor.
I was able to realize the elevator without many problems, but I would like to know if there is a way to simplify the logic of my circuit, because I use 14 relays and I do not think it is necessary to use so many.
Here is the photo of the circuit:

P1 is the first floor push button, P2 is the second floor push button and P3 is the third floor push button.
FC1 is the first floor limit switch, FC2 is the second floor limit switch and FC3 is the third floor limit switch.
