PLC · Car park All PLC coursesPLC module ↗ 100%
PLC project · Beginner+ · 3 chapters

A car park counter

Count cars at an entry and an exit with edges, keep the count between 0 and the number of places, show FREE or FULL, and open the barrier for a waiting car only when there is room, with a pulse timer.

You need IF, edges and timers: chapters 1–8 of PLC from zero teach them.

The goal: the car park, counted by your own program.

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: Beginner+ · Time: about 2 hours · You need: IF, edges and timers (chapters 1–8 of PLC from zero).

You learn: edge detection (R_TRIG), counting with limits, status displays, a pulse timer (TP).

  1. Chapter 1: Count the cars

    • A car park in the real world: Say what a car park controller counts, and with which signals.
    • Count each car once: Count with rising edges, and show the number.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  2. Chapter 2: Full or free

    • Limits: FREE or FULL: Keep the count between 0 and 8, and drive the sign.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  3. Chapter 3: The entry barrier

    • The barrier: a pulse timer: Open the barrier for 4 s for a waiting car, only when there is room.
    • Lab in PLC Studio: program this part and pass the automatic tests.

Frequently asked questions

Why does a counter need an edge?

A sensor stays on for many PLC cycles while a car passes. An edge counts only the moment it switches on, so one car counts once.

A car park counter

4 short lessons: the car park 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.