A garage door with safety
A door that opens and closes on a short press, stops at its limit switches, never drives the motor both ways, stops at once on the stop switch, reverses when the photo-eye sees a person or a car, flashes a warning light while it moves and closes by itself after 10 s.
You learn to write safe control: interlocks, the order of priorities in a program, and sensors that protect people. You need IF, the latch and timers: chapters 1–8 of PLC from zero teach them.
Chapters
How the course works
Structured Text (IEC 61131-3), the language used by industrial engineering environments such as TwinCAT 3 and CODESYS. PLC Studio and the Trainer T8 are VisoTrain’s own training tools. TwinCAT is a registered trademark of Beckhoff Automation GmbH. CODESYS is a registered trademark of CODESYS GmbH. VisoTrain is not affiliated with or endorsed by them.
Syllabus
Level: Intermediate · Time: about 3 hours · You need: IF, latches and timers (chapters 1–8 of PLC from zero).
You learn: motor reversing with an interlock, limit switches, priorities in a PLC program, safety sensors (photo-eye), a flasher, automatic closing with a timer.
Chapter 1: Open and close, stop at the ends
- A garage door in the real world: Say what an automatic door must do, and why safety comes first.
- Two directions and two limit switches: Start a movement with a short press, end it at the limit switch, never both directions.
- Lab in PLC Studio: program this part and pass the automatic tests.
Chapter 2: Stop switch and photo-eye
- Stop and the photo-eye: priorities: Make Stop win over everything, and reverse when the doorway is blocked.
- Lab in PLC Studio: program this part and pass the automatic tests.
Chapter 3: The warning light
- A warning lamp: the flasher: Flash a lamp only while the door moves.
- Lab in PLC Studio: program this part and pass the automatic tests.
Chapter 4: Close by itself
- Closing by itself, safely: Close after 10 s open, unless something is in the way.
- Lab in PLC Studio: program this part and pass the automatic tests.
Frequently asked questions
Why must a door reverse when its photo-eye trips?
Stopping could trap a person under the door. Reversing frees them, which is what door safety standards ask for.
How do you give the stop button priority in Structured Text?
Write its IF last in the program: the last assignment in the cycle decides the output.