Professional Documents
Culture Documents
Programming Timers: 4-1 Goals and Objectives
Programming Timers: 4-1 Goals and Objectives
Programming Timers: 4-1 Goals and Objectives
QXD
5/29/08
8:22 PM
Page 141
CHAPTER
4
Programming Timers
4-1
4-2
Programming Timers
Chapter 4
141
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 142
Description
Control
International/British
Electronic
or
TC
(a)
or
TO
(b)
TO
or
(c)
TC
or
(d)
Rehg and Sartori, Industrial Electronics, 1st Edition, 2006, Reprinted by permission of Pearson Education, Inc., Upper Saddle River, NJ
4-2-1
Timed Contacts
142
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 143
4-2-2
Instantaneous Contacts
EXAMPLE 4-1
Draw the relay ladder diagram for an application where a motor is started 10 seconds after a start momentary push button is
depressed and is stopped when a stop momentary push button is depressed.
S olut ion
Figure 4-3 illustrates the solution, where TMR1 is the NOTC time delay coil, contact TMR1-1 is an instantaneous contact, and contact TMR1-2 is a timed contact. The instantaneous contact seals in the momentary start push button after its released, and the
normally open, timed closed contact activates the motor after the 10-second delay. Both TMR1 contacts are associated with
one timer.
Programming Timers
Chapter 4
143
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 144
Coil
power
Off
5 seconds
Close
(a) NOTC
Open
Contact
status
On
Coil
power
Off
5 seconds
(b) NCTO
Contact
status
Close
Open
Close
Open
Instantaneous
contact
Off delay
On
Coil
power
Off
5 seconds
Close
(c) NOTO
Open
Contact
status
On
Coil
power
Off
5 seconds
(d) NCTC
Close
Contact
status
Open
Close
Instantaneous
contact
Open
Rehg and Sartori, Industrial Electronics, 1st Edition, 2006, Reprinted by permission of Pearson Education, Inc., Upper Saddle River, NJ
L2
Stop
Start
TMR1
4-2-3
TMR1-1
TMR1-2
M
10s
144
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 145
Source: (a) Courtesy of Square D/Schneider Electric and (b) Courtesy of Rockwell Automation, Inc.
4-2-4
4-3
Programming Timers
Chapter 4
145
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 146
4-4
Chapter 4
Timer instructions are important in PLC applications where the time for a machines cycle times
is critical, or when some time delay is needed
between process sequences. PLC timers are output instructions that provide the same functions
as on-delay and off-delay mechanical timing
relays and electronic time delay relays.
PLC timers offer numerous advantages over
their mechanical and electronic counterparts. PLC
time settings can be easily changed and the quantity of timers can be changed through programming without wiring modifications. In addition,
the PLC timer is highly accurate and repeatable
because its time delays are generated in the PLC
processor. The accuracy of the timed event may
be affected, however, if the program has a large
number of rungs and therefore a long scan time.
146
K2
(b) Mitsubishi
Timer Number and Tag Name: The AllenBradley PLC 5 and SLC 500 timer instructions, Figure 4-7(a) and (b), use a timer file,
T4, for all timers and attach a unique number to identify the specific timer. For example,
T4:0, T4:1, and T4:2 are three timers numbered 0, 1, and 2. The colon (:) is a delimiter
used to separate the file number and the timer
number. The number of timers allowed in file
T4 is 256 (numbers 0 to 255); if more timers
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 147
Programming Timers
Chapter 4
147
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 148
148
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 149
4-5-2
Programming Timers
Chapter 4
149
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 150
are TRUE if
are FALSE if
Timer enable
Timer timing
Timer done
(a) Truth table for the on-delay timer output bits (TON)
are TRUE if
are FALSE if
Timer enable
Timer timing
Timer done
(b) Truth table for the off-delay timer output bits (TOF)
are TRUE if
are FALSE if
Timer enable
Timer timing
Timer done
(c) Truth table for the retentive timer output bits (RTO)
150
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 151
Input
False
True
Enable bit
False
True
Timing bit
False
7s
True
Done bit
False
15s
(a) On-delay timer timing diagram
Input
Enable bit
Timing bit
5s
Done bit
15s
(b) Off-delay timer timing diagram
Programming Timers
Chapter 4
151
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 152
Input
Enable bit
11
10
9
Accumulator
value retained
when rung
condition
is false.
8
7
6
5
4
3
2
1
Accumulator value
Timing bit
Done bit
Reset
(c) Retentive timer timing diagram
152
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 153
Element
block would be addressed as T4:5. This threeword block holds the data for timer 5.
Word 0 is the control word with the control or
timer output bits (EN, TT, and DN) stored in the
three most significant bits. These output bits are
Boolean data types, so their values in the timer
memory map are either 0 or 1. The preset value is
stored in word 1 and the accumulator value is stored
in word 2. Figure 4-10 illustrates the layout of the
three bits (EN, TT, and DN) and two words (PRE
and ACC) that can be addressed for system control.
The address structure for timers in the PLC 5
and SLC 500 processors uses the following format:
Tf:e.s/b
Each element in the timer address format is
defined in the following table.
Descript ion
Element delimiter
Word delimiter
Bit delimiter
Programming Timers
Chapter 4
153
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 154
T4:0/15 or T4:0/EN
T4:2/14 or T4:2/TT
T4:15/13 or T4:15/DN
T4:5.1 or T4:5.PRE
T4:10.2 or T4:10.ACC
T4:20.1/0 or T4:20.PRE/0
T4:3.2/11 or T4:3.ACC/11
T4:25/DN
T4:255/TT
The timer timing bit for the last timer (255) in timer le 4
T9:0.ACC
T9:255.PRE
T255:255/EN
EN TT DN
Internal use
Word
0
Addressable bits
Addressable words
EN = Bit 15 enable
TT = Bit 14 timer timing
DN = Bit 13 done
154
Chapter 4
4-6-2
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 155
Programming Timers
Chapter 4
155
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 156
156
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 157
Programming Timers
Chapter 4
157
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 158
158
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 159
start delay timer using a TON PLC timer instruction and the associated timing diagram. When
selector A, an input field device switch, is active
the timer begins incrementing toward the preset
value in 0.01 second increments. Two seconds
Programming Timers
Chapter 4
159
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 160
160
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 161
Programming Timers
Chapter 4
161
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 162
locks the machine doors at the start of the process and lights a doors locked indicator. The
operator turns off the machine when the part is
finished and the TOF timer keeps the doors
locked for an additional 5 seconds for the motor
to come to a stop. Figure 4-16(b) displays the
timing diagram for this operation. When the NO
selector switch is true, the machine start input
instruction is true, the T4:0/EN and T4:0/DN
bits are true, the accumulator value is reset to
zero, and rung 0 becomes active. As a result,
rung 1 is true because T4:0/DN is true and the
machine door is locked and the process light is
illuminated. When the machine is turned off, the
162
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 163
EXAMPLE 4-2
Draw a ladder diagram for a pumping system where the pump requires a 5-second delay before pumping; when the pump is shut
off, it requires a 15-second delay before it can be restarted. Start and stop switches are NO momentary contact push buttons.
S olut ion
Refer to Figure 4-17(a), the ladder solution, and 4-17(b), the timing diagram, as you read the following description.
The pump control is implemented with T4:0, an on-delay timer, and T4:1, an off-delay timer. The activation of the momentary start switch makes rung 0 true, which initiates the on-delay timer (T4:0/EN and T4:0/TT are true). Since the start switch is
Programming Timers
Chapter 4
163
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 164
a momentary contact type, the I:1/10 instruction must be sealed with the T4:0 timer timing bit (T4:0/TT) to keep the rung
active while the timer is incrementing the accumulator for the on-delay time of 5 seconds. Upon completion of the on-delay
time of 5 seconds, the T4:0 timer done bit (T4:0/DN) is active, which makes the XIC instruction in rung 2 true. The XIO instruction in rung 2 is also true (continuity) because the T4:1 timer done bit (T4:0/DN) addressing the XIO instruction is false or 0. As
a result, the pump output, O:2/5, is true, so the pump starts 5 seconds after the start switch is pressed. The sealing instruction
(O:2/5 around T4:0/DN in rung 2) is necessary because the T4:0/DN bit starts the pump after 5 seconds but is a 1 or true for
only one scan. The sealing instruction in rung 2 keeps the pump on after the delayed start.
T4:0/DN is true for only one scan because the timer resets immediately after the preset time is reached. This occurs because
T4:0/TT bit is used to seal the XIC start instruction in rung 0, which is a momentary start push button. At 5 seconds the timer
timing bit becomes false, which makes the T4:0 timer rung false and the timer resets. As a result, one scan after the done bit is
true it returns to the false or 0 state. Review the operation of the standard ladder logic in Figure 4-12(c), which is used for this
pump delay timer.
Now when the stop PB is pressed, the I:1/11 instruction in rung 1 is true, and the T4:1/DN bit of the TOF timer in rung 1 is
true. When the stop switch is released, the T4:1 TOF timer starts timing and keeps the T4:1/DN bit true for 15 seconds. Thus the
initiation of the stop push button makes the XIO instruction in rung 2 false because the T4:1/DN output is true. This action stops
the pump because output O:2/5 false. Rung 2 is held in this false condition by the XIO instruction for the duration of the T4:1 time,
so the start push button cannot restart the pump for 15 seconds. Upon completion of the off-delay time of 15 seconds, the T4:1/DN
output becomes false, the XIO instructions returns to true state, and the pump can be restarted. Note that this example uses standard timer ladder logic from Figures 4-12(c) and 4-13(b).
4-8 ALLEN-BRADLEY
RETENTIVE TIMERS
Review the operation of the retentive timer in
Table 4-1(c) on page 158 and Figure 4-9(c). The
retentive timer (RTO) operates the same as a
TON timer, except the accumulator (ACC) is not
reset when the timer enable returns to the false
state. The accumulator will continue to increment
from the previous value whenever the EN bit goes
from false to true. When the ACC equals the PRE
value the timer timing bit goes false and the done
bit becomes true. The done bit remains in that
state until a reset (RES) instruction for the timer
is executed. The reset instruction is covered in the
next section. Compare and study Table 4-1(c) and
Figure 4-9(c) until you understand the logical
operation of an RTO timer instruction.
The RTO instruction operates the same for
all three Allen-Bradley processors. The RTO
ladder logic symbol for the PLC 5, SLC 500,
and ControlLogix systems is the same as their
TON symbol. After the reset instruction is introduced in the next section, an example is used to
illustrate how the RTO and RES instructions
operate.
164
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 165
EXAMPLE 4-3
The pumping system in Figure 4-17 from Example 4-2 has an additional requirement to shut the pump down and illuminate a red
pilot lamp after four hours of operation. The illuminated pilot lamp indicates that its time to check the pump since it moves very
abrasive material. A NO momentary push button reset switch is used to reset the system when the maintenance is completed. Draw
the new ladder diagram for the pumping system with these additional requirements.
S olut ion
Refer to Figure 4-18 as you read the following description.
The operation of rungs 0, 1, and 2 are similar to the ladder logic in Example 4-2; the last three rungs are new. Every time the
pump is running, output O:2/5 (rung 2) is active. This makes the XIC instruction (O:2/5) and the retentive timer (T4:2) in rung 3
active, which increments the accumulated time in T4:2. Note that the retentive timer preset value is 14,400 seconds, which is
4 hours. When the accumulated number equals 14,400 seconds, the retentive timer done bit (T4:2/DN) is true, which causes a true
Programming Timers
Chapter 4
165
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 166
condition on output O:2/6 in rung 4, and the maintenance light to illuminate. A second T4:2/DN bit, added in rung 2, is assigned
to the examine if open instruction (--) called maintenance timer. This XIO instruction prevents the pump from being restarted
until after the retentive timer is reset and the done bit is a 0. Finally, when the reset push button switch is pressed the I:1/6 instruction in rung 5 is true, which makes RES true. This resets the accumulator in the retentive timer to zero and turns off the T4:2/DN.
Note that the address on the reset instruction is the address of the RTO instruction to reset.
intervals. Figure 4-19(a) depicts a ladder diagram using the ControlLogix syntax where the
done bits from three off-delay timers (TOF) are
used to turn on three heaters and then sequentially turn them off at the 30-second interval
rate. (Note that the arrowed lines in the ladder
166
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 167
logic are part of the ControlLogix display format to indicate that the rung was too large to
be displayed in a single horizontal line.) The
timers are identified by their tag names,
Timer_30_sec, Timer_60_sec, and Timer_90_sec.
When the heater start switch, tag Heater_start,
is held closed, all three TOF timer EN and DN
bits transition to true, so the outputs (tags
Heater_1, Heater_2, and Heater_3) in rungs
1, 2, and 3 are true. As a result, heater banks
1, 2, and 3 are turned on. After the start [normally open (NO) momentary selector] switch
is released, all three timers start timing. Heater
1 turns off after 30 seconds, heater 2 turns off
after 60 seconds, and heater 3 turns off after
90 seconds. This application uses the standard
ladder logic described in Figure 4-13(b) with a
momentary contact for the trigger.
This example illustrates the use of a TOF
timer with an NO momentary contact field
device. Since the TOF timing operation is triggered with a true to false transition of the timer
rung, the momentary selector switch in this
example makes it an ideal trigger for the TOF
timer. The TOF timer done bit becomes true
when the rung is true and remains true until the
accumulator reaches the preset value. As a result,
the combination of an NO momentary switch
and the done bit of a TOF timer is ideal for this
timed off control of an output. In comparison,
if a TON timer is used, then the rung must
4-9
CASCADED TIMERS
Programming Timers
Chapter 4
167
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 168
168
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 169
4-10-1
EXAMPLE 4-4
Design a ladder logic system to provide two-handed control for a production machine. Two-handed control requires that the
operator use both hands to initiate the start cycle of the machine. However, operators tape down one of the hand controls with
duct tape so that they can load the machine with one hand and start it with the other. The safety demands a two-handed control
circuit with anti-tie down capability. The left and right start push buttons must be operated within a half-second window or the
machine will not start. A simpler solution without anti-tie down was developed in Example 3-13; review that before continuing.
S olut ion
As long as the second hand switch closes within 0.5 second after the rst switch closure, then the machine would be allowed to
start. If the two switch closures fall outside this 0.5-second window, the machine is off. A look at the standard timer ladder logic
in Figure 4-12 indicates that circuit (b) could be used. However, rung 2 is changed as follows:
The two push button start switches are added to rung 2.
The XIC instruction addressed by the timer DN bit is changed to an XIO instruction.
The Boolean logic to start the machine is:
Machine on = LH_PB AND RH_PB AND NOT START_INHIBIT
The rst push button contact that closes starts the 1 second timer. If the second push buttons contact closes outside the 1-second
window, then the timer opens the start circuit in rung 0 before the second push button contact can close and start the machine. The
Programming
Timers Chapter 4
Programming
Timers
GRIDLINE SET IN 1ST-PP TO INDICATE SAFE AREA; TO BE REMOVED AFTER 1ST-PP
169
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 170
machine is inhibited because the timer done bit, Start_inhibit.DN, becomes true and the XIO instruction addressed by this bit in rung
0 is then false. The two hand PBs must be in parallel in order that either can enable the timer so the logic equation is:
Timer enable = LH_PB OR RH_PB
The circuit for a ControlLogix processor satisfying the control requirement is illustrated in Figure 4-21(a). Review the ladder logic
operation to verify that it satises the control description.
The tag dialog boxes are displayed in Figure 4-21(b) and (c). The TON timers in ControlLogix have a xed 0.001 second time
base so a preset of 1000 produces a 1-second delay (1000 0.001 s 1 s). The tag data base in Figure 4-21(b) is in the monitor mode and shows the current value of all tags; as a result, the 1000 appears as the preset value. When the system is running
all parameter can be monitored. Figure 4-21(c) illustrates the edit tag mode for the tag data base. Interface data is presented
and the method used for entering instruction descriptions using a drop down text box is illustrated.
EXAMPLE 4-5
It is common in automation systems to use timers to set the extension and retraction time for a pneumatic actuator when the
cylinder does not have end-of-travel sensors. The pneumatic robot in Figure 4-22(a) is used for material handling and the axes
and gripper cylinders do not have end-of-travel sensors. Use 2 seconds for actuator extension and retraction and to open and
close the gripper. A cycle is started when the start selector switch is on and when the pickup sensor indicates that a part is in the
pickup location. Use the timing diagram in Figure 4-22(b) and the interface information in Figure 4-22(c).
S olut ion
When empirical programming is used, there are numerous valid solutions to control problems of this type. One may be more efcient (less ladder rungs) than others, but all work equally well.
The cycle time for the robot is 12 seconds with the following sequence starting when the start selector and part sensor are
true: X-axis down (4 seconds), gripper closes (6 seconds), X-axis up (2 seconds), Y-axis extends (4 seconds), Y-axis retracts
(2 seconds). A study of the timing diagram reveals that some of the actions of the actuators overlap. For example, the X-axis is
down for 4 seconds and the gripper closes during the last 2-seconds that the X-axis is down. Verify this overlap on the waveform. Also, there are three waveforms (X-axis timer, gripper timer, and Y-axis timer) that specify the motion of the actuators.
However, there are two waveforms (gripper on delay and Y-axis on delay) that are just used to delay the start of those axes
motions. For example, the gripper solenoid must be turned on (closed) 2 seconds after the start of the cycle, so a 2-second
timer is used to achieve this delay and also to trigger the start of the gripper timer. The cycle is synchronized (cycle timer)
with a pulse that occurs every 12 seconds. The axes and gripper waveforms are listed in Figure 4-22(b). Study these waveforms and the ladder logic in Figure 4-22(c) for the X-axis control, Figure 4-22(d) for the gripper control, and Figure 4-22(e)
for the Y-axis control as you proceed.
The following steps are added to the empirical design process in Chapter 3 when timers are present.
1. Draw a timing diagram for all outputs. The rst step in the discrete control of a sequential machine is to generate a timing diagram that shows the on/off sequence for each of the actuators and other eld devices. If the timing of input switches and
sensors is important, then they are included as well.
The timing diagram for the robot in this example is displayed in Figure 4-22(b), and the ladder solution is shown in Figure 4-22(c),
(d), and (e).
2. Use the timer operation descriptions in Table 4-1 and Figure 4-9 plus the standard timer ladder logics in Figures 4-12 and
4-13 to identify the type of timer ladder(s) to consider for each waveform. Each waveform requires the timer instruction in
one rung and the timer output in a second rung.
All the waveforms in this example could be produced with TON timers. The cycle timer ladder (rung 0) is found in the standard ladders logic, Figure 4-12(e). The standard ladder in Figure 4-12(d) is used for the output timers (rungs 1 and 2, 4 and 5, and 7 and
8) and the standard ladder in Figure 4-12(c) is used for the output on delay timers (rungs 3 and 4, and 6 and 7).
170
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 171
Programming Timers
Chapter 4
171
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 172
3. Start with the waveform for the initial sequential machine action and work through each step or stage in the machine operation. Sequential machines operate in steps and often the previous step triggers the following step.
In this example the process cycle timer is addressed rst, then the motion of the X-axis, then the gripper, and nally the Y-axis.
The completion of one timed operation triggers the next timer process.
4. Write the input Boolean logic equation to control the timer instruction and the output actuator. This is often a trial-and-error
technique where you try a solution and then modify it.
In rung 1, for example, X-AXIS AND PTS AND (CYCLE TIMER DN sealed by X-AXIS TIMER TT). The sealing instruction is needed because
the cycle timer done bit is only true for one scan.
5. Link the standard timer ladders together and verify that the solution satises the problem requirements.
For this example, see the robot control ladder in Figure 4-22(c) through (e).
The following comments summarize the operation of the robot control ladder solution.
Rung 0 is a pulse generator (preset value establishes the time between cycle start pulses), and placing the done bit on an XIO
instruction in the timers input logic makes the pulse width equal to one scan.
The Start selector switch, SEL1, is placed in the logic rung for each timer (rung 0, 1, 3, and 6) so that the system can be reset
with that instruction.
The instructions used to make the timer instruction active are all done bits (rungs 1, 3, 4, 6, and 7) that are only active for
one scan. As a result, these timer activation bits are sealed with the timer timing bit to keep the instruction active until the
accumulator is equal to the preset values.
172
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 173
Programming Timers
Chapter 4
173
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 174
174
Chapter 4
3. Select the time base so that the timing resolution meets the requirements of the
application.
4. Set the preset value so that the product of
the time base and the preset value equal
the delay time value.
5. In an on-delay conversion, replace the NO
timed contact with an XIC instruction
addressed with the done bit of the PLC
timer. If the NC relay timer contact is
used, then replace it with an XIO instruction addressed with the done bit of the
PLC timer.
6. In an off-delay conversion, replace the NO
timed contact with an XIC instruction
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 175
Programming Timers
Chapter 4
175
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 176
EXAMPLE 4-6
Convert the relay ladder timer circuit in Figure 4-3 to a PLC solution using a PLC 5 system from Allen-Bradley.
S olut ion
Refer to Figures 4-3 and 4-23(a) as you read the solution. The TMR1 mechanical timer is an on-delay timer with an NO timed close
contact (TMR1-2) and an NO instantaneous contact (TMR1-1). The TMR1 relay is replaced by a TON timer (T4:0). The TMR1-1 instantaneous contact is replaced by an XIC PLC instruction with the address T4:0/EN. The TMR1-2 NO timed closed contact is replaced
by an XIC PLC instruction with the address T4:0/DN. The input contacts and output coil are replaced with PLC logic symbols as
illustrated in Figure 4-23(a). Now the ladder is examined to determine if simplication is possible.
The solution in Figure 4-23(a) functions exactly like the wired relay ladder logic; however, the ladder logic can be simplied. The PLC
ladder in Figure 4-23(b) works equally well but does not have the stop push button contact in rung 1. The stop instruction is not necessary because the timer is reset when the stop instruction in rung 0 is active. A timer reset makes the done bit 0, which turns off the motor.
The I/O Conguration dialog box for the PLC 5 is illustrated in Figure 4-23(c). Note that all the data necessary for addressing
an instruction are provided. Double-clicking on the Chassis Type data opens the list of the modules present.
176
Chapter 4
Programming Timers
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 177
4-12-2
The temporary end (TND) instruction is useful for troubleshooting any PLC program, but
it is especially helpful for timers. The TND
instruction is an output instruction and is shown
Chapter 4
177
M04_REHG8818_02_SE_C04.QXD
5/29/08
8:22 PM
Page 178
Systems
Instructions
PLC 5,
SLC
500
TON, TOF,
RTO
LOGIX
TON, TOF,
RTO
PLC 5,
SLC
500
TND
LOGIX
TND
Location
Chapter 4
Programming Timers