Source: https://mokxi.com/teachers/plans/plc-programming
Updated: 2026-11-11

Lesson plan

# PLCs and ladder logic lesson plan

How factory machines think: the scan cycle, contacts and coils, seal-in circuits, timers, counters and sequencers, ending on a crossing controller you design rung by rung.

5 chapters, 8 lessons, about 7 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- Read, solve, write: the loop every PLC runs, and the instructions on its rungs.
- The seal-in rung, fail-safe stops and latched faults, in a program and in relays.
- On-delay timers on a crosswalk and a counter that fills boxes.
- A car wash that runs a table of timed steps, with an E-stop and a reset.
- A signal-controlled crossing with every idea in the course.

### Materials for the whole unit

- 74HC04 hex inverter
- Arduino Uno R3
- Buzzer
- Character LCD with I2C backpack
- DC motor x 2
- DPDT relay
- Fan module, L9110
- Filament lamp x 2
- Full-size breadboard
- Half breadboard
- Hobby servo
- IR proximity switch, E18-D80NK
- LED x 5
- Limit switch, lever microswitch
- Mini water pump
- MX1508 dual motor driver
- Obstacle sensor, FC-51
- Piezo speaker
- Pushbutton x 2
- Relay board, two channels
- Relay module
- Resistor x 5
- Slide switch x 2
- Solenoid
- Traffic light module

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 1 h 40 min

## The scan

Read, solve, write: the loop every PLC runs, and the instructions on its rungs.

Lesson | Time | What students do

Read, solve, write: the scan A motor starter run the way a PLC runs it: every scan copies the inputs into a table, solves the rungs from that table, then writes every output at once. | 50 min

- Meet the machine
- One scan, three steps
- How fast is a scan?
- The image table on the LCD
- Press START
- Quiz: predict the E-stop

Contacts and coils The three instructions most ladder is made of: the normally open contact, the normally closed contact and the coil, plus set and reset coils and internal bits. | 50 min

- The normally open contact
- The normally closed contact
- Bits are not buttons
- Set and reset coils
- Internal bits
- Quiz: clear the fault

### Materials

- Arduino Uno R3
- Character LCD with I2C backpack
- DC motor
- Half breadboard
- Limit switch, lever microswitch
- Pushbutton x 2
- Relay module
- Slide switch x 2
- Traffic light module

### Check for understanding

Each student finishes "Contacts and coils" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Quiz: clear the fault".

Chapter 2. About 1 h 40 min

## Latches and stops

The seal-in rung, fail-safe stops and latched faults, in a program and in relays.

Lesson | Time | What students do

Seal-in, stops and faults The rung every electrician knows: START latches the motor through its own contact, a fail-safe STOP and an E-stop break it, and a latched fault waits for a deliberate reset. | 50 min

- Latch it
- Read the rung like a sentence
- STOP breaks the rung
- Why stops are normally closed
- A latched fault
- Quiz: back to work

The same rung in relays The three-wire motor control circuit with no board at all: a relay as the contactor, its own contact as the seal-in, and two pilot lamps you wire to it. | 50 min

- Ladder came from relays
- The seal-in contact
- Read it as a ladder
- Wire a RUN lamp
- Light it
- Quiz: the STOPPED lamp

### Materials

- Arduino Uno R3
- Character LCD with I2C backpack
- DC motor
- DPDT relay
- Filament lamp x 2
- Full-size breadboard
- Half breadboard
- Limit switch, lever microswitch
- Pushbutton x 2
- Relay module
- Slide switch x 2
- Traffic light module

### Check for understanding

Each student finishes "The same rung in relays" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Quiz: the STOPPED lamp".

Chapter 3. About 1 h 40 min

## Timers and counters

On-delay timers on a crosswalk and a counter that fills boxes.

Lesson | Time | What students do

Timers On-delay timers on a crosswalk: a green that times out on its own, a fixed yellow, and a button that cuts the green short by loading a shorter preset. | 50 min

- A light on a clock
- The on-delay timer
- Yellow is a timer too
- Cut it short
- Quiz: predict the yellow
- TON, TOF and RTO

Counters A packaging line that counts items into a box: a count-up counter, a preset you can change, a done bit that stops the feed, and an interlock that ignores strays. | 50 min

- Counting is how a line knows it is done
- Count up
- The done bit
- Change the preset
- Quiz: predict the full box
- An interlock against strays

### Materials

- Arduino Uno R3
- Buzzer
- Character LCD with I2C backpack
- DC motor
- Half breadboard
- Hobby servo
- IR proximity switch, E18-D80NK
- Piezo speaker
- Pushbutton
- Relay board, two channels
- Solenoid
- Traffic light module

### Check for understanding

Each student finishes "Counters" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "An interlock against strays".

Chapter 4. About 1 h

## Sequencers

A car wash that runs a table of timed steps, with an E-stop and a reset.

Lesson | Time | What students do

Sequencers A drive-through car wash run as a step sequencer: a permissive to start, five timed stages from a table, an E-stop that drops everything, and a deliberate reset. | 60 min

- Machines run in steps
- A permissive
- Step 1
- Quiz: which step at 9 seconds?
- The E-stop drops every step
- Reset is deliberate
- A whole wash

### Materials

- Arduino Uno R3
- Character LCD with I2C backpack
- DC motor x 2
- Fan module, L9110
- Half breadboard
- Mini water pump
- MX1508 dual motor driver
- Obstacle sensor, FC-51
- Piezo speaker
- Pushbutton
- Relay board, two channels
- Slide switch
- Solenoid
- Traffic light module

### Check for understanding

Each student finishes "Sequencers" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A whole wash".

Chapter 5. About 1 h

## Boss project

A signal-controlled crossing with every idea in the course.

Lesson | Time | What students do

Boss: a signal-controlled crossing A pelican crossing that uses everything: a latched request, minimum and maximum green timers, a fixed sequence, a flasher, and one lamp wired with no code at all. | 60 min

- The job
- A latched request and a minimum green
- Quiz: nobody presses
- The walk phase
- The flasher
- A lamp with no code
- Make it yours: write the ladder

### Materials

- 74HC04 hex inverter
- Arduino Uno R3
- Full-size breadboard
- LED x 5
- Pushbutton
- Resistor x 5

### Check for understanding

Each student finishes "Boss: a signal-controlled crossing" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Make it yours: write the ladder".

Your class

## Teach this unit as a class

Start a class from this course and its 8 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
