PLC Sim Lab
Ladder logic how-tos

PLC programming for beginners, step by step

You do not need a PLC, a licence or a lab to start learning PLC programming. This guide takes you from "what is a contact?" to writing and testing real machine logic, in the order that working technicians actually learned it.

3 min read · Updated 2026-10-02

Step 1: understand what the PLC is doing

A PLC repeats one loop forever, the scan cycle: it reads every input (buttons, sensors), runs your program from top to bottom, then switches every output (motors, valves, lamps). A scan takes a few milliseconds, so to a person the machine reacts instantly. Everything you write is a rule of the form "when these inputs are in this state, turn that output on". If you are completely new, read what a PLC is first.

Step 2: learn the three ladder symbols you will use 90 % of the time

SymbolNameMeaning
--[ ]--Normally open contact (NO)passes power when its bit is 1
--[/]--Normally closed contact (NC)passes power when its bit is 0
--( )--Coil (output)its bit becomes 1 while power reaches it

Contacts in a row are AND (all must pass). Contacts on parallel branches are OR (any one may pass). That is already enough for a lot of real logic. More in ladder logic basics.

Step 3: your first rung

A push button on input I0.0 lights a lamp on output Q0.0:

|--[ I0.0 ]----------------------( Q0.0 )--|
     PUSH                           LAMP

While the button is held, the input bit is 1, the contact passes power and the coil switches the lamp on. Release it and the lamp goes out. Try it now: open the first lesson in the simulator, it takes two minutes.

Step 4: wire it (the part many courses skip)

The program only works if the field devices are wired correctly. On a typical 24 V DC PLC: the button gets +24 V on one side and its other side goes to the input terminal; the input common goes to 0 V. The lamp is connected between the output terminal and 0 V. Learn the rules in PLC wiring basics and sinking vs sourcing; most "my program does not work" problems are wiring problems.

Step 5: the patterns that run real machines

Step 6: learn one addressing style, then the others

The logic is the same in every brand; only the names change. Siemens writes I0.0 / Q0.0, Mitsubishi X0 / Y0, Allen-Bradley I:0/0 / O:0/0 and TOYOPUC X000 / Y000. See PLC addressing. In PLC Sim Lab you can switch the same program between all four styles with one click.

Step 7: solve exercises, then find faults

Reading is not enough: you get good by solving tasks. Work through the PLC exercises with solutions (pedestrian crossing, drawbridge, pump alternation, tank level, conveyor counter and more), then the fault-finding challenges, where a machine has one hidden fault and you have to find it with a multimeter. Finishing the free course earns a certificate.

A realistic practice plan

WeekDo this
1Scan cycle, NO / NC / coil, AND / OR, first rung, wiring a button and a lamp
2Seal-in start / stop, SET / RESET, rising edge, an emergency stop
3Timers (TON, TOF), counters (CTU), a flashing lamp, a traffic light
4Interlocks, sequences, 3 exercises, 3 fault-finding challenges

Twenty to thirty minutes a day is enough. Consistency beats long weekend sessions.

Watch it on the PLC Sim Lab channel

A complete first circuit, from an empty panel to a running motor, in 13 minutes. Open on YouTube → · More videos →

Try it yourself. Wire sensors, contactors and a PLC, write ladder logic and press RUN in the free PLC Sim Lab Playground. Nothing to install.

Open the Playground →Guided lessons →

Frequently asked questions

Can I learn PLC programming without a real PLC?

Yes. A simulator lets you wire inputs and outputs, write ladder logic and run it exactly like a real PLC. PLC Sim Lab is free and runs in the browser with Siemens, Mitsubishi, Allen-Bradley and TOYOPUC style addressing.

Which PLC language should a beginner learn first?

Ladder logic (LD). It is the most widely used language on machines and the easiest to read when fault finding. Structured Text is worth learning later for calculations.

How long does it take to learn PLC programming?

The basics (contacts, coils, seal-in, timers, counters) take about a month at 20-30 minutes a day. Becoming confident on real machines takes months of practice with exercises and fault finding.

Is PLC programming hard?

The logic is simple; what takes practice is thinking in scans and wiring correctly. Starting with small rungs and testing each one in a simulator makes it much easier.