For a school project I have to write a PLC program for a physical bridge I've build.
It has to be programmed with the software of Alpha Programming. PLC Controller is a Mitsubishi one.
What the program has to do is pretty simple:
Rest stage (nothing happens) : Toggle switch (SPDT) is off, push button A is pushed. Led lights are on green.
Bridge goes up by switching the toggle switch to one position, LED lights turn immediately red. The relay sends a signal to the engine which makes the brigde go up.
When the brigde is up another push button B will be pushed, then the bridge stops, relays changes the direction of the engine. Toggle switch to the other position makes the brigde go down.
For questions please contact. Attached is a photograph of the physical made brigde where you can see the connectors for the PLC.
20-30$ for the program