Beckhoff PLC trainingin TwinCAT 3 Structured Text
Learn to program Beckhoff PLCs in TwinCAT 3 Structured Text, then practise every idea on working 3D machines in your browser. No licence, no PLC on the bench and no account.
About 40 hours in 40 short stages. Free during the beta, with no account.
PumpOn := (Start OR PumpOn)
AND NOT Stop AND Permit;Delay(IN := Start, PT := T#200MS);
PumpOn := Delay.Q;Examples from the course, as you would write them in TwinCAT 3.
40 stages, from your first scan to reusable blocks
Read, decide, command
You can explain a scan and make an output follow an input.
Lesson: Think in scansLesson: Know what a tag representsOnly run when allowed
You can combine conditions and explain which request wins.
Lesson: Build permission into the logicCount an event once
You can distinguish one bottle from many scans and reset a count deliberately.
Lesson: Count events, not scansFollow a measured signal
You can connect typed blocks and turn raw counts into useful units.
Lesson: Follow the signalKeep control steady
You can hold demand between two thresholds and diagnose chatter.
Lesson: Control a band, not a pointAsk for evidence
You can allow valve travel time and alarm on missing feedback.
Lesson: Separate request from evidenceChoose the working pump
You can select duty or standby equipment without commanding both.
Lesson: One request, one eligible pumpAcknowledge is not reset
You can separate a condition, a latched alarm and its horn.
Lesson: Acknowledge the horn, retain the alarmHand control over
You can switch Auto and Manual without an unexplained command change.
Lesson: Who controls the command?One batch, clear phases
You can describe which commands belong to each step and when to move on.
Lesson: Describe a process in stepsChoose a route
You can enter one alternative path and make competing transitions predictable.
Lesson: One decision, one active routeGive commands an end
You can distinguish N, S and R actions and reset a chart deliberately.
Lesson: Make every command’s lifetime clearProve a safe recovery
You can use failure evidence and require an intentional restart after interruption.
Lesson: Prove recovery, tooWrite phases in text
You can write a CASE state machine and define every command in every state.
Lesson: Write one phase as a state machineWork through a collection
You can index a typed array and use a bounded FOR loop to sum it.
Lesson: Four values, one bounded loopKeep the latest readings
You can explain filter warm-up and replace the oldest reading correctly.
Lesson: Remember only the latest measurementsGroup equipment information
You can read and write typed members of an equipment status structure.
Lesson: Data is not executable logicReuse tested control logic
You can run two instances of one block and prove their memory stays independent.
Lesson: One definition, separate instancesRead a real transmitter
You can turn 4–20 mA input counts into engineering units and keep them in range.
Lesson: From milliamps to a number you can trustDon’t trust a dead signal
You can detect a broken transmitter wire and make the plant safe.
Lesson: When the signal diesAlarm limits that don’t chatter
You can raise high and low alarms with a deadband.
Lesson: Give alarms a deadbandRun a pump on a drive
You can send a drive its run command and speed, and wait for its feedback.
Lesson: Ask a drive, then checkTrip, reset, restart on purpose
You can handle a drive trip and reset without a surprise restart.
Lesson: Trips, resets and restartsMachine lab 1: real machines, clear rules
You can control a real machine from its pushbuttons and one measured value.
Machine lab 2: memory, timing and sequences
You can remember what a machine saw, time its moves and run it through fixed stages.
Machine lab 3: measurements and batches
You can control a machine from analogue measurements, and make it learn from what it measured.
Machine lab 4: safety sequences and plant control
You can write sequences that prove each step, trip to a safe state on any fault, and run plant for hours.
Machine lab 5: expert systems
You can build the tracking, recipe and coordination logic that real production lines depend on.
Capstone: run the whole factory
You can run a whole plant from one program: utilities, a batch, a line, a robot and the safety around them.
Safety lab 1: stop, and restart only on purpose
You can make an emergency stop and a guard gate stop a robot, and need a deliberate reset and start before it moves again.
Safety lab 2: trust nothing single
You can read safety devices on two channels, check palm buttons and contactor feedback, and lock out on a fault.
Safety lab 3: how to stop, and what to let through
You can choose between stop categories 0 and 1 and mute a light curtain for cartons but not for people.
Safety capstone: commission the cell
You can bring every safety function of a robot cell together and prove each one, one device and one fault at a time.
Operator screens 1: grey is normal
You can draw normal equipment calmly and flag only what needs the operator.
Operator screens 2: read it at a glance
You can design an overview that answers 'is it all right?' in a second.
Operator screens 3: alarms in priority order
You can sort alarms by priority and handle acknowledgement the way the alarm standards describe.
Operator screens 4: ask before you can't undo
You can make an irreversible action ask first, clearly, and handle the question in the PLC.
Operator screens 5: same button, same place
You can build faceplates that work the same every time and say why a button is unavailable.
Beckhoff Structured Text
- TwinCAT 3.1
Structured Text
Written instructions such as PumpOn := Start AND NOT Stop; with TON, TOF, CTU and R_TRIG instances you call by name. Good for maths, states and loops.
59 exercises, starting with “Your first command”
Learn, practise, check
Learn the idea
26 short lessons in plain English, each with a worked example in Siemens SCL code (TwinCAT Structured Text reads almost the same, without the # signs) and a scan-by-scan trace.
Practise on a 3D rig
59 missions on working pumps, tanks and a filling line. Automatic tests tell you when your code is right.
Check your understanding
Short questions apply each idea to a new case. Every answer comes with an explanation.
Fix plants that misbehave
Sites need engineers who can find faults, not only write new code. 4 missions start from an operator’s report. Run the plant, replay the failure one scan at a time and repair the logic.
There is no TwinCAT export file yet. Your code is plain IEC 61131-3 Structured Text, written the TwinCAT way: copy it into an ST POU in TwinCAT 3 and declare the same variables in its VAR section.
Frequently asked questions
Is this Beckhoff PLC training free?
Yes. Everything is free during the beta, with no account and no card details. At launch the guided labs and the first three course stages stay free for good; the full course becomes part of the Pro plan.
Do I need TwinCAT or a Beckhoff PLC?
No. Everything runs in your browser. You write Structured Text the TwinCAT 3 way: plain names with no # in front, TON and CTU instances you call by name, and times such as T#200MS. What you learn carries over when you open TwinCAT.
Is this official Beckhoff training?
No. It is an independent course, not certified or endorsed by Beckhoff Automation. Its timers, counters and edges follow the Tc2_Standard reference in the Beckhoff Information System.
Does it help with CODESYS and WAGO?
Yes, for Structured Text. CODESYS uses the same IEC 61131-3 Structured Text, with the same TON, TOF, CTU, R_TRIG and F_TRIG blocks, and WAGO programs its controllers with CODESYS V3. The code you practise here reads the same there.
Which TwinCAT languages does it cover?
Structured Text, for now. TwinCAT 3 also has ladder (LD), FBD, SFC and CFC editors. 59 of the 74 missions are written in TwinCAT Structured Text; the ladder, FBD and sequence missions open in the Siemens editors, which follow the same IEC 61131-3 rules.
How long does the course take?
About 40 hours: 26 lessons and 74 practice missions in 40 short stages. Go at your own pace; your progress saves on this device.
Do I get a certificate?
Not an official one. You can print a summary of the stages and missions you have passed to show a supervisor or employer.
Should I learn Beckhoff, Siemens or Allen-Bradley?
Learn the one your site uses, or the one used where you want to work. The ideas are the same in all three, and TwinCAT Structured Text reads almost exactly like Siemens SCL without the # signs.
Start Beckhoff PLC training now
Two guided labs come first if you are new. If you know some PLC already, jump straight into the course.
Siemens, SIMATIC and TIA Portal are trademarks of Siemens AG. Allen-Bradley, Rockwell Automation, Studio 5000 and Logix are trademarks of Rockwell Automation, Inc. Beckhoff and TwinCAT are trademarks of Beckhoff Automation GmbH. CODESYS is a trademark of CODESYS GmbH. PLC Gym is independent and is not affiliated with or endorsed by any of these companies.