Professional Documents
Culture Documents
Lecture 5
• Basic events which need to catered for are (Event + Time based):
– Delays
– Count of Events
– Latch Or Unlatch (to turn something On or Off)
• These scan times are just an example to clarify things and don’t depict the actual
scan times of a PLC
An Actual Timing Diagram
• Latch & Unlatch blocks are not used universally by all PLC vendors
• Siemens uses SR Flip flops to perform latching & unlatching
operations
• SR Flip Flop:
S R Action
0 0 No
Change
1 0 Q=1
0 1 Q=0
1 1 Not
Specified
Siemens
Timers
Examples of Usage:
– Consider a garage light which should remain ON for 2 minutes before
turning off.
Off Delay Timers
The timer turns ‘ON’ as soon as the input turns high
Starts incrementing when the input has turned false and turns ‘OFF’
when a certain time has been achieved
Examples:
– A garage light which should remain ON for 2 minutes before turning off.
– Consider a car whose ignition key has been turned off but the car
engine remain ‘ON’ for some time
– Cooling fans remain “ON” for some time after the oven has been turned
off
ON Delay Timers
Starts incrementing when the input has becomes true and turns
‘ON’ when a certain time has been achieved
It turns OFF immediately as the input turns OFF.
Examples:
– Consider a car whose ignition key has been turned ON but the car
engine turns ON after some delay
– An On delay timer would allow an oven to reach a specific temperature
before starting production
Retentive Timers
• Retentive timers:
– They don’t lose their accumulated values once the enable input lines go
low
– They retain the accumulated value until the enable input lines goes high
again
– They function like stop watches. They can start and stop and retain their
current values until a reset button is pressed
– Preset Value:
• The preset value is the number of increments the timer has to count before it
changes it output. 50 is the preset value in the previous case
– Accumulated Value:
• It refers to the current increment the timer has reached during its operation
Rockwell Timers
• On Delay Timer:
– It starts accumulating when the rung
becomes true and continues until the
preset value becomes equal to the accumulated value or the rung
goes false
– Basic Symbol used is T and the file number is 4 (T4).