Free online PLC programming software and ladder logic simulator
Write ladder logic in the browser and run it on a simulator that scans like a PLC. Draw a rung, press run, toggle an input and watch power flow. No account, no download, and nothing that expires.
A simulator that scans the way a controller does
Most free ladder simulators evaluate every rung at once, which hides the behaviour that confuses people on a real machine. This one runs the program the way a PLC does: read the inputs, solve the rungs top to bottom against one set of values, then write the outputs. A coil written on rung ten is seen by rung eleven in the same scan and by rung two only on the next one, which is the output image at work and the reason a seal-in holds.
Edge detection is kept per instruction rather than per tag, so a counter counts once per press however long the button is held, and a one-shot fires for exactly one scan. Timers advance by the time that actually passed, so a 10 second TON takes 10 seconds whatever the scan time. The scan cycle article explains all three.
The instruction set
Twenty three instructions, named the way Rockwell names them, which covers start and stop circuits, timing, counting, simple arithmetic and comparisons, and subroutines.
| Contacts and coils | XIC, XIO, OTE, OTL, OTU |
|---|---|
| Edges | ONS |
| Timers | TON, TOF |
| Counters | CTU, CTD, RES |
| Data and maths | MOV, ADD, SUB, MUL, DIV |
| Comparisons | EQU, NEQ, GRT, GEQ, LES, LEQ |
| Program flow | JSR |
The timers and counters articles show each one running.
Where your program goes
It stays in this browser. Nothing is uploaded while you use the free editor, which also means clearing the browser's site data clears the program, so export a copy of anything you want to keep. A free LADX Studio account stores programs on our servers instead, keeps a history of every save you can compare and restore, and exports a program as a PDF with its I/O schedule.
Questions
- Is this PLC simulator really free?
- Yes. There is no account, no download, no trial period and nothing that expires. Your program is saved in this browser's own storage, so it is there when you come back on the same machine. A free LADX Studio account keeps programs on our servers instead, with a history of every save.
- Which ladder instructions does it support?
- Twenty three: XIC, XIO, OTE, OTL and OTU contacts and coils, the ONS one-shot, TON and TOF timers, CTU and CTD counters with RES, MOV and the four arithmetic instructions, the six comparisons, and JSR for subroutines. The names are Rockwell style because that is what most ladder is written in.
- Does it behave like a real PLC?
- In the ways that trip people up, yes. Rungs run top to bottom against one set of values, so a coil written low in the program is only seen by rungs above it on the next scan. Each instruction keeps its own edge memory, and timers count elapsed milliseconds, not scans. It does not model I/O hardware or a particular vendor's instruction timings.
- Can I open my Studio 5000 or TIA Portal project?
- Not the project file itself: .ACD and .ap files are proprietary and not documented. Export the program as an .L5X from Studio 5000, or as PLCopen XML, and open it in Convert, which reads both and writes Structured Text, Siemens SCL, Rockwell neutral text or PLCopen XML.
- Can I export what I write?
- The editor exports the whole project as a LADX file you can import again on another machine. To take the logic to a controller, Convert writes it out as IEC 61131-3 Structured Text, Siemens SCL, Rockwell neutral text or PLCopen XML, with a report of anything that did not translate.
Then draw the screen and the panel
The HMI builder binds to this program's tags and runs against the same scan engine, so a start button on the screen starts the motor in your logic. All of these are free.