PLC Simulator
PLC instruction reference

The PLC Instruction Set, Explained Instruction by Instruction

Contacts, coils, one-shots, counters, program flow and data moves — what each instruction actually does during the scan cycle, how Allen-Bradley, Siemens, IEC 61131-3 and Mitsubishi each name it, and a browser simulator where you can run every one of them.

Join 1900+ learners practicing PLC programming

Foundations

One instruction set, four naming systems

Every PLC on the market executes broadly the same instruction set, because every PLC models the same two ancestors: the hardwired relay panel (contacts, coils, latches) and the small computer (move, compare, math, subroutines). What differs between vendors is packaging and vocabulary. Allen-Bradley's Studio 5000 gives the instructions three-letter mnemonics — XIC, OTE, JSR — that date back to the PLC-5. Siemens TIA Portal and the IEC 61131-3 world (CODESYS, OpenPLC, Beckhoff) mostly drop the mnemonics: a normally-open contact is just a contact, and timers and counters are standard function blocks with defined pins. Mitsubishi's GX Works keeps its own compact instruction words — LD, OUT, SET, RST, PLS.

That means the real skill is not memorizing names — it is knowing what each instruction does in terms of bits, edges and the scan cycle. An XIC and an IEC normally-open contact are the same test (is the bit 1?). An Allen-Bradley ONS, a Siemens P contact, an IEC R_TRIG and a Mitsubishi PLS are the same rising-edge detector. Learn the behavior once and every vendor's manual becomes a naming table.

Each instruction below gets its own page: what it does during the scan, a ladder diagram showing it in context, a timing diagram where behavior is stateful, the vendor naming table, two worked examples and the mistakes that actually bite people in the field. Every one of them can be dropped on a rung and run live in the free browser simulator.

The reference

PLC instructions by category

Looking for timers? TON, TOF and RTO have a dedicated deep-dive on the PLC timers page, counters get the full treatment on PLC counters, and every symbol is drawn out on the ladder logic symbols reference.

Reading about instructions is the slow way

Build a rung with any instruction on this page, toggle the inputs and watch bits, accumulators and outputs change scan by scan — in the browser, free, no vendor license.

Questions

PLC instruction set — frequently asked.

A PLC instruction set is the collection of operations a programmable logic controller can execute in its program — bit examinations (XIC, XIO), output coils (OTE, OTL, OTU), edge detectors (ONS), timers (TON, TOF, RTO), counters (CTU, CTD, CTUD), program-flow controls (JSR, MCR, JMP) and data instructions (MOV, comparisons, math, conversions like DINT_TO_REAL). Each vendor names and packages the instructions differently, but the underlying set is remarkably consistent because they all model the same relay-logic and data-handling concepts.