PLC 2020
PLC 2020
(a) (b)
Fig. 3.11 Architecture of a PLC
Many commercially available PLCs are consist of three modules, that is;
an input module, a CPU module and an output module (Fig. 3.11(b)). This
figure clearly illustrates the fact that a PLC is a computer system adapted
for the monitoring control and automation of industrial plants. Inputs
devices are usually sensors while output devices include, relays coils,
contactor coils and solenoids. Programming (and compilation) is generally
done on a personal computer and uploaded to the CPU of the PLC via the
programming port.
Inside the PLC housing, connected between each input terminal and the Common
Terminal, is an opto isolator (or optocoupler, photo coupler, optical
isolator) that provides an electrically isolated "high" logic signal to the
computer's internal circuitry. The optocoupler is Light-Emitting Diode/photo-
transistor pair. Any other light activated solid state device such as a photo
TRIAC, SCR may be used in place of the phototransistor. At the input, the LED
of the optocoupler is part of the external circuit while the phototransistor
connects with the internal circuit. In most cases, an external LED is
activated (Fig. 3.12).
1
Output signals are generated by the PLC's internal computer circuits that
also activate an output optocoupler. In this case, solid-state light
activated devices would be part of the external output circuit. These
elements connect the "Source" terminal to any of the "Y" labelled output
terminals. As with each input, an indicating LED on the front panel of the
PLC gives visual indication of an "energized" output (Fig. 3.13). The actual
logic of the control system is established inside the PLC by means of a
computer program. This program dictates which output gets energized under
specific input conditions. The program may be a ladder logic diagram (or
simply ladder diagram) or any other Standard PLC programming languages or
tool.
2
coil. When the Y1 coil of the program ”energizes,” the real Y1 output will
become energized, lighting up the lamp connected to it. The outcome of a
similar ladder code but with “normally closed contact” is illustrated by Fig.
3.25
Fig. 3.26 Putting a lamp when at leeast two push buttons are pressed
Fig. 3.27 Motor control –fail safe Fig. 3.28 Motor control – no fail safe
4
as any of the pushbuttons remain un-actuated. To make the lamp turn off, we
will have to actuate (press) all three switches just like in the second
circuit of the Fig. 3.29.
Scanning
During each operating cycle, the CPU reads all the inputs, interpret their
values and energizes or de-energizes the output sequentially according to
user program. This process is known as scan. Scanning is actually made of
program scan and input/output scan. The time for programme scanning can be up
90% of the total scan time. Because the inputs and outputs can change at any
time the PLC must carry out the scanning process continuously. A typical scan
time is 1 μs. The scan time may be a problem in high-speed systems because a
change of state in the input may not be detected.
5
advanced functions with far greater accuracy and reliability than what is
possible using electromechanical logic.
Table 3.31 Some Syntax for IEC and Modicon Ladder logic
IEC 61131-3 MODICON INTERPRETATION
SYNTAX SYNTAX
Normally open contact. Passes power (ON) if coil
driving the contact is ON (closed)