PLC Simulator
PLC instruction reference

PLC Instructions List: Codes, Behavior and Vendor Names

Learn what contacts, coils, latches, one-shots, counters, program-flow and data instructions do during execution. Compare representative Allen-Bradley, Siemens, IEC 61131-3 and Mitsubishi conventions, then practice the underlying logic in a browser-based training simulator.

Join 12600+ learners practicing PLC programming

Real plc instructions footage

See this exact skill in the working simulator.

Watch the real browser product respond to the task on this page, then try the same practical workflow yourself. No slides, concept mockups, install, or credit card.

Try this in the browser
PLC Instructions in a Real Ladder Simulator

From field signal to instruction result

Six instruction families, six different signal paths

A mnemonic only becomes useful when you can connect it to the field device, controller memory, task execution and physical result. These diagrams make that complete path visible.

Pushbutton field state passing through a PLC input module and Boolean tag into a ladder contact instruction
01Input instructions examine controller data. Trace the path from field device and module channel to tag state before choosing XIC, XIO, NO or NC notation.
PLC output coil instruction driving an output module, interposing relay, contactor and guarded training motor
02An output instruction writes controller state; the module, interface device, contactor and actuator determine what happens physically.
PLC timer and counter instruction states beside a photoelectric sensor and boxes on a conveyor
03Timers measure enabled duration while counters respond to events or edges. The same conveyor can require both kinds of state.
PLC one-shot edge detector producing one narrow pulse while a carton blocks a photoelectric sensor for longer
04An edge instruction turns a transition into a one-scan event so a slow-moving part is not counted repeatedly while the sensor remains active.
4 to 20 milliamp pressure transmitter connected to PLC analog input with raw scaling and data move instruction flow
05Data instructions become meaningful when raw module values, engineering units, quality state and destination tags are all explicit.
PLC main routine calling separate motor alarm and process subroutines linked to a physical training cell
06Program-flow instructions organize when routines execute; they do not replace clear ownership, interfaces and controller-specific task design.

Direct answers

PLC code and PLC instruction lists are related, but not identical

What is PLC code?

PLC code is the executable control logic stored in a programmable logic controller. It may be written as ladder diagram, function block diagram, structured text, sequential function chart or another vendor-supported form. An instruction is one operation inside that program; the full code also includes tags, routines, tasks, data types and controller configuration.

Instruction list or Instruction List?

This page is a catalog of common PLC operations. Capitalized Instruction List can also mean the legacy IEC 61131-3 textual language that writes logic as mnemonic statements. If that is what you need, use the PLC Instruction List simulator and guide.

Foundations

Shared control concepts, different instruction systems

PLC platforms share control concepts inherited from relay logic and computing, but they do not expose one universal instruction set. Allen-Bradley's Studio 5000 uses mnemonics such as XIC, OTE and JSR. Siemens and IEC-oriented environments use graphical elements and function blocks with platform-specific details. Mitsubishi programming tools use mnemonics such as LD, OUT, SET, RST and PLS. Available instructions, parameters and runtime behavior depend on controller family and software version.

The transferable skill is predicting how Boolean state, transitions, retained values and task execution affect a machine. Comparable contacts and rising-edge detectors solve similar control problems, but they are not automatically interchangeable: storage, prescan, enable, scope and update rules can differ. Use this guide to build a mental model, then verify exact behavior in the target vendor's documentation.

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. Start with contact-and-coil behavior in the no-account browser exercise; after signup, the scenario catalog covers broader instruction combinations in practical machine contexts.

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 the first contact-and-coil rung without an account, toggle a field input and observe the output. Then save your result and continue into guided scenarios that combine timers, counters, latches, data and program structure.

Questions

PLC instruction set — frequently asked.

A PLC instruction set is the collection of operations supported by a controller and its programming environment: Boolean examinations, output writes, edge detectors, timers, counters, comparisons, math, data movement, program flow, communications, motion and vendor-specific functions. The concepts overlap across vendors, but names, operands, execution rules and available instructions differ.

Instruction-set field guide

PLC instructions: truth, state, timing and test behavior

Direct answer

PLC instructions are operations evaluated by the controller runtime. Learn each instruction from its input contract, output or state change, scan behavior, reset behavior, boundary cases and vendor terminology—not from the symbol alone.

This guide is written for beginners building a transferable instruction vocabulary and experienced technicians comparing IEC-style, Allen-Bradley-style and Siemens-style naming. The intended result is specific: the learner can choose an instruction for an observable requirement, predict its behavior over scans and write a test that distinguishes correct state from a plausible-looking rung.

System map / 02

