Skip to main content
ElectraCore
LearnCalculatorsCircuit DesignerReferences
Saved
Educational use: ElectraCore supports learning and preliminary checks. It does not replace a competent electrician or engineer. Verify results, equipment data, and current local regulations before installation or live work.
Courses/Industrial Control & PLCs/PLC Fundamentals

lesson · 10min · Lesson 24 of 30

Timers and counters in ladder logic

Course syllabusCourse overview
01Motor Starters
  1. ReadDOL starter: main and control circuit
  2. ReadStar-delta starter: wiring and timer
  3. ReadSoft starters: operation and parameters
  4. ReadVariable speed drives: inverter drives
  5. quizMotor starter quiz
02Contactors & Overloads
  1. ReadContactor construction and ratings
  2. ReadAuxiliary contacts and interlocking
  3. ReadThermal overload relays: setting the dial
  4. ReadElectronic overloads and motor protection relays
  5. exerciseContactor circuit problems
03Control Circuit Diagrams
  1. ReadIEC 60617 symbols: reading control diagrams
  2. ReadLadder diagrams: European and American styles
  3. ReadDrawing a full DOL control circuit
  4. ReadForward-reverse motor control
  5. exerciseDiagram reading exercises
04Safety Systems
  1. ReadEmergency stop requirements: IEC 60204
  2. ReadSafety relays and safety PLCs
  3. ReadLight curtains and safety interlocks
  4. ReadSafe isolation: EAWR and multi-energy control
  5. quizSafety systems quiz
05PLC Fundamentals
  1. ReadWhat is a PLC and where is it used?
  2. ReadPLC architecture: CPU, I/O modules, power
  3. ReadLadder logic basics: contacts and coils
  4. ReadTimers and counters in ladder logic
  5. exerciseWriting a simple motor control program
06Panel Layout & Installation
  1. ReadPanel design: layout and component spacing
  2. ReadCable management inside panels
  3. ReadLabelling, ferrules, and documentation
  4. ReadPanel testing and commissioning checklist
  5. quizFinal assessment
Lesson · 10min
Lesson contents 0%

In this lesson

PurposeCore theoryWorked exampleKnowledge checkSources

In this lesson

PurposeCore theoryWorked exampleKnowledge checkSources
0% read
ElectraCore lesson handout

Timers and counters in ladder logic

Industrial Control · Lesson 24 · Advanced

AdvancedReview: professional review pending

Purpose

Apply timers and counters with explicit time base, edge behavior, retention, reset and overflow semantics.

Before you beginControl diagrams and starter circuits · Machine safety and protection fundamentals

Learning objectives

  • Trace data and energy paths
  • Predict deterministic state changes
  • Design maintainable panel implementation
  • Verify before handover

IEC-style timer/counter concepts are portable, but exact invocation, data types, retentivity and task behavior must be confirmed for the target runtime.

PLC SCAN AND LADDER STATEPLC SCAN AND LADDER STATESUPPLYSTARTERmotor · loadshort circuit · overload · command · interlock · isolation

Core theory

TON delays the true output while input remains true; TOF delays clearing; pulse timers create a timed pulse. State elapsed-time and reset behavior.

Counters normally count qualifying edges, not every scan that an input remains true. Define rising/falling edge, preset, reset priority, retained value and overflow response.

Time accuracy includes task scheduling and I/O delay. Do not use a basic software timer alone where a safety response time or independent protective function is required.

Terms, symbols, and units
TermMeaningSymbolUnit
TONOn-delay timer function blockNot applicableNot applicable
Rising edgeTransition from false to trueNot applicableNot applicable
RetentiveState intentionally preserved across defined conditionsNot applicableNot applicable
Observed response ≤ input delay + task interval/jitter + output delay

A timing budget boundary, not a universal equality.

time
Worked exampleA counter sees a sensor remain true for 50 scans after one false-to-true transition.

Assumptions: The supplied PLC behavior and equipment data are authoritative for the example; Safety functions are separately specified and validated.

  1. Edge: There is one rising edge.
  2. Count: A correctly edge-triggered counter increments once, not 50 times.
  3. Reset: Confirm reset priority and retained behavior in the exact runtime.

The count increases by one for the single qualifying edge.

Reasonableness check: The result follows the declared scan, wiring and assembly boundaries rather than assuming every platform behaves identically.

Common mistakes
  • Treating field input state and program contact instruction as the same thing
  • Writing one output from several uncontrolled locations
  • Using spare physical space as proof of thermal or EMC capacity

Where this appears in practice

PLC and panel engineering connects field signals, deterministic software, power/control distribution, safety functions, documentation and commissioning evidence.

SafetyPLC force, online edit, manual output or simulation can move machinery. Establish authorization, exclusion zones, safety-state controls and rollback before change; isolate and prove dead before panel wiring work.
Local code checkConfirm the exact PLC/runtime semantics and manufacturer manuals, current IEC/BS EN 61131-3, machine risk assessment, IEC/BS EN 60204-1, applicable IEC/BS EN 61439 assembly part, EMC/cybersecurity requirements, short-circuit rating and documented design/routine verification. Standard PLC logic is not a safety function unless the complete implementation is designed and validated accordingly.

Knowledge check

Should a counter increment on every scan while its input stays true?

No. Edge-counting logic records the defined transition once.

Answer: No. Edge-counting logic records the defined transition once.

Practical exercise

Simulate timer/counter behavior through bounce, power cycle, simultaneous reset and counter maximum.

Summary

  • PLC logic operates on a sampled process image
  • Panel layout is an electrical/thermal/EMC design
  • Commissioning must prove hardware, software and safety behavior

Sources and review

  • IEC 61131-3:2025: Programmable-controller languages: IEC; 2025; International
  • IEC 60204-1:2016+AMD1:2021: Electrical equipment of machines: IEC; 6.1; International
  • IEC 61439-1:2020: Low-voltage assemblies: general rules: IEC; 2020 with current corrigenda; International

Editorial review date: 2026-08-22. Professional electrical review is pending.

Educational material for learning and preliminary checks. Verify current local requirements and exact equipment instructions. This lesson does not replace competent professional work.

Personal study record

Lesson notes

Ready

Notes are stored on this device unless you export them.