SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
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"

Mais conteúdo relacionado

Mais procurados

Introduction to plc programming
Introduction to plc programmingIntroduction to plc programming
Introduction to plc programming
nddng
 
E4800 ej501 topic_5_designing_plc_application
E4800 ej501 topic_5_designing_plc_applicationE4800 ej501 topic_5_designing_plc_application
E4800 ej501 topic_5_designing_plc_application
Mohd Sedik
 

Mais procurados (20)

Using 8051 microcontroller based washing machine control ppt
Using 8051 microcontroller based washing machine control pptUsing 8051 microcontroller based washing machine control ppt
Using 8051 microcontroller based washing machine control ppt
 
PLC Brief
PLC BriefPLC Brief
PLC Brief
 
Basic plc
Basic plcBasic plc
Basic plc
 
Plc notes
Plc notesPlc notes
Plc notes
 
Cp1e manual
Cp1e manualCp1e manual
Cp1e manual
 
Plc Siemens Training Notes
Plc Siemens Training NotesPlc Siemens Training Notes
Plc Siemens Training Notes
 
programmable logic controller presentation
programmable logic controller presentationprogrammable logic controller presentation
programmable logic controller presentation
 
CAM ladder logic diagram
CAM ladder logic diagramCAM ladder logic diagram
CAM ladder logic diagram
 
PLC Counters
PLC CountersPLC Counters
PLC Counters
 
Introduction to plc (s7)­
Introduction to  plc (s7)­ Introduction to  plc (s7)­
Introduction to plc (s7)­
 
Automation PLC & SCADA
Automation PLC & SCADA Automation PLC & SCADA
Automation PLC & SCADA
 
DAC and sensor interfacing with PIC
DAC and sensor interfacing with PICDAC and sensor interfacing with PIC
DAC and sensor interfacing with PIC
 
Plc Basics
Plc BasicsPlc Basics
Plc Basics
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
Introduction to plc programming
Introduction to plc programmingIntroduction to plc programming
Introduction to plc programming
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 
IEC 61131-3 PLC Programming Languages: Beyond Ladder Logic
IEC 61131-3 PLC Programming Languages:  Beyond Ladder LogicIEC 61131-3 PLC Programming Languages:  Beyond Ladder Logic
IEC 61131-3 PLC Programming Languages: Beyond Ladder Logic
 
Programmable logic Controller
Programmable logic ControllerProgrammable logic Controller
Programmable logic Controller
 
E4800 ej501 topic_5_designing_plc_application
E4800 ej501 topic_5_designing_plc_applicationE4800 ej501 topic_5_designing_plc_application
E4800 ej501 topic_5_designing_plc_application
 
Plc (programming)
Plc (programming)Plc (programming)
Plc (programming)
 

Semelhante a PLC Traffic Light Control

Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docx
     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx
Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docx
hallettfaustina
 
very nice ppt please upload dand enjoy tyhe subscribtin have alove
very nice ppt please upload dand enjoy tyhe subscribtin have alovevery nice ppt please upload dand enjoy tyhe subscribtin have alove
very nice ppt please upload dand enjoy tyhe subscribtin have alove
mohdthr
 

Semelhante a PLC Traffic Light Control (20)

Plc tutorial
Plc tutorialPlc tutorial
Plc tutorial
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
 
Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docx
     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx
Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docx
 
Chapter 2 ladder
Chapter 2 ladderChapter 2 ladder
Chapter 2 ladder
 
PLC Timers
PLC TimersPLC Timers
PLC Timers
 
Catalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-userCatalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-user
 
Catalog mikro mikro mk233a-user-dienhathe.vn
Catalog mikro mikro mk233a-user-dienhathe.vnCatalog mikro mikro mk233a-user-dienhathe.vn
Catalog mikro mikro mk233a-user-dienhathe.vn
 
Catalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-userCatalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-user
 
Computer design and architecture with simple cpu
Computer design and architecture with simple cpuComputer design and architecture with simple cpu
Computer design and architecture with simple cpu
 
PPT FINAL (1)-1 (1).ppt
PPT FINAL (1)-1 (1).pptPPT FINAL (1)-1 (1).ppt
PPT FINAL (1)-1 (1).ppt
 
very nice ppt please upload dand enjoy tyhe subscribtin have alove
very nice ppt please upload dand enjoy tyhe subscribtin have alovevery nice ppt please upload dand enjoy tyhe subscribtin have alove
very nice ppt please upload dand enjoy tyhe subscribtin have alove
 
Chapter 4 plc
Chapter 4 plcChapter 4 plc
Chapter 4 plc
 
Introduction to automation
Introduction to automationIntroduction to automation
Introduction to automation
 
Alcohol detection & driver safety
Alcohol detection & driver safetyAlcohol detection & driver safety
Alcohol detection & driver safety
 
Alcohol interlock
Alcohol interlockAlcohol interlock
Alcohol interlock
 
Alcohol interlock
Alcohol interlockAlcohol interlock
Alcohol interlock
 
Freescale Microcontroller programming
Freescale Microcontroller programmingFreescale Microcontroller programming
Freescale Microcontroller programming
 
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
 
Delta ia asda-a2_speed
Delta ia asda-a2_speedDelta ia asda-a2_speed
Delta ia asda-a2_speed
 

Mais de Ameen San

Mais de Ameen San (20)

Application of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage RegulationApplication of Capacitors to Distribution System and Voltage Regulation
Application of Capacitors to Distribution System and Voltage Regulation
 
Distribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss CalculationDistribution System Voltage Drop and Power Loss Calculation
Distribution System Voltage Drop and Power Loss Calculation
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load Characteristics
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGY
 
Stepper motor
Stepper motor Stepper motor
Stepper motor
 
PLC application
PLC applicationPLC application
PLC application
 
PLC arithmatic functions
PLC arithmatic functionsPLC arithmatic functions
PLC arithmatic functions
 
PLC data types and addressing
PLC data types and addressingPLC data types and addressing
PLC data types and addressing
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic Circuits
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
 
PLC Applications
PLC ApplicationsPLC Applications
PLC Applications
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the Lightning
 
Protection
ProtectionProtection
Protection
 
Relays
RelaysRelays
Relays
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit Breakers
 
Engineering Economy
Engineering EconomyEngineering Economy
Engineering Economy
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisions
 
Ratio analysis
Ratio  analysisRatio  analysis
Ratio analysis
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methods
 

Último

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 

Último (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

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"