Professional Documents
Culture Documents
Relay Controllers:
A relay is an electrically operated switch. Current flowing through the coil of the relay
creates a magnetic field which attracts a lever and changes the switch contacts. The coil current
can be on or off so relays have two switch positions.
The relay's switch connections are usually labeled COM, NC and NO. COM (Common)
is reference point of the switch which is always connected. NC (Normally Closed) is the contact
where COM is connected when the relay coil is off. NO (Normally Open) is the contact where
COM is connected when the relay coil is on. So you should connect to COM and NO if you
want the switched circuit to be on when the relay coil is on and connect to COM and NC if you
want the switched circuit to be on when the relay coil is off.
Ladder Diagram is also known as “Ladder Logic” is one of the simplest methods used
to program a PLC. It is a graphical programming language evolved from electrical relay
circuits. Each program statement is represented with a line, called the rung, that has all relevant
inputs to the left and the output to the right. The output device of a rung is energized if electric
power can conceptually flow from the left side of the rung to the right side. Input devices are
assumed to block the flow of power if they are not activated. During the execution of a ladder
diagram, the PLC reads the states of all inputs, then determines the states of a ladder diagram,
the PLC reads the states of all inputs, then determines the states of all outputs starting from the
rung at the top side, going down to the last rung, and finally updates the state of the output
devices.
Introduction to PLC:
Y0
X0
Programming Software Y1
X1
Y2
X2
.
.
.
.
Processor .
.
Y9
X13
PLC Operation can be considered in two modes, the I/O scan mode and the execution
mode. In I/O scan mode, the processor updated all outputs and inputs the state of all inputs one
channel at a time. In execution mode, the processor evaluates each rung of the ladder diagram
program that is being executed sequentially, starting from the first rung and proceeding to the
last rung.
Scan Time is an important characteristic of PLC which is how much time is required
for one complete cycle of I/O scan and execution. This depends upon number of I/O channels
involved, length of the ladder diagram program and the processing speed. A typical maximum
scan and execution time is 5 to 20 ms.
PLC has many advantages over conventional relays, counter and timers stated below:
1. The input and output variables of discrete-state control systems are binary in
nature, just as with a computer. Thereby provide fast execution.
2. Many of the “control relays” of the ladder diagram can be replaced by software
which means less hardware failure.
3. It is easier to make changes in a programmed sequence of events when it is only
a change in software.
4. Special functions, such as time-delay actions and counters, are easy to produce
in software.
5. PLCs are more reliable as software bugs can be removed through software
compilers.
6. Reusability of is circuit is increased by simple one can copy a ladder diagram
circuit multiple time.
7. PLC program resides in IC chip; thereby it takes very little space as compared
to relay controller circuits.
PLC and Micro-controller can be chosen for some applications interchangeably. There
major differences are listed below:
Lab Task:
1) Describe function of Relays.
2) What is the difference between Timers, Relays and Counters?