SlideShare a Scribd company logo
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

What's hot

PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]
Dr. S.N. Teli
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
Ameen San
 
Open loop and Closed loop system_CSE (2150909)
Open loop and Closed loop system_CSE (2150909)Open loop and Closed loop system_CSE (2150909)
Open loop and Closed loop system_CSE (2150909)
Soham Gajjar
 
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_applicationMohd Sedik
 
Time domain analysis
Time domain analysisTime domain analysis
Time domain analysis
Mohammed Waris Senan
 
PLC (Ladder Logic Diagram)
PLC (Ladder Logic Diagram)PLC (Ladder Logic Diagram)
PLC (Ladder Logic Diagram)
Sisubalan Selvan
 
Ladder logic tutorial
Ladder logic tutorialLadder logic tutorial
Ladder logic tutorialdas1964
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
Ameen San
 
Final year project presentation
Final year project presentationFinal year project presentation
Final year project presentation
Banwari Lal
 
Time response and analysis kaushal shah
Time response and analysis kaushal shahTime response and analysis kaushal shah
Time response and analysis kaushal shah
Kaushal Shah
 
PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)
Manoj Gowda K
 
43542179 programmable-logic-controller-plc-ppt
43542179 programmable-logic-controller-plc-ppt43542179 programmable-logic-controller-plc-ppt
43542179 programmable-logic-controller-plc-pptParbat Rajpurohit
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic Circuits
Ameen San
 
Plc example presentation
Plc example presentationPlc example presentation
Plc example presentationRoshit Kadiru
 
control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functions
nalan karunanayake
 
Traffic Lights Controller in VHDL
Traffic Lights Controller in VHDLTraffic Lights Controller in VHDL
Traffic Lights Controller in VHDL
Abhishek Jaisingh
 
Project on PLC (SILO)
Project on PLC (SILO)Project on PLC (SILO)
Project on PLC (SILO)
Sayan Chakraborty
 
Traffic light Controller Design
Traffic light Controller DesignTraffic light Controller Design
Traffic light Controller Design
Ivan Tim Oloya
 
Error analysis
Error analysisError analysis
Error analysis
Syed Saeed
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
Himshekhar Das
 

What's hot (20)

PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]
 
PLC Intro to programming
PLC Intro to programmingPLC Intro to programming
PLC Intro to programming
 
Open loop and Closed loop system_CSE (2150909)
Open loop and Closed loop system_CSE (2150909)Open loop and Closed loop system_CSE (2150909)
Open loop and Closed loop system_CSE (2150909)
 
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
 
Time domain analysis
Time domain analysisTime domain analysis
Time domain analysis
 
PLC (Ladder Logic Diagram)
PLC (Ladder Logic Diagram)PLC (Ladder Logic Diagram)
PLC (Ladder Logic Diagram)
 
Ladder logic tutorial
Ladder logic tutorialLadder logic tutorial
Ladder logic tutorial
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 
Final year project presentation
Final year project presentationFinal year project presentation
Final year project presentation
 
Time response and analysis kaushal shah
Time response and analysis kaushal shahTime response and analysis kaushal shah
Time response and analysis kaushal shah
 
PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)PLC (PROGRAMMABLE LOGIC CONTROLLER)
PLC (PROGRAMMABLE LOGIC CONTROLLER)
 
43542179 programmable-logic-controller-plc-ppt
43542179 programmable-logic-controller-plc-ppt43542179 programmable-logic-controller-plc-ppt
43542179 programmable-logic-controller-plc-ppt
 
PLC Logic Circuits
PLC Logic CircuitsPLC Logic Circuits
PLC Logic Circuits
 
Plc example presentation
Plc example presentationPlc example presentation
Plc example presentation
 
control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functions
 
Traffic Lights Controller in VHDL
Traffic Lights Controller in VHDLTraffic Lights Controller in VHDL
Traffic Lights Controller in VHDL
 
Project on PLC (SILO)
Project on PLC (SILO)Project on PLC (SILO)
Project on PLC (SILO)
 
Traffic light Controller Design
Traffic light Controller DesignTraffic light Controller Design
Traffic light Controller Design
 
Error analysis
Error analysisError analysis
Error analysis
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
 

Similar to PLC Traffic Light Control

Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
Valai Ganesh
 
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
 
PLC Timers
PLC TimersPLC Timers
PLC Timers
Ameen San
 
Catalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-userCatalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-user
Dien Ha The
 
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
Dien Ha The
 
Catalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-userCatalog mikro mikro mk233a-user
Catalog mikro mikro mk233a-user
Dien Ha The
 
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
Naohiko Shimizu
 
