SlideShare a Scribd company logo
2
Most read
3
Most read
6
Most read
3- Traffic Light Control
Design a ladder program to solve the following control problem:
For the shown traffic light control system, there are two switches; the first one is to
run the system according the mode or leave it blank. There are two modes of
operation; Normal and Flashing. The time for green and red lights is 5 seconds, while it
is 1 second for the yellow lights, respectively. For simplicity assume one direction
streets.
Operation State Switch
Blank 0
MAIN
Run According to MODE 1
Normal 1
MODE
Flashing 0
Ladder STL
A "Main"
A "Mode"
CC "Normal"
A "Main"
AN "Mode"
CC "Flashing"
AN "Main"
CC "Blank"
FC1 AN T 4
L S5T#5S
SE T 3
NOP 0
NOP 0
NOP 0
A T 3
= L 0.0
A L 0.0
BLD 102
= "Red1"
A L 0.0
NOT
= "Green1"
A L 0.0
NOT
= "Red2"
A L 0.0
BLD 102
= "Green2"
AN T 3
L S5T#5S
SE T 4
NOP 0
NOP 0
NOP 0
NOP 0
A "Green1"
L S5T#4S
SE T 5
NOP 0
NOP 0
NOP 0
NOP 0
AN T 5
A "Green1"
= "Yellow1"
A "Green2"
L S5T#4S
SE T 6
NOP 0
NOP 0
NOP 0
NOP 0
AN T 6
A "Green2"
= "Yellow2"
FC2
AN "Mode"
R "Red1"
R "Green1"
R "Red2"
R "Green2"
AN T 2
L S5T#1S
SE T 1
NOP 0
NOP 0
NOP 0
A T 1
= "Yellow1"
= "Yellow2"
AN T 1
L S5T#1S
SE T 2
NOP 0
NOP 0
NOP 0
NOP 0
FC3
AN "Main"
R "Red1"
R "Yellow1"
R "Green1"
R "Red2"
R "Yellow2"
R "Green2"

More Related Content

DOCX
Traffic light using plc
PPTX
Traffic Control Signalling
PPT
Plc presentation
PPTX
Speed control in 3 phase induction motor
PPTX
Use of plc in industrial automation
PPTX
Contol of water pump using plc
PPTX
speed control of induction motor using plc and vfd
PPTX
INDUSTRIAL AUTOMATION USING PLC
Traffic light using plc
Traffic Control Signalling
Plc presentation
Speed control in 3 phase induction motor
Use of plc in industrial automation
Contol of water pump using plc
speed control of induction motor using plc and vfd
INDUSTRIAL AUTOMATION USING PLC

What's hot (20)

PPTX
PLC(Programmable Logic Controller)-Control system Engineering.
DOCX
4 Way traffic controll new
PPTX
What is hmi
PPTX
ppt on PLC automation
DOCX
Project on PLC (SILO)
DOCX
classic control and PLC training report
PPTX
plc training report
PPTX
Chapter 1 introduction to control system
PDF
Plc report with project
DOC
Training Report on PLC & SCADA
PPTX
Industrial automation
PDF
Industrial Automation
DOCX
Plc notes
PPT
PLC Basic
PPT
Basic Automation system.ppt
PPTX
Part 8 PLC faundamentals of wiring sink and source
PPTX
Plc example presentation
PDF
Line Follower Final Report
PLC(Programmable Logic Controller)-Control system Engineering.
4 Way traffic controll new
What is hmi
ppt on PLC automation
Project on PLC (SILO)
classic control and PLC training report
plc training report
Chapter 1 introduction to control system
Plc report with project
Training Report on PLC & SCADA
Industrial automation
Industrial Automation
Plc notes
PLC Basic
Basic Automation system.ppt
Part 8 PLC faundamentals of wiring sink and source
Plc example presentation
Line Follower Final Report
Ad

Similar to PLC Traffic Light Control (20)

DOCX
PLC 5.docx
DOCX
PLC 1 (2).docx
PDF
Group project dld assignement
PPTX
DOCX
Traffic lights-system-2(Microprocessor &Assembly Language)
PDF
Smart traffic light controller using verilog
PPTX
Traffic light controller
PDF
04_AJMS_198_19_RA.pdf
PDF
04_AJMS_198_19_RA.pdf
PDF
PLC 5.pdf
PDF
Traffic signal controller using at89 c52 microcontroller
PDF
Simplified Traffic Lights Using 8051 Maxim DS89C4XX Embedded Controller (MDE)
PDF
Traffic Light Controller Using Fpga
DOCX
TrafficLightProjecttttttt - Group 8.docx
PPTX
PART -1 TRAFFIC LIGHT CONTROL USING 8085
PPTX
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...
PPTX
Robotics and drones Project Presentation.pptx
PDF
G041024547
DOCX
PLC 5.docx
PPTX
DLD_Project_Presentation_Pdf.pptx
PLC 5.docx
PLC 1 (2).docx
Group project dld assignement
Traffic lights-system-2(Microprocessor &Assembly Language)
Smart traffic light controller using verilog
Traffic light controller
04_AJMS_198_19_RA.pdf
04_AJMS_198_19_RA.pdf
PLC 5.pdf
Traffic signal controller using at89 c52 microcontroller
Simplified Traffic Lights Using 8051 Maxim DS89C4XX Embedded Controller (MDE)
Traffic Light Controller Using Fpga
TrafficLightProjecttttttt - Group 8.docx
PART -1 TRAFFIC LIGHT CONTROL USING 8085
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...
Robotics and drones Project Presentation.pptx
G041024547
PLC 5.docx
DLD_Project_Presentation_Pdf.pptx
Ad

