PLC Experiment
PLC Experiment
Objectives
Introduction
The FP0 C-10 PLC allows up 128 timer instructions, however, by default, timer instructions are from 0 to 99
(100 instructions).
There are 3 types of timers which is 1) TMR: sets the ON-delay timer for 0.01s units.
2) TMX: sets the ON-delay timer for 0.1s units.
3) TMY: sets the ON-delay timer for 1s units.
Each timer has a corresponding Set value area (SV), and Elapsed Value Area and a Timer Contact (T).
Equipment
1.
2.
3.
4.
Objective 1
Objective 2
i.
ii.
iii.
Port
Start,
X0
Input
Stop,
X1
Lo Sensor,
X2
Port
Hi Sensor,
X3
Pump 1,
Y0
Pump 2,
Y1
Valve 1,
Y2
Valve 2,
Y3
True
True
True/False
True
True
False
True/False
True/False
True/False
False
True
True/False
On/Off
Off
Off
Off/On
Off
Off
On/Off
Off
Off
Off/On
Off
Off
iv.
All valves
and pumps
are close.
Yes
Lo?
NO
Tu rn on t he
first va lve.
NO
St art t he first
ti mer f or 3
seco nds.
Hi?
Yes
Bot h the first
valve a nd
first pump
are clos e.
After 3
seco nds, turn
on t he first
pum p.
Th e count
number of
the first
counter
decrease
from 2 to 1.
Yes
NO
Lo?
Tu rn on t he
first va lve
Hi?
NO
Yes
Bot h the first
valve a nd
first pump
are clos e.
After 3
seco nds, turn
on t he first
pum p.
Th e count
number of
the first
counter
decrease
from 1 to 0.
Yes
NO
Lo?
Tu rn on t he
seco nd valve.
Hi?
St art t he
seco nd timer
for 3
seco nds.
NO
Yes
After 3
seco nds, turn
on t he
seco nd
pum p.
Bot h second
valve a nd
seco nd pump
are clos e.
Th e count
number of
seco nd
counter
decrease
from 2 to 1.
Yes
Lo?
Tu rn on the
seco nd valve.
NO
NO
St art t he
ti mer f or 3
seco nds.
Hi?
Yes
Bot h second
valve a nd
seco nd pump
are clos e.
Th e count
number of
seco nd
counter
decrease
from 1 to 0.
After 3
seco nds, turn
on t he
seco nd
pump.
v.
Discussions.
The continuous variable control system has a range that can be vary by adjusting the element. For example of
the controlling the output flow rate of the water current into the tank, the adjustment of the opening of the
output valve set by the controller can do control the output flow rate of the water flow into the tank. While,
the discrete state system is only depend on the binary sequence of control to the element which is on and off.
For the same example of controlling of the valve, instead of the valve can be open within over range, the valve
is fully turn on and off once the signal is sent.
Nowadays, the PLC is widely used in variety of industries and machines compare to the use of traditional
mechanical relay. The very crucial things that the industry will be took into consideration is the cost of the
construction of the complex system could be high if using the mechanical relay which is not cost effective.
Instead of it, the PLC is the microprocessor-based controllers have replaced relay logic controllers due to the
input and output variables of discrete-state control system are binary in nature, and therefore, the control relays
of the ladder diagram can be replaced easily using the software and result in less hardware failure.
Also, the PLC has many special function, such as time-delay action and counters can be easily to produce
using the software. The using of the PLC not only can offer much more flexibility and sophisticated to control
the system but also can be reapplied to many others control system quickly and easily. In addition, the
reliability of the PLC is very satisfy by the industry which take many of years before failure. Even when the
system is down, the maintenance time for the troubleshooting the problem is very short and efficient.
In the design of traffic light system, the normally open contact of control relay R0 was used to turn the system
On & OFF. Control relay R0 was connected to inputs X0 and X1 which are the normally open start push
button and the normally closed stop push button. When X1 turned on, R0 energized and it causes rung 5 and
rung 21 to be TRUE. The whole system will only work provided this two rung is TRUE. On the other hand,
when X1 turned on, R0 de-energized causing rung 5 and rung 21 to be FALSE. The whole system stop when
this two rung are FALSE.
A normally open stop switch is not safe to be used in a control system because once the relay malfunctioned,
pressing the normally open stop button would not disconnect the circuit and the system would not be able to
stop. A normally close stop switch will be a safer choice to be used in a control system as pressing the normally
close stop button will disconnect the circuit and stop the whole system even if the relay malfunctioned.
Conclusion
The objectives were successfully achieved. The PLC timer and counter is well studied in the simple traffic
light control system and the tower tank pumping system was successfully developed using timers and counters.