PLC lab · Level 10
Pedestrian crossing
A timed sequence with a push button, where one wrong light puts somebody in danger.
- Intermediate
- About 1 hour 15 minutes
- 26 learners
IEC 61131-3
IEC 61131-3 is the international standard for PLC programming languages.

In short
IEC 61131-3 is the international standard for PLC programming languages.
EDWartens Lab lets you practise three of them, ladder, Structured Text and Sequential Function Chart, in one free browser studio, each running against a simulated machine.
Labs to open for this
Each one is a job with a client brief, a 3D machine and an automatic test.
PLC lab · Level 10
A timed sequence with a push button, where one wrong light puts somebody in danger.
PLC lab · Level 9
Fill between two floats, protect the pump from running dry, and latch a high-high alarm.
PLC lab · Level 5
Start, seal-in, stop, E-stop and an overload that trips. The first thing every PLC programmer builds.
PLC lab · Level 12
Share the work between two pumps and take over within seconds when one trips.
Browse all labs. They open without an account; a free account records your results.
4 steps
Every lab runs the same way.
Open a PLC lab and choose ladder, Structured Text or SFC.
Write the program from the brief and the I/O list.
Run it and watch the tag table, the active step or the energised rungs.
Try the same job in a second language, then run the FAT.
Ladder suits relay-style logic. Structured Text is a text language that reads a little like Pascal, and it suits arithmetic, decisions and anything that would take twenty rungs. Sequential Function Chart draws a process as steps and transitions, which fits a machine that moves through states such as idle, running and tripped.
In the lab you can choose the language for each job. The Structured Text editor shows a short program running beside the live tag table and the plant. The SFC editor highlights the active step as the machine moves from one to the next.

Your program is judged by the same numbered acceptance tests whichever language you use. That makes it a fair way to compare them. Write the pedestrian crossing as an SFC and the steps map onto the light sequence almost one for one.
Write the tank pump in Structured Text and the dry-run protection becomes a few clear lines.
The tag table, the I/O list and the plant model are shared, so switching language does not mean relearning the machine.

The lab implements the three languages above. It does not cover every part of the standard, and it uses its own engine rather than a vendor runtime, so treat it as practice for the thinking and the structure of IEC 61131-3 programs.
For full-featured development environments, tools such as CODESYS are worth learning once you have the basics.
Keep going
Guides on the same subject, and every lab in one place.
Guide
Free online PLC simulator that runs in your browser. Write ladder, Structured Text or SFC and test it on a running plant model. No download needed.
Read the guideGuide
Practise ladder logic online for free. Build rungs, watch them energise and test them on a real plant model with a factory acceptance test.
Read the guideGuide
A free virtual PLC and electrical panel lab for classes. Assign machines with due dates and see who has passed, without buying trainer kits.
Read the guideHome
The front page of the lab, with every lab and the first level to open.
Go to the front page
PLC labProgram a working machine in ladder, Structured Text or SFC and watch it run.
Electrical labLock out, wire, test and fault-find a control panel, then prove it with a factory acceptance test.
Robotics labTeach a robot arm a pick and place job and prove its handshake with the PLC.
Process labRead the P&ID, check and calibrate instruments, tune loops and run a plant from a control room.
HMI and SCADA labBuild a touch panel and a SCADA picture, connect them to a PLC and prove them with a numbered acceptance test.
Maintenance labKeep a small plant running: find faults with real instruments, fix them safely and record the work in a CMMS.
Substation and MCC labWalk a small substation, isolate a motor bucket safely, grade a relay and fault-find a motor control centre.
Solar and EV labSize a solar array, set a battery and fault-find an EV charger on a commercial site.
AI Basics labLearn what AI is by playing with it: teach a camera, watch a model learn, test it and check it is fair.
AI WorkbenchPrepare data, train a model and check the AI's work against a brief.
AI Data Centre labWalk an AI data hall, rack and cable a GPU server, and size its power and cooling.
OT security labMap a plant network, split it into zones, write the firewall rules, read the logs and run the response drill.Questions
Yes. EDWartens Lab includes a Structured Text editor that runs your program against a live plant model in the browser. It is free, needs no account to start, and nothing needs to be installed.
IEC 61131-3 is the international standard that defines PLC programming languages: ladder diagram, function block diagram, structured text, instruction list and sequential function chart. EDWartens Lab practises ladder, structured text and SFC.
Sequential Function Chart (SFC) describes a process as steps and transitions. Only the active step runs, and a transition condition moves the process to the next step. It suits machines that run in clear stages, such as a crossing or a batch.
Most learners start with ladder because it resembles relay circuits, then add Structured Text for calculations and complex decisions. Try the same lab job in both, so you can compare them directly.
Open a lab, read the brief and run your program on a machine in the browser. No account needed to start.