Industrial Automation

Ladder Logic Tutorial 2026: Your First PLC Motor Control Program Step by Step (Updated July 2026)

Ladder logic is the language of every PLC panel in Indian industry — from Bajaj Auto conveyor lines to MSME packaging machines. This tutorial explains rungs, contacts, and coils, then walks you through building your first motor start-stop control program from scratch.

AB
ABC Trainings Team
July 10, 2026 — 11 min read

Ladder Logic Tutorial 2026: Your First PLC Motor Control Program Step by Step (Updated July 2026) (Updated July 2026)

Every PLC panel on the factory floor of India's booming manufacturing sector — from the 62,405-job AURIC industrial corridor in Sambhajinagar to the Ranjangaon automotive belt in Pune — runs on ladder logic. It is the universal language of industrial automation: graphical, intuitive, and readable by anyone who has ever seen an electrical relay diagram. Here's the thing about learning ladder logic: most people make it far more complicated than it needs to be. A motor start-stop circuit — the 'Hello World' of PLC programming — teaches you 80% of the conceptual foundation you need. In this step-by-step tutorial, I'll explain how ladder logic works, what rungs, contacts, and coils actually do, and walk you through building your first motor control program from nothing. By the end, you will be able to create and test a functional PLC program, and you will understand what every contact symbol on an existing rung means.

TL;DR
  • Ladder logic is graphical — it looks like an electrical relay circuit, which is exactly what it replaced in industry
  • A rung has input contacts on the left and an output coil or function block on the right — current flows left to right when inputs are satisfied
  • Normally Open (NO) contact: passes when its bit is TRUE; Normally Closed (NC) contact: passes when its bit is FALSE — this is the most important concept to get right
  • Motor start-stop circuit uses three contacts (Start NO, Stop NC, Seal-in NO) and one motor output coil — this is the foundation of 90% of discrete machine logic
  • Always test in simulation before connecting to real hardware — TIA Portal PLCSIM and Codesys Simulator are free

What Is Ladder Logic and Why Is It Shaped Like a Ladder?

Ladder logic (also called Ladder Diagram, abbreviated LD) gets its name from its visual structure: two vertical lines on either side represent the power rails (like the two sides of a power supply), and the horizontal rungs connecting them represent the logic circuits. Historically, this is not a coincidence — ladder logic was designed to be readable by electrical engineers and technicians who already knew how to read relay panel schematics. Before PLCs, industrial control panels contained dozens or hundreds of physical electromechanical relays wired together: pressing a start button energised a relay coil, which closed a set of contacts, which energised a motor contactor, and so on. Ladder logic replaces all of those physical relays with software instructions that behave identically — the same logical relationships, just executed in microseconds by a processor instead of milliseconds by electromagnets. This heritage is why ladder logic looks old-fashioned to software developers but completely familiar to anyone from an electrical background. In India, where most automation graduates have an electrical engineering diploma or degree, ladder logic is genuinely the most natural entry point to PLC programming — and it is still what 80% of industrial machines use as their primary programming language.

Ladder Logic Tutorial 2026: Your First PLC Motor Control Program Step by Step (Updated July 2026)
Real student workshop at ABC Trainings

Understanding Rungs, Contacts, and Coils — The Building Blocks

A ladder logic program consists of rungs. Each rung is a row of logic that the PLC scans from left to right during each scan cycle. On the left side of a rung are input elements — contacts — that represent conditions the PLC checks. On the right side is an output element — a coil, function block, or output instruction — that executes when the input conditions are satisfied. Contacts represent the state of bits in the PLC's memory: an input bit might correspond to a physical pushbutton wired to the PLC's input terminal; an output bit might correspond to a relay or contactor wired to the PLC's output terminal. A timer function block is also placed on the right side of a rung: when the rung condition goes TRUE, the timer starts counting; when it reaches its preset value, it sets a done bit. Counter blocks work similarly but count events instead of time. The PLC scans all rungs sequentially from top to bottom, then repeats — typically hundreds of times per second. This scan-based execution is fundamentally different from how software programs work in most other contexts, and understanding it is essential for writing programs that behave correctly, particularly when dealing with pulse contacts and rising-edge triggers.

