PLC · Garage door All PLC coursesPLC module ↗ 100%
PLC project · Intermediate · 4 chapters

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.

The goal: the door, running on your own program, with every safety function.

Chapters

How the course works

1 · The real machine firstHow it works in the real world, and the whole of it running, before you write a line.
2 · One piece per chapterA lesson with a live simulation, a prediction and a worked example, then the lab that builds it.
3 · Checked on the trainerAutomatic tests drive the inputs and check the outputs: any correct program passes.
4 · Then on your ownSwitch the guide off and rebuild it from memory: that is when it sticks.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

A garage door with safety

5 short lessons: the door in the real world, then one lesson for each piece of the program. Each one ends with its lab in PLC Studio.

How this module helps you learn
  • Small steps: one new idea at a time, from everyday examples to code.
  • Pictures and words together: every idea has a diagram or a timing chart.
  • Worked examples: code explained one step at a time. Explain each line to yourself before you reveal it.
  • Try it: simulators where you press the buttons and watch the PLC think, cycle by cycle.
  • Predict first: guess the result before you see it.
  • Code puzzles: put real code lines in the right order before writing your own.
  • Check yourself: short questions with instant feedback, and a quick review of older lessons at the start of each lesson.

🛠 PLC Studio

A real practice environment: an industrial-style engineering tool connected to the Trainer T8. Your Structured Text really runs here, cycle by cycle. Follow a lab with Guided mode, or switch it off and check your own solution at the end. Your work is saved in this browser.