SlideShare a Scribd company logo
1 of 3
Download to read offline
https://bin95.com Correct version of PLC Programming Example
LAD 2 - MAIN_PROG --- Total Rungs in File = 7
You are allow to share with others, attributions to https://BIN95.com
PLC Clock example by BIN95.com
This is a rung comment. The rung below is 60 second timer, followed by rungs that are counters driven by this timer. This is referred to as a
cascading programming methodology. You could design this PLC clock several different ways. We picked the most simplest for this example.
60 sec=minute, 60 min=hour, 24 hrs=day,365days=year
0000
I:0
0
Bul.1764
RUN
EN
DN
TON
Timer On Delay
Timer T4:0
Time Base 1.0
Preset 60<
Accum 40<
TON
SECONDS
https://bin95.com Correct version of PLC Programming Example
LAD 2 - MAIN_PROG --- Total Rungs in File = 7
You are allow to share with others, attributions to https://BIN95.com
This line of text is what a Page Title looks like.
If 60 seconds have elapsed, increment minute counter by 1.
(A "Page Title" is used when one particular subroutine has a lot of rungs, and you want to break them up [section off] for navigational purposes
and to speed troubleshooting. Programming documentation is more user friendly.)
0001
T4:0
DN
SECONDS/DN
CU
DN
CTU
Count Up
Counter C5:0
Preset 60<
Accum 59<
CTU
MINUTES
If 60 Minutes counter Done (60 min have elapsed), increment Hour counter by 1 AND Reset Minutes counter afterwards.
(In quiz version of this program, we were looking for you to spot that we where resetting counters before they had chance to increment
following cascaded counter. In this answer to quiz version of program we corrected that.)
0002
C5:0
DN
MINUTES/DN
CU
DN
CTU
Count Up
Counter C5:1
Preset 24<
Accum 22<
CTU
HOURS
RES
C5:0
MINUTES
If Hours counter Done (24 hours have elapsed), increment Day counter by 1 AND reset Hours counter afterwards.
0003
C5:1
DN
HOURS/DN
CU
DN
CTU
Count Up
Counter C5:2
Preset 365<
Accum 361<
CTU
DAYS
RES
C5:1
HOURS
If Days counter Done (365 days have elapsed), increment Year counter by 1 AND reset Days counter afterwards.
This rung/counter gives current years accumulated based on 365 days counted. We pre-plugged to year 2018. You might have expected a
rung(s) for "Current Month", like Jan, Feb etc., here (1-12), but for simplicity reasons we did not do that logic in the example. (As each month
has different number of days in to and would complicate logic more than we wanted to in this example.)
0004
C5:2
DN
DAYS/DN
CU
DN
CTU
Count Up
Counter C5:3
Preset 30000<
Accum 2018<
CTU
CURRENT_YEAR
RES
C5:2
DAYS
https://bin95.com Correct version of PLC Programming Example
LAD 2 - MAIN_PROG --- Total Rungs in File = 7
You are allow to share with others, attributions to https://BIN95.com
In the sequence of events, the last step after all counters are updated, is "If seconds timer done, reset the Seconds timer".
.
This is one way to correct problem found in our Quiz program that purposely did not work at https://www.slideshare.net/bin95/plcclock (Adam
Bowman was the first one to find the problem and give a detailed solutuion, congrats Adam.)
0005
T4:0
DN
SECONDS/DN
RES
T4:0
SECONDS
So in summary, in quiz example of this program (https://www.slideshare.net/bin95/plcclock), we were resetting everything too soon. (Scan cycle
is important to be aware of), in this example we corrected those intentional programming errors.
0006 END

More Related Content

What's hot

Analisis de Sistemas para Ingenieria Electrica PTrrza
Analisis de Sistemas para Ingenieria Electrica PTrrzaAnalisis de Sistemas para Ingenieria Electrica PTrrza
Analisis de Sistemas para Ingenieria Electrica PTrrzaPTRRZA
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to CountersISMT College
 
Siemens catalog tong hop industrial comunication
Siemens catalog tong hop industrial comunicationSiemens catalog tong hop industrial comunication
Siemens catalog tong hop industrial comunicationDien Ha The
 
DIgital Timer And Counter To Control Relays
DIgital Timer And Counter To Control RelaysDIgital Timer And Counter To Control Relays
DIgital Timer And Counter To Control RelaysMuhammadFazilMemon
 
Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...
Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...
Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...Mohamedshabana38
 
resonance/electrical networks
resonance/electrical networksresonance/electrical networks
resonance/electrical networkschandruec026
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerSomnath Sharma
 
Industrial automation (PLC, SCADA, VFD & HMI)
Industrial automation (PLC, SCADA, VFD & HMI)Industrial automation (PLC, SCADA, VFD & HMI)
Industrial automation (PLC, SCADA, VFD & HMI)Praveen Ramola
 
Mathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsMathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsDivyanshu Rai
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsAmr E. Mohamed
 
Anti bag snatching alarm
Anti bag snatching alarmAnti bag snatching alarm
Anti bag snatching alarmSaumya Tiwari
 
Interfacing of data converters & io devices
Interfacing of data converters & io devicesInterfacing of data converters & io devices
Interfacing of data converters & io devicesDr.YNM
 

What's hot (20)

Plc networking basics - controllogix
Plc networking basics - controllogixPlc networking basics - controllogix
Plc networking basics - controllogix
 
Analisis de Sistemas para Ingenieria Electrica PTrrza
Analisis de Sistemas para Ingenieria Electrica PTrrzaAnalisis de Sistemas para Ingenieria Electrica PTrrza
Analisis de Sistemas para Ingenieria Electrica PTrrza
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Frequency counter
Frequency counterFrequency counter
Frequency counter
 
Siemens catalog tong hop industrial comunication
Siemens catalog tong hop industrial comunicationSiemens catalog tong hop industrial comunication
Siemens catalog tong hop industrial comunication
 
DIgital Timer And Counter To Control Relays
DIgital Timer And Counter To Control RelaysDIgital Timer And Counter To Control Relays
DIgital Timer And Counter To Control Relays
 
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 
Boolean algebra and Logic gates
Boolean algebra and Logic gatesBoolean algebra and Logic gates
Boolean algebra and Logic gates
 
Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...
Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...
Solutions Manual for Modern Digital and Analog Communication Systems (B.P. La...
 
Audio Amplifier
Audio AmplifierAudio Amplifier
Audio Amplifier
 
resonance/electrical networks
resonance/electrical networksresonance/electrical networks
resonance/electrical networks
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontroller
 
Industrial automation (PLC, SCADA, VFD & HMI)
Industrial automation (PLC, SCADA, VFD & HMI)Industrial automation (PLC, SCADA, VFD & HMI)
Industrial automation (PLC, SCADA, VFD & HMI)
 
Mathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsMathematical Modelling of Control Systems
Mathematical Modelling of Control Systems
 
Plc & scada Training Report
Plc & scada Training ReportPlc & scada Training Report
Plc & scada Training Report
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Question Bank Programmable Logic Controller
Question Bank Programmable Logic ControllerQuestion Bank Programmable Logic Controller
Question Bank Programmable Logic Controller
 
Anti bag snatching alarm
Anti bag snatching alarmAnti bag snatching alarm
Anti bag snatching alarm
 
Interfacing of data converters & io devices
Interfacing of data converters & io devicesInterfacing of data converters & io devices
Interfacing of data converters & io devices
 

Similar to PLC Programming Example - PLC Clock - Answ

SCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaa
SCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaaSCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaa
SCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaainfinitepestcontrol
 
Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...
Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...
Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...IJERA Editor
 
Chapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docx
Chapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docxChapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docx
Chapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docxtiffanyd4
 
implementation and design of 32-bit adder
implementation and design of 32-bit adderimplementation and design of 32-bit adder
implementation and design of 32-bit adderveereshwararao
 
32-bit unsigned multiplier by using CSLA & CLAA
32-bit unsigned multiplier by using CSLA &  CLAA32-bit unsigned multiplier by using CSLA &  CLAA
32-bit unsigned multiplier by using CSLA & CLAAGanesh Sambasivarao
 
CIM report - final
CIM report - finalCIM report - final
CIM report - finalPraveen S R
 
EvolveExecutionPlans.pdf
EvolveExecutionPlans.pdfEvolveExecutionPlans.pdf
EvolveExecutionPlans.pdfPraveenPolu1
 
Precomputing recommendations with Apache Beam
Precomputing recommendations with Apache BeamPrecomputing recommendations with Apache Beam
Precomputing recommendations with Apache BeamTatiana Al-Chueyr
 
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case StudyMongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case StudyMongoDB
 
Adaptive Query Optimization
Adaptive Query OptimizationAdaptive Query Optimization
Adaptive Query OptimizationAnju Garg
 
Auditing data and answering the life long question, is it the end of the day ...
Auditing data and answering the life long question, is it the end of the day ...Auditing data and answering the life long question, is it the end of the day ...
Auditing data and answering the life long question, is it the end of the day ...Simona Meriam
 
INFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPTINFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPTInfluxData
 
**Understanding_CTS_Log_Messages.pdf
**Understanding_CTS_Log_Messages.pdf**Understanding_CTS_Log_Messages.pdf
**Understanding_CTS_Log_Messages.pdfagnathavasi
 
How to build an ETL pipeline with Apache Beam on Google Cloud Dataflow
How to build an ETL pipeline with Apache Beam on Google Cloud DataflowHow to build an ETL pipeline with Apache Beam on Google Cloud Dataflow
How to build an ETL pipeline with Apache Beam on Google Cloud DataflowLucas Arruda
 
TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...
TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...
TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...tdc-globalcode
 

Similar to PLC Programming Example - PLC Clock - Answ (20)

SCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaa
SCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaaSCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaa
SCHEDULING.pptdjdgjgjdjgajdjasdjadasgdgdduaa
 
Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...
Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...
Design, Implementation and Simulation of 12/24 Hours Digital Clock With Stop ...
 
Chapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docx
Chapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docxChapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docx
Chapters 15 & 16Short Term Scheduling & KanbanThe 3-18 m.docx
 
implementation and design of 32-bit adder
implementation and design of 32-bit adderimplementation and design of 32-bit adder
implementation and design of 32-bit adder
 
32-bit unsigned multiplier by using CSLA & CLAA
32-bit unsigned multiplier by using CSLA &  CLAA32-bit unsigned multiplier by using CSLA &  CLAA
32-bit unsigned multiplier by using CSLA & CLAA
 
CIM report - final
CIM report - finalCIM report - final
CIM report - final
 
CIM report - final
CIM report - finalCIM report - final
CIM report - final
 
CIM Report
CIM ReportCIM Report
CIM Report
 
EvolveExecutionPlans.pdf
EvolveExecutionPlans.pdfEvolveExecutionPlans.pdf
EvolveExecutionPlans.pdf
 
Precomputing recommendations with Apache Beam
Precomputing recommendations with Apache BeamPrecomputing recommendations with Apache Beam
Precomputing recommendations with Apache Beam
 
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case StudyMongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
 
Adaptive Query Optimization
Adaptive Query OptimizationAdaptive Query Optimization
Adaptive Query Optimization
 
Auditing data and answering the life long question, is it the end of the day ...
Auditing data and answering the life long question, is it the end of the day ...Auditing data and answering the life long question, is it the end of the day ...
Auditing data and answering the life long question, is it the end of the day ...
 
Applied Mathematics Unit 2SBA
Applied Mathematics Unit 2SBAApplied Mathematics Unit 2SBA
Applied Mathematics Unit 2SBA
 
Python datetime
Python datetimePython datetime
Python datetime
 
INFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPTINFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPT
 
**Understanding_CTS_Log_Messages.pdf
**Understanding_CTS_Log_Messages.pdf**Understanding_CTS_Log_Messages.pdf
**Understanding_CTS_Log_Messages.pdf
 
chapter 4
chapter 4chapter 4
chapter 4
 
How to build an ETL pipeline with Apache Beam on Google Cloud Dataflow
How to build an ETL pipeline with Apache Beam on Google Cloud DataflowHow to build an ETL pipeline with Apache Beam on Google Cloud Dataflow
How to build an ETL pipeline with Apache Beam on Google Cloud Dataflow
 
TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...
TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...
TDC2017 | São Paulo - Trilha BigData How we figured out we had a SRE team at ...
 

More from Business Industrial Network

More from Business Industrial Network (20)

Rotary Gear Type Pump Whitepaper
Rotary Gear Type Pump WhitepaperRotary Gear Type Pump Whitepaper
Rotary Gear Type Pump Whitepaper
 
Process Hazards Analysis
Process Hazards AnalysisProcess Hazards Analysis
Process Hazards Analysis
 
Machinery Failure Analysis and Troubleshooting
Machinery Failure Analysis and TroubleshootingMachinery Failure Analysis and Troubleshooting
Machinery Failure Analysis and Troubleshooting
 
Total Quality Management TQM
Total Quality Management TQMTotal Quality Management TQM
Total Quality Management TQM
 
Process Risk Management
Process Risk ManagementProcess Risk Management
Process Risk Management
 
Equipment Reliability Example
Equipment Reliability ExampleEquipment Reliability Example
Equipment Reliability Example
 
How to learn SCADA
How to learn SCADAHow to learn SCADA
How to learn SCADA
 
Siemens PLC Programming Example #2
Siemens PLC Programming Example #2Siemens PLC Programming Example #2
Siemens PLC Programming Example #2
 
What is a PLC ?
What is a PLC ?What is a PLC ?
What is a PLC ?
 
Online Infrared Training Center Presentation
Online Infrared Training Center PresentationOnline Infrared Training Center Presentation
Online Infrared Training Center Presentation
 
PLC Networking Basics - Instructor's notes
PLC Networking Basics - Instructor's notesPLC Networking Basics - Instructor's notes
PLC Networking Basics - Instructor's notes
 
Best plc-programming
Best plc-programmingBest plc-programming
Best plc-programming
 
PC vs PLC
PC vs PLCPC vs PLC
PC vs PLC
 
Thank You Veterans for your service
Thank You Veterans for your serviceThank You Veterans for your service
Thank You Veterans for your service
 
USA Manufacturing Jobs Analysis
USA Manufacturing Jobs AnalysisUSA Manufacturing Jobs Analysis
USA Manufacturing Jobs Analysis
 
Best Practices in PLC Programming
Best Practices in PLC ProgrammingBest Practices in PLC Programming
Best Practices in PLC Programming
 
Support Workforce Wednesdays
Support Workforce WednesdaysSupport Workforce Wednesdays
Support Workforce Wednesdays
 
Lean TPM Autonomous Maintenance 2
Lean TPM Autonomous Maintenance 2Lean TPM Autonomous Maintenance 2
Lean TPM Autonomous Maintenance 2
 
7 warnings: Before Hiring a Web Developer
7 warnings: Before Hiring a Web Developer7 warnings: Before Hiring a Web Developer
7 warnings: Before Hiring a Web Developer
 
PLC Simulator
PLC SimulatorPLC Simulator
PLC Simulator
 

Recently uploaded

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 

Recently uploaded (20)

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 

PLC Programming Example - PLC Clock - Answ

  • 1. https://bin95.com Correct version of PLC Programming Example LAD 2 - MAIN_PROG --- Total Rungs in File = 7 You are allow to share with others, attributions to https://BIN95.com PLC Clock example by BIN95.com This is a rung comment. The rung below is 60 second timer, followed by rungs that are counters driven by this timer. This is referred to as a cascading programming methodology. You could design this PLC clock several different ways. We picked the most simplest for this example. 60 sec=minute, 60 min=hour, 24 hrs=day,365days=year 0000 I:0 0 Bul.1764 RUN EN DN TON Timer On Delay Timer T4:0 Time Base 1.0 Preset 60< Accum 40< TON SECONDS
  • 2. https://bin95.com Correct version of PLC Programming Example LAD 2 - MAIN_PROG --- Total Rungs in File = 7 You are allow to share with others, attributions to https://BIN95.com This line of text is what a Page Title looks like. If 60 seconds have elapsed, increment minute counter by 1. (A "Page Title" is used when one particular subroutine has a lot of rungs, and you want to break them up [section off] for navigational purposes and to speed troubleshooting. Programming documentation is more user friendly.) 0001 T4:0 DN SECONDS/DN CU DN CTU Count Up Counter C5:0 Preset 60< Accum 59< CTU MINUTES If 60 Minutes counter Done (60 min have elapsed), increment Hour counter by 1 AND Reset Minutes counter afterwards. (In quiz version of this program, we were looking for you to spot that we where resetting counters before they had chance to increment following cascaded counter. In this answer to quiz version of program we corrected that.) 0002 C5:0 DN MINUTES/DN CU DN CTU Count Up Counter C5:1 Preset 24< Accum 22< CTU HOURS RES C5:0 MINUTES If Hours counter Done (24 hours have elapsed), increment Day counter by 1 AND reset Hours counter afterwards. 0003 C5:1 DN HOURS/DN CU DN CTU Count Up Counter C5:2 Preset 365< Accum 361< CTU DAYS RES C5:1 HOURS If Days counter Done (365 days have elapsed), increment Year counter by 1 AND reset Days counter afterwards. This rung/counter gives current years accumulated based on 365 days counted. We pre-plugged to year 2018. You might have expected a rung(s) for "Current Month", like Jan, Feb etc., here (1-12), but for simplicity reasons we did not do that logic in the example. (As each month has different number of days in to and would complicate logic more than we wanted to in this example.) 0004 C5:2 DN DAYS/DN CU DN CTU Count Up Counter C5:3 Preset 30000< Accum 2018< CTU CURRENT_YEAR RES C5:2 DAYS
  • 3. https://bin95.com Correct version of PLC Programming Example LAD 2 - MAIN_PROG --- Total Rungs in File = 7 You are allow to share with others, attributions to https://BIN95.com In the sequence of events, the last step after all counters are updated, is "If seconds timer done, reset the Seconds timer". . This is one way to correct problem found in our Quiz program that purposely did not work at https://www.slideshare.net/bin95/plcclock (Adam Bowman was the first one to find the problem and give a detailed solutuion, congrats Adam.) 0005 T4:0 DN SECONDS/DN RES T4:0 SECONDS So in summary, in quiz example of this program (https://www.slideshare.net/bin95/plcclock), we were resetting everything too soon. (Scan cycle is important to be aware of), in this example we corrected those intentional programming errors. 0006 END