Contact TypeSymbolPasses Current WhenCommon Use
Normally Open (NO)—| |—Bit = TRUE (signal active)Start button, sensor, seal-in
Normally Closed (NC)—|/|—Bit = FALSE (signal inactive)Stop button, E-Stop, overload
Output Coil—( )—Rung condition TRUEMotor contactor, relay, valve
Set/Latch (S)—(S)—Latches bit TRUE on rising edgeAlarm latching, fault memory

Normally Open vs Normally Closed Contacts: Getting This Right Is Everything

The normally open (NO) contact and normally closed (NC) contact are the two most fundamental ladder logic elements — and getting them confused is the single most common mistake beginners make. A normally open (NO) contact passes current (evaluates TRUE) when the bit it represents is TRUE, that is, when the associated signal is active. If I/O_0.0 is TRUE (the pushbutton is pressed), the NO contact for I_0.0 passes. A normally closed (NC) contact passes current when the bit it represents is FALSE — it is like a contact that is closed when nothing is activating it. The stop button in a motor circuit is the classic NC contact: the contact is closed (current passes) when no one is pressing the stop button (the bit is FALSE). Pressing the stop button makes the bit TRUE, which opens the NC contact and breaks the rung. The common confusion: in relay ladder logic, a normally closed contact on the rung represents a relay contact that is physically closed when its coil is de-energised. The bit being FALSE means the relay coil is de-energised, which means the physical NC contact is closed. This inverted logic trips up almost everyone at first. The rule of thumb: use NO contacts for things that must be active for the output to run, use NC contacts for things that must NOT be active for the output to run (safety stops, overloads).

Ladder Logic Tutorial 2026: Your First PLC Motor Control Program Step by Step (Updated July 2026)
Real student workshop at ABC Trainings

Your First Program: Motor Start-Stop Control Circuit

The motor start-stop circuit is the first real program every PLC trainee builds — and it captures the core concepts of seal-in (latch) logic that appears in almost every machine sequence. Three inputs: a Start pushbutton (NO, momentary), a Stop pushbutton (NC, normally closed — current passes when not pressed), and a Thermal Overload Relay contact (NC, trips open if the motor overheats). One output: the Motor Contactor Coil. The rung has two branches in parallel: branch one contains the Start NO contact; branch two contains a Seal-in NO contact (M_Coil.0, the output bit of the motor contactor itself). Both branches feed into the Stop NC and Overload NC contacts in series, and then into the Motor Output Coil. Logic: press Start (I_0.0 goes TRUE) → Start contact passes → Overload NC and Stop NC are both passing → Motor Coil energises. The Motor Coil output bit (M_0.0) is used in the Seal-in contact on branch two. Now even when Start is released (I_0.0 goes FALSE), the Seal-in contact (M_0.0 NO = TRUE because the coil is energised) keeps the rung alive. Press Stop (I_0.1 goes TRUE → NC opens) or trigger Overload (OL bit goes TRUE → NC opens) → rung breaks → Motor Coil de-energises → Seal-in contact opens → motor stops and stays stopped. This self-sustaining logic pattern appears in every machine on every factory floor.

Adding Overload Protection, Emergency Stop, and Safety Interlocks

Once your basic start-stop circuit works, adding safety elements is the next step — and in India's industrial environment with CMYKPY and PMKVY schemes pushing safety-first apprenticeship training, understanding safety interlocks from day one is non-negotiable. Emergency Stop (E-Stop): add an E-Stop NC contact in series on the rung, positioned before all other logic. By IEC 60204-1 (the machine safety standard), an E-Stop must de-energise all hazardous motion regardless of any other logic state. In ladder logic, series NC contact = AND logic: all conditions must be TRUE for the rung to pass. The E-Stop NC contact is normally closed (current passes) and opens only when the emergency stop mushroom button is physically pressed and latched. Overload Relay (OLR): add the thermal overload relay NC contact in series — trips to open if the motor draws excess current for sustained time. Interlock from another machine: if Motor 2 must only run when Motor 1 is running, add Motor 1's output coil contact (M1_Coil.0 NO) in series on Motor 2's rung. This ensures that physically impossible machine states cannot be commanded by software. These additions keep your rung clean, readable, and auditable — which is what commissioning engineers, electricians, and safety inspectors need to verify on the factory floor.

