Course · Ladder programming

PLC course

Write Ladder programs by hand on a simulator with buttons, sensors and moving machines, and understand the PLC from wiring to troubleshooting.

The lessons are in Arabic for now; the English version is on the way. Device screens and codes are the same as on the real hardware.

The PLC course page with a PLC, a Ladder rung, a sensor, a contactor and a motor
Course devices: the PLC, a Ladder rung, a sensor, a contactor and a motor.
Contents

The lessons

In order. Every lesson has a short explanation, hands-on experiments and questions.

  1. What is a PLC?
    How it differs from relay logic, the scan cycle, and its parts: CPU, power supply, I/O cards, and the major brands
    • From relays to the PLC
    • The scan cycle
    • ExerciseThe scan cycle in slow motion
    • Parts of a PLC
    • ExercisePLC rack
    • Well-known brands
    • Common faults on site
    • QuizLesson questions
  2. Wiring a PLC
    24 V DC supply, sinking and sourcing inputs with PNP and NPN sensors, and relay and transistor outputs
    • Power: 24V DC
    • Input card: sinking and sourcing
    • Output card: relay or transistor?
    • The bench: wire it yourself
    • ExerciseWiring bench
    • Common faults on site
    • QuizLesson questions
  3. Your first Ladder program
    NO and NC contacts and coils, AND and OR, and the trap of a Stop button wired NC
    • The contact and the coil
    • NO contact -| |-
    • NC contact -|/|-
    • Coil -( )-
    • AND and OR
    • Simulator: AND and OR
    • SimulatorLadder simulator
      • ExerciseAND: the press
      • ExerciseOR: the stair light
    • The trap: the NC-wired Stop button
    • SimulatorTry the trap yourself
      • ExerciseNC Stop button
    • Addresses in different brands
    • Common faults on site
    • QuizLesson questions
  4. Seal-in and Set/Reset
    DOL start/stop with seal-in, Set and Reset, and interlocks for reversing
    • Seal-in (latch)
    • Exercise: a DOL motor with overload
    • SimulatorSimulator: DOL motor
      • ExerciseDOL with overload
    • Set and Reset
    • SimulatorSimulator: Set and Reset
    • Interlock: forward and reverse
    • SimulatorSimulator: forward and reverse
      • ExerciseForward and reverse
    • Common faults on site
    • QuizLesson questions
  5. Timers
    TON, TOF and TP, and a star/delta program with a timer
    • The timer in Ladder
    • TON, TOF and TP on a chart
    • ExerciseLive timing chart
      • ExerciseTON: on-delay
      • ExerciseTOF: off-delay
    • Exercises: TON and TOF
    • SimulatorSimulator: timers
      • ExerciseStar/delta
    • Star-delta with a timer
    • SimulatorSimulator: star-delta
    • Common faults on site
    • QuizLesson questions
  6. Counters and comparison
    CTU and CTD, a bottle counter on a conveyor, and compare instructions in a car park
    • The CTU and CTD counters
    • Project: the filling counter
    • SimulatorSimulator: filling conveyor
      • ExercisePacking counter
    • Compare instructions
    • SimulatorSimulator: car park
      • ExerciseThe car park
    • Common faults on site
    • QuizLesson questions
  7. Memory, flags and edges
    M bits, rising and falling edges, and one button for start and stop
    • M memory bits
    • Edges: rising and falling
    • Exercise: one button for on and off
    • SimulatorSimulator: toggle
      • ExerciseToggle on one button
    • Exercise: an alarm with memory
    • SimulatorSimulator: the alarm
      • ExerciseAlarm and acknowledge
    • Common faults on site
    • QuizLesson questions
  8. Analog signals in the PLC
    From 4–20 mA to raw counts to a real value, and a tank with High and Low alarms and pump control
    • From the tank to a number
    • ExerciseThe signal chain
    • Conversion drill
    • ExerciseRaw ↔ value ↔ mA
    • In the program: scale and compare
    • Project: a tank with alarms
    • SimulatorSimulator: the tank
      • ExerciseTank with alarms
    • Common faults on site
    • QuizLesson questions
  9. Practical projects
    Traffic lights, a mixing tank, sorting boxes on a conveyor, and a garage door: each with a moving machine and an automatic test
    • Before you write: think in steps
    • The four projects
    • SimulatorProject simulator
      • ExerciseTraffic light
      • ExerciseMixing tank
      • ExerciseBox sorting
      • ExerciseGarage door
    • Position control with an encoder
    • Common faults on site
    • QuizLesson questions
  10. Troubleshooting and the final exam
    Online monitoring and forcing, the most common program mistakes, and the final exam
    • The approach: from the outside in
    • Forcing
    • Fix the programs
    • SimulatorSimulator: programs with faults
      • ExerciseDouble coil
      • ExerciseWrong NC logic
      • ExerciseSeal-in in the wrong place
    • Common faults on site
    • QuizLesson questions
    • ExamFinal exam
    • Practice on real brands
    • SimulatorSiemens S7-1200
      • ExerciseDOL motor with overload
      • ExerciseForward/reverse with interlock
      • ExerciseStar/delta with an IEC timer
      • ExerciseAlarm with acknowledge (Ack)
      • ExerciseCan counter CTU
      • ExerciseAnalog tank NORM_X and SCALE_X
      • ExerciseFix the gate traffic light
      • ExerciseCut-to-length with an encoder (HSC)
      • ExerciseFactory challenge: a complete filling line
    • SimulatorDelta DVP
      • ExercisePump with dry-run protection
      • ExerciseTwo-hand press
      • ExerciseFloodlight on one button (LDP)
      • ExerciseStar/delta with TMR K50
      • ExerciseCarton counter CNT
      • ExerciseTraffic light with 3 timers
      • ExerciseFix the sorting conveyor
      • ExerciseCut-to-length with an encoder (C251)
      • ExerciseFactory challenge: 3 mixing batches
    • SimulatorAllen-Bradley
      • ExerciseConveyor start/stop
      • ExerciseForward/reverse with interlock
      • ExerciseFloodlight on one button (ONS)
      • ExerciseStar/delta with TON and .DN
      • ExerciseCar park with CTU, CTD and compare
      • ExerciseAnalog tank with SCP
      • ExerciseFix the carton counter
      • ExerciseCut-to-length with an encoder (HSC)
      • ExerciseFactory challenge: automatic warehouse door

