Week 10 Lecture Page 1 PROG1090 INTRODUCTION TO PLC PROGRAMMING Key Dates: Lab #6: Due the Week of Mar 17 th (first Half Hour) Lab #7: Due the Week of Mar 31 st (first Half Hour) Final Exam: Monday April 21 st 12 2pm A2107 Christine Burns cburns@conestogac.on.ca TIMERS AND COUNTERS Overview Counters Timers Learning Target #4 Write PLC-5 and S7 programs utilizing timer and counter instructions. TIMER INSTRUCTIONS Variations of Timers ON Delay Timers times how long something is ON OFF Delay Timers extends how long something is ON after it turns OFF Retentive Timers times how long something is ON with a manual reset Pulse Timers Turns on for a period of time TIMER INSTRUCTIONS Timer Instruction Components: Enable conditions Duration to Time Output result Time Passed, Timing Complete Timer Control INTRO TO PLC PROGRAMMING WINTER 2014 CBurns Week 10 Lecture Page 2 TIMER INSTRUCTIONS Timers in Allen-Bradley Enabled by the input conditions to the Timer instruction MyTimer Control PRE the target time ACC the time accumulated DN dependent of timer type EN input conditions are true TT timer timing active TIMER INSTRUCTIONS Timer Instructions in Allen-Bradley TON ON Delay Timer TOF OFF Delay Timer RTO Retentive Timer RES Timer Reset (Only for RTO) TIMER INSTRUCTIONS Timers in Siemens T1 - Control SD Timer Type S timing input condition TV the time target (ie: S5T#2S, S5T#4M_34S_256MS) R resets the timer Q ON/OFF depending on timer type TIMER INSTRUCTIONS Timers in Siemens BI the time status Time Status decrements Time base can be 10ms, 100ms, 1s or 10s Time base will be automatically rounded down based on the time you enter ie. 2s -> 10ms base, 10s ->100ms base You can select this if necessary. INTRO TO PLC PROGRAMMING WINTER 2014 CBurns Week 10 Lecture Page 3 TIMER INSTRUCTIONS Timers Instructions in Siemens S_ODT (SD) ON Delay Timer S_OFFDT (SA) OFF Delay Timer S_ODTS (SS) Retentive ON Delay Timer S_PULSE (SP) Pulse Timer S_PEXT (SE) Extended Pulse Timer TIMER INSTRUCTIONS Example: If a cylinder has not extended within 5 seconds, turn on a warning light. If it still has not extended after 10 seconds, turn on a fault light. TIMER INSTRUCTIONS Example: If a cylinder has not extended within 5 seconds, turn on a warning light. If it still has not extended after 10 seconds, turn on a fault light. TIMER INSTRUCTIONS Example: If a cylinder has not extended within 5 seconds, turn on a warning light. If it still has not extended after 10 seconds, turn on a fault light. INTRO TO PLC PROGRAMMING WINTER 2014 CBurns Week 10 Lecture Page 4 TIMER INSTRUCTIONS Example: If a cylinder has not extended within 5 seconds, turn on a warning light. If it still has not extended after 10 seconds, turn on a fault light. Learning Target #4 Write PLC-5 and S7 programs utilizing timer and counter instructions. Summary of Resources: - Lectures and Notes for Weeks 9,10 - Lab #7, Lab #8 - Textbook Chapters 4, 5 - AB and Siemens Instruction Manuals - Optional Learning Activity #4 on D2L TIMERS AND COUNTERS THINGS TO REMEMBER Lab #6 will be accepted with no penalty if its submitted (both file and demo) within the first 30 minutes of the lab time this week. This will be a catch up week. The remaining lab deadlines will be extended by one week. If you finish all your labs based on the original schedule (April 14 th ), you will earn a 2% bonus on your final mark.