PLC Simulator
Free · No login · Works in your browser

See what a PLC does between a button press and a motor output

Step through read inputs → solve program → write outputs. Change a field device between phases and watch why the ladder does not see it until the next scan.

Interactive three-wire starter

Change a physical input, then advance one PLC phase at a time. The input image only changes during Read inputs.

Scan0
  1. 1. Read inputs

    The PLC copies the physical input terminals into its input image table.

  2. 2. Solve program

    The ladder is solved from the frozen input image and the previous output image.

  3. 3. Write outputs

    The solved output image is copied to the physical output terminals.

Physical field devices

These can change at any moment.

Input image snapshot

START

Input image

FALSE

STOP_OK

Input image

TRUE

OL_OK

Input image

TRUE

Program solve

Physical output

M

MOTOR OFF

Changes only at Write outputs

Ready

Press Start, then read the physical inputs to begin.

The key mental model

The program usually reads a snapshot, not the terminals live

In the basic cyclic model, the input phase freezes field states into memory. The program solves every rung against that image, and the physical outputs update later. This makes scan behavior deterministic—but creates a one-scan delay for changes that arrive after the snapshot.

1

Read inputs

Copy field terminals into the input image. A later field change remains pending.

2

Solve ladder

Evaluate contacts and coils top-to-bottom using the frozen images.

3

Write outputs

Apply the solved output image to field terminals, then begin again.

Engineering boundary

This visualizer teaches the common input-image/program/output-image model. Real PLCs may use immediate I/O, remote racks updated asynchronously, periodic or event tasks, interrupts, and vendor-specific scheduling. Use the controller manual and measured task timing for real safety or high-speed design decisions.

Teach with real learner data

Our study of 10,272 grading runs found seal-in and Stop logic among the hardest beginner concepts.

Read the data study

Download the free lab manual

Twelve browser-runnable PLC labs with objectives, instructor notes, grading, and no special hardware.

Open the lab manual

Estimate scan time

Turn instruction count, I/O points, CPU class, and communications overhead into a useful estimate.

Use the calculator
Questions

PLC scan cycle questions

A cyclic PLC first reads physical inputs into an input image, then executes the user program against that snapshot, then writes the solved output image to physical outputs. Communications and housekeeping usually happen around those core phases.

Runnable simulator field guide

PLC scan-cycle visualizer guide: test checklist

Direct answer

The learner can predict a bounded program trace before running it and explain which input image, rung order, instruction state and output update produced each observation.

Written for pLC learners using a visual tool to understand why contacts, coils, timers, counters and one-shots change over repeated scans.

a PLC scan-cycle bench used to correlate physical inputs, program state, timer or counter execution, output indication and repeated timing evidence while studying input sampling, ordered execution, output update and scan-to-scan state
System map / 02

NODE 01observable

Scenario setup

Program version, runtime dialect, task assumption, initial input image, rung order, instruction instances, final output owners, cycle counter and observation points.

NODE 02observable

I/O and state map

Physical or simulated input through sampled image, ordered program evaluation, internal state, output image, modeled equipment and next-cycle feedback.

NODE 03observable

Normal run

A small program produces the predicted rung and tag trace for several repeated scans from a declared reset.

NODE 04observable

Boundary run

Input changes between scans, one-scan pulse, duplicate output, timer threshold, counter edge, retained state, restart and asynchronous I/O difference.

NODE 05observable

Injected fault

An input-image, order, instance-state, edge, output-owner, update, observation or target-model mismatch.

NODE 06observable

Target check

The reduced case recreated and measured in the exact target controller and task.

Answer surface / 07

What does a PLC scan-cycle visualizer show?

It shows how a declared input state is evaluated in program order, how stateful instructions change and when outputs become observable in the learning model.

Does every PLC update inputs and outputs in exactly the same way?

No. Tasks, immediate I/O, distributed devices, interrupts and platform-specific behavior can differ, so verify the target execution model.