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.
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: 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).
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.
Chapter 2: Variables
- Variables and :=: Declare variables, and read an assignment.
- Lab in PLC Studio: program this part and pass the automatic tests.
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.
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.
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.
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.
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.
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.
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.
Chapter 10: Your first visualization
- Lab in PLC Studio: program this part and pass the automatic tests.
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.
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.