More from Ameen San (20)

PDF
Application of Capacitors to Distribution System and Voltage Regulation
PDF
Distribution System Voltage Drop and Power Loss Calculation
PDF
Load Characteristics
PDF
ELECTRICAL DISTRIBUTION TECHNOLOGY
PPTX
Stepper motor
PDF
PLC application
PDF
PLC arithmatic functions
PDF
PLC data types and addressing
PDF
PLC Counters
PDF
PLC Timers
PDF
PLC Internal Relays
PDF
PLC Intro to programming
PDF
PLC Logic Circuits
PDF
PLC input and output devices
PDF
PLC Applications
PPT
Protection Devices and the Lightning
PPT
Protection
PPT
Relays
PPT
Circuit Breakers
PPTX
Engineering Economy
Application of Capacitors to Distribution System and Voltage Regulation
Distribution System Voltage Drop and Power Loss Calculation
Load Characteristics
ELECTRICAL DISTRIBUTION TECHNOLOGY
Stepper motor
PLC application
PLC arithmatic functions
PLC data types and addressing
PLC Counters
PLC Timers
PLC Internal Relays
PLC Intro to programming
PLC Logic Circuits
PLC input and output devices
PLC Applications
Protection Devices and the Lightning
Protection
Relays
Circuit Breakers
Engineering Economy

Recently uploaded (20)

PPTX
Sustainable Sites - Green Building Construction
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
web development for engineering and engineering
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Project quality management in manufacturing
PPT
Mechanical Engineering MATERIALS Selection
DOCX
573137875-Attendance-Management-System-original
PDF
Well-logging-methods_new................
PPTX
Geodesy 1.pptx...............................................
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Sustainable Sites - Green Building Construction
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Model Code of Practice - Construction Work - 21102022 .pdf
web development for engineering and engineering
bas. eng. economics group 4 presentation 1.pptx
Safety Seminar civil to be ensured for safe working.
Embodied AI: Ushering in the Next Era of Intelligent Systems
Project quality management in manufacturing
Mechanical Engineering MATERIALS Selection
573137875-Attendance-Management-System-original
Well-logging-methods_new................
Geodesy 1.pptx...............................................
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Foundation to blockchain - A guide to Blockchain Tech
CH1 Production IntroductoryConcepts.pptx
III.4.1.2_The_Space_Environment.p pdffdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026

PLC Traffic Light Control

  • 1. 3- Traffic Light Control Design a ladder program to solve the following control problem: For the shown traffic light control system, there are two switches; the first one is to run the system according the mode or leave it blank. There are two modes of operation; Normal and Flashing. The time for green and red lights is 5 seconds, while it is 1 second for the yellow lights, respectively. For simplicity assume one direction streets. Operation State Switch Blank 0 MAIN Run According to MODE 1 Normal 1 MODE Flashing 0
  • 2. Ladder STL A "Main" A "Mode" CC "Normal"
  • 3. A "Main" AN "Mode" CC "Flashing" AN "Main" CC "Blank" FC1 AN T 4 L S5T#5S SE T 3 NOP 0 NOP 0 NOP 0 A T 3 = L 0.0 A L 0.0 BLD 102 = "Red1" A L 0.0 NOT = "Green1" A L 0.0 NOT = "Red2" A L 0.0 BLD 102 = "Green2"
  • 4. AN T 3 L S5T#5S SE T 4 NOP 0 NOP 0 NOP 0 NOP 0 A "Green1" L S5T#4S SE T 5 NOP 0 NOP 0 NOP 0 NOP 0 AN T 5 A "Green1" = "Yellow1"
  • 5. A "Green2" L S5T#4S SE T 6 NOP 0 NOP 0 NOP 0 NOP 0 AN T 6 A "Green2" = "Yellow2" FC2 AN "Mode" R "Red1" R "Green1" R "Red2" R "Green2"
  • 6. AN T 2 L S5T#1S SE T 1 NOP 0 NOP 0 NOP 0 A T 1 = "Yellow1" = "Yellow2" AN T 1 L S5T#1S SE T 2 NOP 0 NOP 0 NOP 0 NOP 0 FC3 AN "Main" R "Red1" R "Yellow1" R "Green1" R "Red2" R "Yellow2" R "Green2"