Professional Documents
Culture Documents
AND
TIMERS AND CONTERS
Automatic Storage Process Control
Machine System
Automotive Assembly
Parking System
Automated
Material Handling
Beverage Valve
Output signal
Object
sensor
Sensor signal
Bottle
Bottle
Open
0.50
1.00
1.50
0.00 Kg
Present
valve
Full Analog input 1.50 Kg
0.50
0.00
1.00
PLC signal
Beverage Valve
Output signal
Object
sensor
Close
valve
0.00 Kg
1.50
PLC
Beverage Valve
Output signal
Object
sensor
Sensor signal
Bottle
Bottle
Open
0.50
1.00
1.50
0.00 Kg
Present
valve
Full Analog input 1.50 Kg
0.50
0.00
1.00
PLC signal
Examples continued(Example two):
•We are controlling lubricating
oil being dispensed from a tank.
This is possible by using two
sensors. We put one near the
bottom and one near the top, as
shown in the picture below
Inputs Address
Low level sensor 0000
High level Sensor 0001
Output Address
Motor 0500
T4:0
4
Timers
File Number
File contains
40 timers
This timer is the on-delay type and
is named Txxx. When the enable
input is on the timer starts to tick.
When it ticks yyyyy (the preset
value) times, it will turn on its
contacts that we will use later in the
program.
RETENTIVE TIMER ON (RTO)
This is very important instruction
in ladder logic
This instruction is same as timer
TON.
But unlike timer when it has
started timing process it holds the
count if there is a fault or there is
a power failure.
When the fault is removed or
power supply is restored then
RTO will start the timing from the
accumulated value of time which
was held when the continuity was
failed.
Example Continued
Combining Counter And Timer Functions
When the start button is pressed,
conveyor M1 begins running.
File Type
Counter Number
(0-31)
C5:0
5
Counters
Since both the up- and down-counters have the same address, the accumulated
value will be the same in both.
Whenever the accumulated value equals the preset value, the counter output is
energized to light up the Lot Full sign.
Parking Garage Counter Program
50
38
150
50
150
38
Counter Used For Length Measurement
Count input pulses are generated by the magnetic sensor, which detects passing teeth
on a conveyor drive sprocket. If 10 teeth per foot of conveyor motion pass the sensor,
the accumulated count of the counter would indicate feet in tenths.
10