Use this browser model to trace a glazing sequence, inspect its signals and provoke a stuck valve. Then work through what changes when you test your own PLC project in TwinCAT XAE and a compatible XAR runtime. This page runs JavaScript; it does not install, connect to or execute the Beckhoff runtime.
Watch the donut, signal lamps and highlighted code move together. The displayed Structured Text explains the sequence; JavaScript advances the model. The scan counter represents simulated time at a nominal 1 ms interval, not measured PLC executions or browser timing. Use Step to inspect a model update, and Jam the valve to separate a command from its physical effect.
👀 Watch the link: when bDonutAtStation flips TRUE, line L2 lights, bGlazeValve goes green, and only then does glaze pour. Machine, signals, and Structured Text are never out of step — because they are all the same task. That is what "running in simulation" actually feels like. Hit ⏭ Step to advance one slice at a time, exactly like single-cycle mode in the online view.
A real TwinCAT project needs a selected target, a compatible runtime, a task configuration and an explicit source for its inputs. The comparison below illustrates those choices; its buttons do not activate hardware. A local PLC runtime does not automatically create an EtherCAT plant model. Beckhoff provides separate EtherCAT simulation tooling for that job.
Local runtime test. Install and configure a supported runtime, select the target and configure the project for the intended I/O model. Follow the documentation for your TwinCAT build and licence. This page makes no connection to that runtime.
What to verify. Confirm the selected target, task interval, ADS route and input/output mappings. Runtime availability and licensing depend on the installation. Do not assume an example AmsNetId is the correct address of your machine.
Go back up and hit ⚡ Jam the valve. Watch it: bGlazeComplete goes TRUE, line L3 tries to shut the valve — but it's stuck open. The donut drowns, the glaze counter climbs, the line faults out. Now picture that on the real floor: pink syrup over a machine, a stopped line, a very sticky afternoon and a maintenance callout. Here it is a number you reset with a button.
Use the buttons to compare test boundaries: software-only logic tests, physical-controller tests and models associated with real assets. Each answers different questions; adding hardware alone does not make a test complete.
Closed-loop inputs can be part of ordinary software-in-the-loop testing. That alone does not make a digital twin. A twin represents an identified real asset and needs a defined relationship to its operational data, assumptions and model accuracy.
1 · You have no controller on your desk, only the TwinCAT IDE on your laptop. How do you run and test the actual task today?
2 · Your virtual line glazed a donut, the photo-eye tripped on its own, and the valve opened — all with no clicking from you. Which setup were you running?
For the contrasting simulator workflow, see Sysmac Studio simulation. For the general sequence rather than a vendor setup, use the timer and CASE model.
These references describe Beckhoff software. The exercise above is an independent TryPLC educational model; no hardware test or manufacturer certification is claimed.