Chapter 7 Programming Timers and Counters PDF
Chapter 7 Programming Timers and Counters PDF
Chapter 7
Timer and Counter Operations
Objectives:
Material:
Description:
1- Timer Operations:
These timers may be used in their “coil” form and may be used in their “box” form, except for
the last two timers that only admit a coil form.
The TP, TON, TOF and TONR timer coils must be the last instruction in a LAD network.
a- Timer Parameters:
• Timer Inputs: (IN)
PT (preset time values are stored in the specified IEC_TIMER DB data as signed double integers
that represent milliseconds of time.
Prepared by: Hassan Hariri
Modified from: Dr. Ramzi Halabi Page 2
Programmable Logic Controller (PLC) Laboratory
Timer box: ET (elapsed time) box output or ET time value in the timer DB data
Timer coil: you can only address the ET time value in the timer DB data.
TIME data uses the T# identifier and can be entered as a simple time unit (T#200ms or 200) and
as compound time units like T#2s_200ms.
• Reset: (R)
b- Timer Types:
• The TP Timer: PULSE TIMER (5 sec)
1- Counter Operations:
a- Counter Parameters:
b-Counter Types:
• Count Up (CTU):