PLC Programming
PLC Programming
► Ladder
relay instructions use two types of
symbols: contacts and coils.
Contacts represent the input conditions that must be
evaluated in a given rung to determine the control of
the output.
Coils represent a rung’s outputs
Ladder Relay Instructions
Examine ON / Normally Open
Examine OFF / Normally Closed
Output Coil
Output Coil
Not Output Coil
Latch and Unlatch Output Coil
► A latch coil instruction causes an
output to remain energized even
if the status of the contacts that
caused the output to energize
changes.
► Once the rung has continuity, the timer begins counting time-based
intervals (ticks) and counts down until the accumulated time equals
the preset time.
► When these two values are equal, the timer energizes the output and
closes the timed-out contact associated with the output.
► If logic continuity is lost before the timer times out, the timer resets
the accumulated register to zero.
On--Delay Energize Timer
On
On--Delay Timers
On
Off--Delay Energize Timer
Off
► An OFF-delay energize timer (TOF) output instruction
provides time-delayed action.
► If the control line rung does not have continuity, the timer
begins counting time-based intervals until the accumulated
time value equals the programmed preset value.
► The counter will count up when contact 10 closes, count down when
contact 11 closes, and reset register 1003 to 0 when contact 12 closes.
► If the count is equal to 15 as a result of either an up or down count,
output 100 will be ON.
► If contents of register 1003 are greater than 15, output 101 will be ON.
► Output 102 will be ON if the accumulated count value is less than 15
Counter Example
► A block counter instruction
being used to count parts as
detected by a photoelectric eye
(PE) input.
► The preset value of counts is
500.
► Modify this circuit so that it will
automatically reset every time
the counter reaches 500.
► Also, add the instructions
necessary to implement an
output coil that indicates that
the count has reached 500.
Counter Example
Program / Flow Control Instructions
► Program/flow control
instructions direct the
flow of operations, as well
as the execution of
instructions, within a
ladder program.