PLC from zero: the sorting line All PLC coursesPLC module ↗ 100%
Course · PLC programming · 12 chapters

PLC from zero: build a sorting line

By the end of this course you program the machine on the right yourself: a colour sensor reads each product, two pushers send blue and green products to their own conveyors, red ones ride to the end, and the PLC counts every colour.

You start with no knowledge of PLCs or programming. Each chapter teaches one idea, lets you play with it in a simulation, and ends with a lab in PLC Studio: you create the project, write Structured Text, link the inputs and outputs to the Trainer T8, and test it.

The goal of the course: the sorting line, running on your own program.

Chapters

How the course works

1 · One idea at a timeAn everyday picture first, then the PLC version, then a simulation you can play with.
2 · Predict, then checkYou guess what happens before you see it. Short quizzes explain every wrong answer.
3 · Build it in PLC StudioGuided steps with automatic checks. Switch the guide off when you are ready.
4 · Everything adds upEvery chapter is a piece of the sorting line. The last chapter puts them together.

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 10 hours · You need: No knowledge of PLCs or programming.

You learn: PLC inputs and outputs, the scan cycle, Structured Text variables and data types, Boolean logic, IF and CASE, latching (set/reset), edge detection (R_TRIG), timers (TON), counters, function blocks, arrays and FOR loops, a visualisation (HMI).

  1. Chapter 1: What a PLC does

    • What a PLC does: Say what inputs, outputs and a program are.
    • The scan cycle: Describe the 3 steps a PLC repeats, and why its program never waits.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  2. Chapter 2: Variables

    • Variables and :=: Declare variables, and read an assignment.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  3. Chapter 3: Logic: AND, OR, NOT

    • Logic: AND, OR, NOT: Combine conditions with AND, OR and NOT.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  4. Chapter 4: Decisions with IF

    • Decisions: IF: Read and write IF … THEN … ELSIF … END_IF.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  5. Chapter 5: Memory: start and stop

    • Memory: the latch: Build Start/Stop that keeps a motor running.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  6. Chapter 6: Edges: react once

    • Edges: react only once: Use R_TRIG and F_TRIG to react once per event.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  7. Chapter 7: Numbers, bits and CASE

    • Numbers, bits and CASE: Turn two bits into a number and count by category.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  8. Chapter 8: Timers

    • Timers: TON: Make an output last 0.5 s or 3 s.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  9. Chapter 9: Function blocks and I/O links

    • Function blocks and MAIN: Understand instances, MAIN, and the link to the hardware.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  10. Chapter 10: Your first visualization

    • Lab in PLC Studio: program this part and pass the automatic tests.
  11. Chapter 11: Arrays and a queue

    • Arrays, FOR and the queue: Store items in order and take out the oldest.
    • Lab in PLC Studio: program this part and pass the automatic tests.
  12. Chapter 12: The sorting line

    • Putting it together: the sorting line: See the sorting line as a set of pieces you already know.
    • Lab in PLC Studio: program this part and pass the automatic tests.

Frequently asked questions

Do I need a real PLC or software to take this course?

No. Everything runs in the browser: a simulated PLC and a training panel (Trainer T8) with switches, lamps and a sorting line.

Which PLC language does the course teach?

Structured Text (ST) from IEC 61131-3, the text language used by most industrial PLC engineering environments. What you learn carries over to them.

Is the course free?

The first three chapters are free. The whole course is included in the Plus and Pro plans.

How long does it take?

About 10 hours: 12 chapters, each a short lesson with a simulation and a lab of 20 to 40 minutes.

Start here: PLC programming from zero

12 short lessons that take you from “what is a PLC?” to programming a complete sorting line. Each lesson builds on the one before. Do them in order, and try every simulator yourself.

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.