The course in numbers

10lessons, from the scan cycle to projects
4projects with moving machines and automatic tests
1final exam and a completion certificate
39exercises, experiments and self-checking questions
PLC

What you'll learn

  • How a PLC works, the scan cycle and its parts
  • Wire PNP and NPN sensors to inputs, and relay and transistor outputs
  • Write Ladder with NO and NC contacts and coils, AND and OR
  • Start and stop a motor with seal-in, Set/Reset and interlocks
  • Use TON, TOF and TP timers and program star/delta
  • Count with CTU and CTD and compare values
  • Scale a 4–20 mA signal to a real value and add High and Low alarms
  • Find program errors with online monitoring and forcing
Who it's for

Who this course is for

  • Electrical and maintenance technicians moving into automation
  • Electrical, mechatronics and control engineering students
  • You know classic control and want to turn circuits into programs
  • You'll work on Siemens, Allen-Bradley or Delta and need the foundations first
FAQ

Before you ask

Do I need a background first?
You'll get more out of it if you understand contactor control circuits: seal-in, interlocks and star/delta. If not, start with the classic control course.
Is it for a specific PLC brand?
The simulator is a general trainer with IEC/Siemens-style addresses like I0.0 and Q0.0. The logic is the same on every PLC; only the address format and instruction names differ. There are also Siemens-, Delta- and Allen-Bradley-style simulators, each with 8 exercises from real plants.
Do I need to install software?
No. The Ladder simulator runs in the browser on phones and computers. It doesn't replace vendor software like TIA Portal or Studio 5000.
Is there a certificate?
Yes. When you finish every lesson and the final exam while signed in, you can get a Course Completion Certificate with a verification code and QR code. It confirms you completed the course; it is not an accredited qualification.

Ready to start PLC?

Start now and continue at your own pace; your progress is saved.