Testing Your Ladder Logic in Simulation Before Going Live

Testing ladder logic in simulation before connecting to real hardware is not optional — it is how professional commissioning engineers work. Two free simulators are widely available in India. Siemens TIA Portal PLCSIM: included with TIA Portal V18 (education licence available), simulates S7-1200 and S7-1500 programs completely in software, including I/O forcing and data monitoring. Codesys V3 (Codesys SL): a free IEC 61131-3 programming environment used by dozens of PLC brands (Wago, Beckhoff, Bosch Rexroth, many Delta models) — the built-in SoftPLC simulator runs your program in real time. Allen Bradley: RSLogix 5000 Emulator and Studio 5000 Logix Emulator V31 require a paid licence, but many training labs have access. In simulation: use the 'Force I/O' feature to manually toggle input bits and watch the rung logic respond. Force Start TRUE → watch Motor Coil activate. Force Stop TRUE → watch it de-energise. Test every combination of E-Stop, Overload, and fault conditions before declaring the program ready. Professional commissioning engineers document every test case and its expected vs. actual result — start that habit during training. ABC Trainings provides both PLCSIM and hardware bench time so you complete the simulation-to-hardware commissioning loop in training. Call +91 7039169629 or WhatsApp 7774002496 for batch dates.

Maharashtra's CMYKPY (Chief Minister Yuva Karya Prashikshan Yojana) provides eligible diploma and degree engineers a ₹6,000–₹10,000 monthly stipend during the hands-on apprenticeship phase of PLC ladder logic training — a powerful incentive to complete training at zero cost while earning.

Get the Industrial Automation Brochure + Fees + Batch Dates on WhatsApp

Free 1:1 counselling. Placement track record. CMYKPY/PMKVY eligibility check.

💬 Get Brochure on WhatsApp📞 Call 7039169629

About the author: Rahul Patil. 12 yrs experience training engineers across Maharashtra.

Visit Our Centers

  • Wagholi (Pune): 1st Floor, Laxmi Datta Arcade, Pune-Ahilyanagar Highway. Call 7039169629
  • Hadapsar (Pune HQ): 1st Floor, Shree Tower, opp. Vaibhav Theater, Magarpatta. Call 7039169629
  • Cidco (Chh. Sambhajinagar): Kalpana Plaza, opp. Eiffel Tower, N-1 Cidco. Call 7039169629
  • Osmanpura (Chh. Sambhajinagar): S.S.C Board to Peer Bazar Road, near Jama Masjid. Call 7039169629
  • Sangli: Shubham Emphoria, 1st Floor, Above US Polo Assn., Sangli-Miraj Rd, Vishrambag. Weekend batches available. Call 7039169629

💬 WhatsApp 7774002496

FAQs

Is ladder logic still used in modern PLCs?

Yes. Despite being the oldest PLC programming language, Ladder Diagram is still the most widely used language in industrial automation globally and in India specifically. It remains dominant in discrete manufacturing, machine control, and retrofit automation. Most PLC engineers use Ladder Diagram alongside Structured Text on the same project.

What is a seal-in contact in ladder logic?

A seal-in contact (also called a latching or maintaining contact) is an output coil's own contact wired in parallel with the start input. When the start button energises the coil, the seal-in contact closes and keeps the rung energised even after the momentary start button is released. It is how PLCs implement a motor start-stop latch without physical relay memory.

Can I learn ladder logic without a physical PLC?

Yes. Siemens TIA Portal PLCSIM (free with the education licence) and Codesys SoftPLC (free download) both simulate PLC execution entirely in software. You can write, test, and debug complete ladder logic programs including I/O forcing and real-time monitoring without any physical PLC hardware.

How long does it take to learn ladder logic?

A motivated beginner can write basic motor control and timer-counter logic within 1–2 weeks of focused daily practice. Reaching the level where you can confidently commission a real machine (reading existing programs, adding rungs, fault-finding) takes 2–3 months of consistent hands-on work, ideally with a mix of simulation and real PLC hardware.

A

ABC Trainings Team

Expert insights on engineering, design, and technology careers from India's trusted CAD & IT training institute with 11 years of experience and 2000+ trained professionals.