Six checkpoints for PLC instructions

NODE 01observable

Boolean examination

Contact-style instructions read a Boolean expression and contribute rung truth; they do not directly represent whether a physical contact carries energy.

NODE 02observable

Output assignment

Coils and assignment instructions write state. Multiple writers create priority and maintenance risks that must be intentional.

NODE 03observable

Retentive state

Set/reset, retentive timers and counters preserve information until a defined reset or initialization event occurs.

NODE 04observable

Time behavior

Timers accumulate according to enable, reset, time base and task execution; a displayed preset alone does not define behavior.

NODE 05observable

Count behavior

Counters depend on edge detection, accumulated range, done logic and reset policy rather than an abstract quantity.

NODE 06observable

Data operation

Moves, comparisons, arithmetic and conversions require type, range, precision, overflow and validity contracts.

Procedure / 03

A six-step practice and commissioning workflow

  1. 01

    State the requirement

    Write the observable condition, state change and reset or stop behavior.

    Evidence: The instruction choice is justified by behavior.

    Avoid: Choosing a mnemonic first.

  2. 02

    Identify the contract

    List input types, output type, internal state and platform assumptions.

    Evidence: Unsupported or ambiguous operands are found before coding.

    Avoid: Assuming all integer and time types behave alike.

  3. 03

    Predict scans

    Walk false, true, held, falling and reset conditions across repeated execution.

    Evidence: A small state table explains the instruction completely.

    Avoid: Reasoning from one static screenshot.

  4. 04

    Implement minimally

    Use one clear instruction pattern with named tags and one owner for final state.

    Evidence: The rung or statement maps directly to the requirement.

    Avoid: Hiding state changes behind clever branches.

  5. 05

    Test boundaries

    Exercise zero, preset, maximum credible value, overflow and restart where applicable.

    Evidence: Boundary behavior is recorded and deterministic.

    Avoid: Testing one nominal input.

  6. 06

    Verify target differences

    Compare the exact vendor manual and run on the intended controller toolchain.

    Evidence: Platform-specific status and fault behavior is confirmed.

    Avoid: Treating transferable semantics as vendor parity.

Diagnostic matrix / 04

Symptoms, proving points and next actions

Diagnostic symptoms, inspection points, interpretations and next actions for PLC instructions: truth, state, timing and test behavior
Observed symptomInspectInterpretationNext proving action
Contact appears invertedTag value, instruction type, physical normal state and namingA normally closed instruction is logical negation, which may differ from the device’s electrical description.Write the truth table.
Latched bit will not clearEvery set/reset writer, reset priority, mode and retentive initializationAnother writer or untested state may reassert the bit.Cross-reference all writes.
Timer resets unexpectedlyEnable continuity, non-retentive behavior, reset rung and task stateA brief false scan can clear accumulated time.Trend enable and accumulator.
Counter skips or doublesInput edge, one-shot, scan rate, filtering and numeric rangeThe counted event contract does not match the sampled level.Create one deterministic event pulse.
Comparison never trueData type, units, scaling, precision and signednessOperands may represent different engineering facts despite similar numbers.Inspect typed values before changing thresholds.
Conversion changes valueSource range, destination range, rounding, truncation and overflow policyThe destination cannot preserve every source value.Test endpoints and fractional cases.

Product evidence / 05

What the browser practice can actually demonstrate

The public reference links supported contacts, coils, timers, counters, comparisons, data movement, conversion and control instructions to parser/runtime fixtures and runnable scenarios.

Answer surface / 07

Questions people ask about PLC instructions

What are the basic PLC instructions?

Contacts, coils, set/reset, timers, counters, comparisons and data movement form a common introductory set. Names and exact semantics vary by platform.

What is the difference between XIC and XIO?

In Allen-Bradley terminology, XIC is true when the examined bit is true and XIO is true when it is false. They examine data rather than physical continuity.

What is the IEC equivalent of a TON?

TON is also the common IEC on-delay function-block name, but invocation, instance data and timing details differ by environment.

When should I use a latch?

Use retained state only when the requirement defines how it is set, reset, initialized and recovered after faults or restart.

Why use a one-shot instruction?

It converts a rising or falling condition into one execution event, useful when a held input must increment or trigger only once.

Can two rungs write the same output?

Some runtimes allow it, but the later effective write can obscure ownership. Prefer one final owner or explicit arbitration.

How do I test a PLC instruction?

Create a state table, reset to known state, apply transitions over scans and assert output plus retained internal state at boundaries.

Are instruction names portable?

Concepts often transfer, but mnemonics, data structures, status bits, time bases and fault behavior require exact platform documentation.