PPT FINAL (1)-1 (1).ppt
PPT FINAL (1)-1 (1).pptPPT FINAL (1)-1 (1).ppt
PPT FINAL (1)-1 (1).ppt
tariqqureshi33
 
PLC LADDER DIAGRAM
PLC LADDER DIAGRAMPLC LADDER DIAGRAM
PLC LADDER DIAGRAM
Shruti Bhatnagar Dasgupta
 
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
 
CAM ladder logic diagram
CAM ladder logic diagramCAM ladder logic diagram
CAM ladder logic diagram
Maharshi Soni
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16John Todora
 
Introduction to automation
Introduction to automationIntroduction to automation
Introduction to automation
Valai Ganesh
 
STM-1 electrical to Optical converter presentation
STM-1 electrical to Optical converter presentationSTM-1 electrical to Optical converter presentation
STM-1 electrical to Optical converter presentationrolands77
 
Alcohol detection & driver safety
Alcohol detection & driver safetyAlcohol detection & driver safety
Alcohol detection & driver safety
sanket jain
 
PLC
PLCPLC
Alcohol interlock
Alcohol interlockAlcohol interlock
Alcohol interlock
Prateek Chandela
 
Alcohol interlock
Alcohol interlockAlcohol interlock
Alcohol interlock
Prateek Chandela
 
Freescale Microcontroller programming
Freescale Microcontroller programmingFreescale Microcontroller programming
Freescale Microcontroller programming
Shih Cheng Tung
 

Similar to 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
 
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
 
PLC LADDER DIAGRAM
PLC LADDER DIAGRAMPLC LADDER DIAGRAM
PLC LADDER DIAGRAM
 
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
 
CAM ladder logic diagram
CAM ladder logic diagramCAM ladder logic diagram
CAM ladder logic diagram
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
 
Introduction to automation
Introduction to automationIntroduction to automation
Introduction to automation
 
STM-1 electrical to Optical converter presentation
STM-1 electrical to Optical converter presentationSTM-1 electrical to Optical converter presentation
STM-1 electrical to Optical converter presentation
 
Alcohol detection & driver safety
Alcohol detection & driver safetyAlcohol detection & driver safety
Alcohol detection & driver safety
 
PLC
PLCPLC
PLC
 
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
 

More from Ameen San

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
Ameen San
 
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
Ameen San
 
Load Characteristics
Load CharacteristicsLoad Characteristics
Load Characteristics
Ameen San
 
ELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGYELECTRICAL DISTRIBUTION TECHNOLOGY
ELECTRICAL DISTRIBUTION TECHNOLOGY
Ameen San
 
Stepper motor
Stepper motor Stepper motor
Stepper motor
Ameen San
 
PLC application
PLC applicationPLC application
PLC application
Ameen San
 
PLC arithmatic functions
PLC arithmatic functionsPLC arithmatic functions
PLC arithmatic functions
Ameen San
 
PLC data types and addressing
PLC data types and addressingPLC data types and addressing
PLC data types and addressing
Ameen San
 
PLC Counters
PLC CountersPLC Counters
PLC Counters
Ameen San
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
Ameen San
 
PLC Applications
PLC ApplicationsPLC Applications
PLC Applications
Ameen San
 
Protection Devices and the Lightning
Protection Devices and the LightningProtection Devices and the Lightning
Protection Devices and the Lightning
Ameen San
 
Protection
ProtectionProtection
Protection
Ameen San
 
Relays
RelaysRelays
Relays
Ameen San
 
Circuit Breakers
Circuit BreakersCircuit Breakers
Circuit Breakers
Ameen San
 
Engineering Economy
Engineering EconomyEngineering Economy
Engineering Economy
Ameen San
 
Accounting & financial decisions
Accounting & financial decisionsAccounting & financial decisions
Accounting & financial decisions
Ameen San
 
Ratio analysis
Ratio  analysisRatio  analysis
Ratio analysis
Ameen San
 
Depreciation methods
Depreciation methodsDepreciation methods
Depreciation methods
Ameen San
 
Income statement
Income statementIncome statement
Income statement
Ameen San
 

More from 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 Counters
PLC CountersPLC Counters
PLC Counters
 
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
 
Income statement
Income statementIncome statement
Income statement
 

Recently uploaded

Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.pptPROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
bhadouriyakaku
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Self-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptxSelf-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptx
iemerc2024
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
dxobcob
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 

Recently uploaded (20)

Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.pptPROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Self-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptxSelf-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptx
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 

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"