Professional Documents
Culture Documents
Control program
• Flexible.
• Less expensive.
• Eliminates much of the hard wiring that was associated with conventional relay
control circuits:-The program takes the place of much of the external wiring that
would be required for control of a process.
• Increased Reliability: Once a program has been written and tested it can be
downloaded to other PLC’s.
• Lower Costs: Originally PLC’s were designed to replace relay control logic. The cost
savings using PLC’s have been so significant that relay control is becoming obsolete,
except for power applications.
• Faster Response Time: PLC’s operate in real-time which means that an event taking
place in the field will result in an operation or output taking place.
PLC System
BLOCK DIAGRAM OF A PLC
Power supply
• The electrical supply that converts alternating current (AC) line voltage to various
operational DC values. In the process, the power supply filters and regulates the DC
voltages to ensure proper computer operation.
Processor (CPU)
Programmer / Monitor
• The programmer / monitor (PM) is a device used to communicate with the circuits of
the PLC. Hand-held terminals, industrial terminals, and the personal computer exists
as PM devices.
• In a hand -held unit, input takes place through a membrane keypad and the display is
usually a liquid-crystal display (LCD).
Programmer / Monitor
Input / Output module
• The input module has terminals into which outside process electrical signals,
generated by sensors or transducers, are entered.
• The output module has terminals to which output signals are sent to activate relays,
solenoids, various solid-state switching devices, actuators, motors, and displays.
I/O Section
Input module
Output Module
• The racks on which the PLC parts are mounted and the enclosures on which the CPU,
PM and I/O modules are mounted.
PLC Operation
• In the PLC, the program steps defined by the ladder diagram are executed
simultaneously and continuously. First the inputs to the PLC are sampled by the
processor and the contents are stored in the memory.
• The input values stored in memory are used in the control logic calculations to
determine the value of the output.
• Finally the outputs are updated to agree with the calculated values. This cycle
consisting of reading inputs, executing the control program and revising the outputs is
referred to as a ‘scan’.
• The time to perform a scan is called the scan time and this depends on the number
and complexity of control function to be performed in each cycle.
PLC PROGRAMMING
• The programming device is usually detachable from the PLC and it can be shared
between the different controllers.
• Most of the programming methods used today for PLCs are based on the ladder logic
diagrams.
• Ladder diagram consists of two vertical lines representing the power rails.
• Circuits are connected as horizontal lines, i.e. the rungs of the ladder, between these
two verticals.
Ladder diagram
• PLC programming based on the use of ladder diagrams involves writing a program in
a similar manner to drawing a switching circuit.
• The ladder diagram consists of two vertical lines representing the power rails.
• Circuits are connected as horizontal lines, i.e. the rungs of the ladder, between these
two verticals
• Figure shows the basic standard symbols that are used and an example of rungs in a
ladder diagram.
• In drawing the circuit line for a rung, inputs must always precede outputs and there
must be at least one output on each line. Each rung must start with an input or a series
of inputs and end with an output.
PLC ladder diagrams
(i) Closer of A and B would give output C . i.e., C = A . B
(ii) Closer of either A or B would give output C . i.e., C = A + B
(iii) C = NOT ‘A ‘ . Output is NOT equal to input or is always opposite to it.
If input is 1 , output is 0 and vice-versa.
(iv) NAND - NOT AND & NOR – NOT OR is also shown.
Stop
(NC) Sol A
010
001
Start
(NO)
002
LS-1
(NC)
003
Output module
Input module
030
030 010 F G
• The programmer can enter the program into PLC using the keyboard with graphic
symbols for the ladder elements, or using a computer screen and a mouse to select the
symbols, and the program panel or computer then translates these symbols into a
machine language that can be stored in the PLC memory.
• There is an alternated way of entering a program and that is to translate the ladder
program into mnemonics, each code corresponds to a ladder elements and then enter
these into the programming panels or computer. These are then translate into machine
language.
Example of Mnemonics
Example of Mnemonics
Application example
TIMERS
• A motor or pump need to be controlled to operate for a particular interval of time or to be
switched on after some time interval.
• PLC thus have timers as built in devices.
• Timers count seconds using the internal CPU clock.
• A common approach is to consider timer to behave like relays with coils that when energized,
results in the closure or opening of contacts after some pre-set time.
• The timer is thus treated as an output for a rung , with control being exercised over pairs of
contact elsewhere as shown in Figure (a).
• Some treat timer as a delay block that when inserted in a rung, delays signals in that rung
from reaching the output as shown in Figure (b).
Counting circuit
Internal relay
• In PLCs there are elements that are used to hold data, that is, bits, and behave like
ralays, being able to be switched on or off and to switch other devices on or off.
• For programming they can be treated in the same way as an external relay and input.
• Each internal relay is effectively closed or opened, these states being designated 0 and
1.
• So, if we have 8 internal relays in the register, we can store eight 0/1 state.Thus we
might have, for internal relays:
Master and Jump controls
Master control relay representation
Jumps
• By reducing the size and cost compared to a design that uses a separate
microprocessor, memory, and input/output devices, microcontrollers make it
economical to digitally control even more devices and processes.