SlideShare une entreprise Scribd logo
1  sur  3
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Sumador restador binario
Sumador restador binarioSumador restador binario
Sumador restador binarioFelix_Menendez
 
Guía 03 diseño de circuitos combinacionales
Guía 03   diseño de circuitos combinacionalesGuía 03   diseño de circuitos combinacionales
Guía 03 diseño de circuitos combinacionalesJUANARIASPORTUGUEZ
 
data representation
 data representation data representation
data representationHaroon_007
 
Cuaderno de ejercicios para micro autómatas programables EMERSON EDUARDO ROD...
Cuaderno de ejercicios para micro autómatas programables  EMERSON EDUARDO ROD...Cuaderno de ejercicios para micro autómatas programables  EMERSON EDUARDO ROD...
Cuaderno de ejercicios para micro autómatas programables EMERSON EDUARDO ROD...EMERSON EDUARDO RODRIGUES
 
Sesion contadores y registros
Sesion  contadores y registrosSesion  contadores y registros
Sesion contadores y registrosMarco Antonio
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registersDeepak Sharma
 
Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...
Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...
Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...SANTIAGO PABLO ALBERTO
 
Tema 5 de Electrónica digital: Circuitos secuenciales
Tema 5 de Electrónica digital: Circuitos secuenciales Tema 5 de Electrónica digital: Circuitos secuenciales
Tema 5 de Electrónica digital: Circuitos secuenciales SANTIAGO PABLO ALBERTO
 
Session 24 - Control Systems
Session 24 - Control SystemsSession 24 - Control Systems
Session 24 - Control SystemsVidyaIA
 

Tendances (20)

Sumador restador binario
Sumador restador binarioSumador restador binario
Sumador restador binario
 
Guía 03 diseño de circuitos combinacionales
Guía 03   diseño de circuitos combinacionalesGuía 03   diseño de circuitos combinacionales
Guía 03 diseño de circuitos combinacionales
 
data representation
 data representation data representation
data representation
 
Cuaderno de ejercicios para micro autómatas programables EMERSON EDUARDO ROD...
Cuaderno de ejercicios para micro autómatas programables  EMERSON EDUARDO ROD...Cuaderno de ejercicios para micro autómatas programables  EMERSON EDUARDO ROD...
Cuaderno de ejercicios para micro autómatas programables EMERSON EDUARDO ROD...
 
Basic plc-programming
Basic plc-programmingBasic plc-programming
Basic plc-programming
 
Sesion contadores y registros
Sesion  contadores y registrosSesion  contadores y registros
Sesion contadores y registros
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registers
 
Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...
Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...
Microcontroladores: Módulos del micro PIC16F877 con temporizadores e interrup...
 
Number System
Number SystemNumber System
Number System
 
Tema 5 de Electrónica digital: Circuitos secuenciales
Tema 5 de Electrónica digital: Circuitos secuenciales Tema 5 de Electrónica digital: Circuitos secuenciales
Tema 5 de Electrónica digital: Circuitos secuenciales
 
Siemens PLC Programming Example #2
Siemens PLC Programming Example #2Siemens PLC Programming Example #2
Siemens PLC Programming Example #2
 
Lecture 22 flapper nozzle &amp; ip converter
Lecture 22   flapper nozzle &amp; ip converterLecture 22   flapper nozzle &amp; ip converter
Lecture 22 flapper nozzle &amp; ip converter
 
Lab d1-00-2
Lab d1-00-2Lab d1-00-2
Lab d1-00-2
 
Tema 3 transformada_z
Tema 3 transformada_zTema 3 transformada_z
Tema 3 transformada_z
 
Class 5 advanced control loops
Class 5   advanced control loopsClass 5   advanced control loops
Class 5 advanced control loops
 
Informe practico
Informe practicoInforme practico
Informe practico
 
Chapter 4 plc
Chapter 4 plcChapter 4 plc
Chapter 4 plc
 
8051 ch9-950217
8051 ch9-9502178051 ch9-950217
8051 ch9-950217
 
Multivibradores
MultivibradoresMultivibradores
Multivibradores
 
Session 24 - Control Systems
Session 24 - Control SystemsSession 24 - Control Systems
Session 24 - Control Systems
 

Similaire à PLC Programming Example - PLC Clock - Answ

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
 

Similaire à PLC Programming Example - PLC Clock - Answ (20)

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
 
Se notes
Se notesSe notes
Se notes
 
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 ...
 

Plus de Business Industrial Network

Plus 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
 
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
 
PLC Simulator
PLC SimulatorPLC Simulator
PLC Simulator
 

Dernier

Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptJohnWilliam111370
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsapna80328
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSneha Padhiar
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
Industrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsIndustrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsAlirezaBagherian3
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 

Dernier (20)

Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveying
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
Industrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsIndustrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal Compressors
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 

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