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

Mais conteúdo relacionado

Mais procurados

U07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensao
U07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensaoU07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensao
U07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensaoRicardo de Souza
 
2 Simbologia
2 Simbologia2 Simbologia
2 Simbologiagooglr
 
Instruksi timer dan counter plc omron
Instruksi timer dan counter plc omronInstruksi timer dan counter plc omron
Instruksi timer dan counter plc omronAdi Hartanto
 
5.-PP_ELECTRONEUMATICA.pdf
5.-PP_ELECTRONEUMATICA.pdf5.-PP_ELECTRONEUMATICA.pdf
5.-PP_ELECTRONEUMATICA.pdfssuseraf3034
 
Menggunakan cx programmer
Menggunakan  cx programmerMenggunakan  cx programmer
Menggunakan cx programmerBonanza Pratama
 
Plano de manutenção transformadores 13.8 kv
Plano de manutenção   transformadores 13.8 kvPlano de manutenção   transformadores 13.8 kv
Plano de manutenção transformadores 13.8 kvAlexandre Grossi
 
Sistemas de control
Sistemas de controlSistemas de control
Sistemas de controlcleiva215
 
2 mikrokontroler atmega 8535
2 mikrokontroler atmega 85352 mikrokontroler atmega 8535
2 mikrokontroler atmega 8535Agung Gumelar
 
05 medicao nivel
05   medicao nivel05   medicao nivel
05 medicao nivelFabio Griz
 
Seminar Fisika Osiloskop
Seminar Fisika Osiloskop Seminar Fisika Osiloskop
Seminar Fisika Osiloskop Mutiara Cess
 
Rangkaian logika digital
Rangkaian logika digitalRangkaian logika digital
Rangkaian logika digitalRez Inc
 
Comandos eletro hidráulicos eletro pneumáticos (1)
Comandos eletro hidráulicos eletro pneumáticos (1)Comandos eletro hidráulicos eletro pneumáticos (1)
Comandos eletro hidráulicos eletro pneumáticos (1)fabinholook
 
gerbang logika dan transistor
gerbang logika dan transistor gerbang logika dan transistor
gerbang logika dan transistor staffpengajar
 
Apostila de Instrumentação
Apostila de InstrumentaçãoApostila de Instrumentação
Apostila de InstrumentaçãoTalitha Ferreira
 
Ppt sensor cahaya-dikonversi.pdf
Ppt sensor cahaya-dikonversi.pdfPpt sensor cahaya-dikonversi.pdf
Ppt sensor cahaya-dikonversi.pdfDavidAdamEfendi
 
Apostila de refrigeração
Apostila de refrigeraçãoApostila de refrigeração
Apostila de refrigeraçãoragrellos
 
Simbologia para instrumentação
Simbologia para instrumentaçãoSimbologia para instrumentação
Simbologia para instrumentaçãophasetronik
 
Manual De Aterramento TemporáRio
Manual De Aterramento TemporáRioManual De Aterramento TemporáRio
Manual De Aterramento TemporáRioSantos de Castro
 

Mais procurados (20)

U07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensao
U07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensaoU07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensao
U07 comando controle_e_ protecao_circuitos_eletricos_baixa_tensao
 
2 Simbologia
2 Simbologia2 Simbologia
2 Simbologia
 
Instruksi timer dan counter plc omron
Instruksi timer dan counter plc omronInstruksi timer dan counter plc omron
Instruksi timer dan counter plc omron
 
5.-PP_ELECTRONEUMATICA.pdf
5.-PP_ELECTRONEUMATICA.pdf5.-PP_ELECTRONEUMATICA.pdf
5.-PP_ELECTRONEUMATICA.pdf
 
Menggunakan cx programmer
Menggunakan  cx programmerMenggunakan  cx programmer
Menggunakan cx programmer
 
Plano de manutenção transformadores 13.8 kv
Plano de manutenção   transformadores 13.8 kvPlano de manutenção   transformadores 13.8 kv
Plano de manutenção transformadores 13.8 kv
 
Sistemas de control
Sistemas de controlSistemas de control
Sistemas de control
 
Instrumentação Basica
Instrumentação BasicaInstrumentação Basica
Instrumentação Basica
 
2 mikrokontroler atmega 8535
2 mikrokontroler atmega 85352 mikrokontroler atmega 8535
2 mikrokontroler atmega 8535
 
05 medicao nivel
05   medicao nivel05   medicao nivel
05 medicao nivel
 
Seminar Fisika Osiloskop
Seminar Fisika Osiloskop Seminar Fisika Osiloskop
Seminar Fisika Osiloskop
 
Rangkaian logika digital
Rangkaian logika digitalRangkaian logika digital
Rangkaian logika digital
 
Comandos eletro hidráulicos eletro pneumáticos (1)
Comandos eletro hidráulicos eletro pneumáticos (1)Comandos eletro hidráulicos eletro pneumáticos (1)
Comandos eletro hidráulicos eletro pneumáticos (1)
 
SWITCH GEAR PADA SISTEM TENAGA LISTRIK
SWITCH GEAR  PADA  SISTEM TENAGA LISTRIK SWITCH GEAR  PADA  SISTEM TENAGA LISTRIK
SWITCH GEAR PADA SISTEM TENAGA LISTRIK
 
gerbang logika dan transistor
gerbang logika dan transistor gerbang logika dan transistor
gerbang logika dan transistor
 
Apostila de Instrumentação
Apostila de InstrumentaçãoApostila de Instrumentação
Apostila de Instrumentação
 
Ppt sensor cahaya-dikonversi.pdf
Ppt sensor cahaya-dikonversi.pdfPpt sensor cahaya-dikonversi.pdf
Ppt sensor cahaya-dikonversi.pdf
 
Apostila de refrigeração
Apostila de refrigeraçãoApostila de refrigeração
Apostila de refrigeração
 
Simbologia para instrumentação
Simbologia para instrumentaçãoSimbologia para instrumentação
Simbologia para instrumentação
 
Manual De Aterramento TemporáRio
Manual De Aterramento TemporáRioManual De Aterramento TemporáRio
Manual De Aterramento TemporáRio
 

Semelhante a 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
 

Semelhante a 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 ...
 

Mais de Business Industrial Network

Mais de 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
 
Plc networking basics - controllogix
Plc networking basics - controllogixPlc networking basics - controllogix
Plc networking basics - controllogix
 
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
 

Último

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
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
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
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
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
 
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
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with 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
 
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
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
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
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 

Último (20)

Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
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
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
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
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
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
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
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
 
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
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with 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
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
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
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
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
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 

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