PLC Fundamental Theory
PLC Fundamental Theory
SOS Institutes
(Training of PLCs)
------------------------------------------------------------------------------------------------------------------------------------------------------
--
SARADA MACHINERY COMPANY
S’ONICSICAL SYSTEMS
(Mfg. of Plastics Injection & Blow Moulding Machines) (Solution Providers to Factory Automation)
Mr.K.Srinivas Govt.Polytechnic
STEEL PLANT
Warangal Rs.20,000/-
KANPUR
SPENCE AUTOMATION
Mr.K.Ramesh DECE LTD,HYD 9948275761 Rs.7,500/-
Control transformers.
Fuses/MCBs.
Switches/Sensors.
Relays/Contactors Contnu…..
CONTROL TRANSFORMER
Transformer is a component which converts electrical voltage/current from one
circuit to the other circuits at the same frequency.
If the person were to touch any part of metal bulb the shock could be lethal.However if
the bulb is powered by 110VAC or less the resulting shock would likely be much less
severe.
In order to make large ,powerful machines effective and cost effective and reduce line
Current, most are powered by high voltages (230 VAC,440VAC).
This means line voltage must be reduce to 230VAC or less for the controls.
Contnu…..
TRANSFORMER CIRCUIT DIAGRAM
420VAC or 230VAC
Primery winding
Secondary winding
Control circuits are always protected by MCB. This prevents damage to the control
components in the event of short circuit in the control circuit.
MCB must be rated at a current that is less than or equal to the rated Current of
control circuit.
Push buttons
Selector switches
Limit switches
Pressure switches
Float switches
Liquid Level switches
TYPES OF SWITCH & SENSOR
Proximity sensors
Optical sensors
Encoders
Transducers
Thermocouples
(RTD) Resistance Temperature Device
TYPES OF PUSHBUTTON & LAMP
Momentary
Maintained
Mushroom Head
Contacts and Coils
Contacts have two states ,ON and OFF.In PLCs two type of
contacts.
Normally open (NO)
This type of contact does not allow current to flow through it when it is
switched OFF.
When the contact is switched ON,the circuit is completed and current flows
through the circuit.
Coils
Coils are output devices that are controlled By PLC as per the input
conditions of ladder logic is True or ON value.The coil is set to the ON status
and device performs its function.
FUNCTION OF SWITCHES
The contacts (Rear blocks ) on push button can be of
two types.
Normally Open (N/O)
Normally Close (N/C)
Description Symbol Comment
EXAMPLE:
Selection of Manual Mode.
Selection of Auto Mode.
FUNCTION OF SWITCHES
Limit Switch: Limit switches are not operator accessible,instead they are
Activated by moving part on the machine.
They are usually mechanical switches.
Optical Output
It is normally open Condition, It is
Sensor capable of sensing any type of
+VE material whether it is metallic,
-VE Conductive or porous.
It operates over longer distances.
SENSORS
The movable contacts are mounted via an insulator to a plunger that moves
with in a bobbin.
Two fixed pairs of contacts are mounted to the relay frame on electrical
insulator so that when movable contacts are not being pulled towards the core
(The coil is de-energized) they physically touch the upper fixed pair of contacts
And,when being pulled towards the coil,touch the lower pair of fixed contacts.
CONTACTORS&RELAYS
Description Symbol Comment
Coil R1
Normally open and normally closed contacts of above figures have lines
extending from both sides of the symbols.These are the connecting lines
which,on a real relay would be the connection points for wires
OVER LOAD RELAY
Over load relay is component used to break the circuit and over loaded caution
automatically if there is short circuit or power over loaded in the power circuit.
Over load relay will have NO/NC contacts to inter lock the control circuit.
LAMPS
The lamps are used to indicate present operation status of
the machine or fault conditions.
R 420VAC Y
Primery
Secondary
1 230VAC 0VAC
MCB
230VAC
2 0
The voltage deference between the two vertical lines is equal to the control
transformer secondary voltage.
WIRING AND NUMBERING
Total wires in a control circuit are numbered.
In our circuit,the left line number is 2 and right line number is 0.
When the circuit is designed,the actual wires used to connect
the components will have a ferrule(Number) on each end
called a wire numbering.
Numbering makes easier to design,troubleshoot and modify the
circuitry.
By using wire ferrule numbers,all the wires in the control panel
will be identified and unnecessary to use more than one color
wire to wire the circuit (except for ground wire).
SWITCH GEAR NOMENCLATURE PREFIX
2
From Control Transformer (230V AC) 0
3 4
CR1
PB1 PB2
Wire ferrule number
CR1 Label
5 6 7 8
FWD
PB3 CR1
Label LS1 REV
9 10 11 12
REV
PB4 CR1 LS2
FWD
RELAY LOGIC
Since the relays in a machine perform some type of control
operation,it can be set that they perform a logic function.
As with all logic functions, these control circuits must consist of
the fundamental AND,OR,and compliment logic operations.
N/O,N/C contacts and relay coils can be wired to perform these
Same fundamental logical functions.
By properly wiring relay contacts and coils together ,we can
develop any logic function as required.
AND Lamp Circuit
This slide shows the actual wiring connection for two switches
a lamp and voltage source.
PUSHBUTTON-1 PUSHBUTTON-2
LAMP-1
230V AC
Primery
Secondary
MCB
230VAC
2 0
3 4
PB-1 PB-2
L-1
OR Lamp Circuit
This circuit shown in below figure illustrates two pushbuttons
wired as an OR logic controlling a lamp.
The lamp will glow if either PUSHBUTTON-1OR PUSHBUTTON-2 is
pressed,That is depressing either of switches will cause LAMP-2
to glow while the voltage sours is there.
PUSHBUTTON-1
LAMP-2
PUSHBUTTON-2
230V AC
LADDER DIAGRAM WITH “AND,OR” LOGIC
The next slide shows the combined ladder diagram (AND,OR logic).
Note that since the pushbuttons PB-1 and PB-2 same ones used in the top
line ,they will have the same names and the same reference nomenclature
when drawn in bottom.
When two or more components in parallel,each parallel path is called
branch.
In our diagram AND,OR logic has two branches,it is possible to exchange
branches 1and 2 without changing the way the lamps operate.
The branches can be arranged in any order without changing the way the
machine operates.
It allows the designer to group and organize the control circuitry so that it is
easier to understand and troubleshoot.
420VAC
R Y
Primery
Secondary
230VAC
2 0
3 4
PB-1 PB-2
L-1
5
PB-1
L-2
PB-2
AND-OR Lamp Circuit
PB-1 PB-2
L-3
PB-3 PB-4
230V AC
LAMP- 3 will glow if PB-1 and PB-2 are both ON, or PB-3
and PB-4 are both ON.
This circuit is called AND-OR logic.
OR-AND Lamp Circuit
PB-1 PB-3
L-4
PB-2 PB-4
230V AC
230VAC
2 0
3 4
PB-1 PB-2
L-1
5
PB-3
L-2
PB-4
6 7
PB-5 PB-6
L-3
PB-7 PB-8
9 10
L-3
PB-9 PB-10
L-3
PB-11 PB-12
INCH Circuit
2 0
3
CR1
INCH
SELF LATCH Circuit
2 0
3 4
CR1
START STOP
CR-1
When power is applied to the vertical lines,CR1 is de-energized and the N/O
of CR1 contact in parallel with START pushbutton is also open.
CR1 is energized when START pushbutton is pressed and CR1 remain ON,if
release START PB because power will flow through CR1 (NO) contact.
CR1 is de-energized when STOP PB is pressed.
Since we are assuming START PB not been pressed,there is no path for
power flow through the branch and it will be OFF.
INVENTION OF PLC
The first PLC systems evolved from conventional computers
in the early 1970 s. These first PLCs were installed in
automotive plants. Traditionally automotive plants had to be
shut down for a month to change the model .
Computer
PROGRAMMING DEVICE
CONNECTING CODEYSYS TO THE
NEXGEN 2000 PLC
Computer
1 No of inputs 16
2 Voltage rating 24 VDC (18 to 30 VDC)
3 Indication for inputs Provided on CPU module via
Multiplexed dot matrix display
4 ON voltage 18 VDC Minimum
5 OFF voltage 5 VDC Maximum
6 Current per input channel 7mA (Maximum) @24 VDC
7 Ordering code 2616
Contnu…..
16 Pt 24 VDC Output Module
Sr.No SPECIFICATIONS Details
1 No of outputs 16
2 Voltage rating 24 VDC (18 to 30 VDC external
supply)
3 Current rating 250 mA per output
4 Indication for inputs Provided on CPU module via
Multiplexed dot matrix LED display
5 ON voltage 22 VDC Minimum
6 OFF voltage 1.5 VDC Maximum
7 Response time OFF to ON---- 0.1ms
ON to OFF---- 0.4ms
8 Inrush Current 600mA for 700 micro second
Contnu…..
16 Pt 24 VDC Output Module
Sr.No SPECIFICATIONS Details
1 1 0 1 0
Decimal equivalent =
= 0 1 2 3 4
2X0 + 2X1 + 2X0 + 2X1 + 2X1
0+ 2 +0 + 8 + 16 = 26
NUMBERING SYSTEM
4 3 2 1 0
Binary Number: 16 16 16 16 16
1 0 1 0 1
Decimal equivalent =
= 2X0 + 2X1 + 2X0 + 2X1 + 2X1
0+ 2 +0 +8 + 16 = 26
ADDRESSING CODE
Hexadecimal Decimal Octal Binary
(Base 16) (Base 10) (Base 8) (Base 2)
00 00 000 00
01 01 001
02 02 002
03 03 003
04 04 004
05 05 005
06 06 006
07 07 007
08 08
09 09
0A 10
0B
0C
0D
0E
0F
INPUTS ADDRESSING RANGE
%IW0
%IB1 %IX1.0 %IX1.1 %IX1.2 %IX1.3 %X1.4 %IX1.5 %IX1.6 %IX1.7
%IW2
%IB3 %IX3.0 %IX3.1 %IX3.2 %IX3.3 %IX3.4 %IX3.5 %IX3.6 %IX3.7
%IW4
%IB5 %IX5.0 %IX5.1 %IX5.2 %IX5.3 %IX5.4 %IX5.5 %IX5.6 %IX5.7
%IW6
%IB7 %IX7.0 %IX7.1 %IX7.2 %IX7.3 %IX7.4 %IX7.5 %IX7.6 %IX7.7
INPUTS ADDRESSING RANGE
%QW0
%QB1 %QX1.0 %QX1.1 %QX1.2 %QX1.3 %QX1.4 %QX1.5 %QX1.6 %QX1.7
%QW2
%QB3 %QX3.0 %QX3.1 %QX3.2 %QX3.3 %QX3.4 %QX3.5 %QX3.6 %QX3.7
%QW4
%QB5 %QX5.0 %QX5.1 %QX5.2 %QX5.3 %QX5.4 %QX5.5 %QX5.6 %QX5.7
%QW6
%QB7 %QX7.0 %QX7.1 %QX7.2 %QX7.3 %QX7.4 %QX7.5 %QX7.6 %QX7.7
DEFINITION OF FLAG/MEMORY BIT
Storage of intermediate results of one Rung, ( as internal
relay in PLC software)
In Relay logic it is defined as Auxiliary contactor
Motor on PB
Motor off PB Safety
input Motor on flag
input inter lock
%MX0.0
Motor on flag
%MX0.0 %QX0.6
This type of PLC generally has an expansion port. This type of PLC will have
limited I/Os.
P C
O P
W U
E
R
Supply
Expansion Port
Each Rung ends with a coil and starts with a set of conditions.
The two vertical lines at the two end of the rungs are called rails and are
represented as L1 and L2.
The below figure illustrates the rails and the rung of ladder logic diagram.
L1 L2
Rung
Ladder Logic Specifications
A combination of In combination A D M
conditions
B
C
FUNDAMENTAL PLC
PROGRAMMING
TIMERS
COUNTERS
TYPE OF TIMERS
On delay timer
Off delay timer
TYPE OF COUNTERS
Up counter
Down counter
Up/Down counter
DETAILS OF FUNCTION BLOCKS
ON DELAY TIMER
T1
%IX0.1 TON DONE
IN Q
T# 10M PT ET T1_ET
When IN input becomes high , the elapsed time value increments on every rising
edge. The DONE bit becomes on when elapsed time becomes equal to preset
time. When IN input becomes low the elapsed time become 0.
Cont….
DETAILS OF FUNCTION BLOCKS
OFF DELAY TIMER
T3
%MX10.0 TOF DONE
IN Q
T# 10S PT ET T3_ET
When IN input becomes high , timer DONE bit also becomes high immediately.
When IN input becomes low and the elapsed time value will get incremented by
every rising edge of time base. When elapsed time becomes equal to preset time
DONE bit goes low and elapsed time becomes 0.
Cont….
DETAILS OF FUNCTION BLOCKS
BLINK/CYCLIC
B10
%IX0.1 BLINK %QX0.6
ENABLE OUT
When the ENABLE input becomes high , BLINK begins to set OUTPUT for the
time period TIMEHIGH to ON and then afterwards TIMELOW to OFF
Cont….
DETAILS OF FUNCTION BLOCKS
UP COUNTER
C1
%MX0.1 CTU DONE
UP Q
%IX0.6 RESET
20 PV CV %MW00
When the REST input becomes high , the current value of counter becomes
zero. This is resetting of counter. When reset input is OFF the current value of
the counter increments by one on every transition from OFF to ON at the UP
input. The DONE bit goes high when the current value becomes equal to preset
value. Cont….
DETAILS OF FUNCTION BLOCKS
DOWN COUNTER
C10
%MX0.1 CTD DONE
DN Q
%IX0.6 LOAD
20 PV CV %MW100
PB-1 PB-2
L-1
230V AC
PB-1
L-2
PB-2
230V AC
PB-1 L-2
%IX0.1
PB-2
PLC INPUTS AND OUTPUTS WIRING OF ‘AND-OR’ LOGIC
INPUT MODULE OUTPUT MODULE
PB-1 PB-2
L-3
PB-3 PB-4
230V AC
AND-OR PLC Logic RUNG
%IX0.0 %IX0.1 %QX0.0
%IX0.2 %IX0.3
PB-3 PB-4
PLC INPUTS AND OUTPUTS WIRING OF ‘OR-AND’ LOGIC
INPUT MODULE OUTPUT MODULE
PB-1 PB-3
L-4
PB-2 PB-4
230V AC
OR-AND PLC Logic RUNG
%IX0.0 %IX0.2 %QX0.0
%IX0.1 %IX0.4
PB-2 PB-4
ADVANTAGES OF USING PLC OVER
CONVENTIONAL ELECTRICAL PANEL
Solid state devices reduce failures because there is no mechanical wear and tear.
Power consumption is less.
Easily programmed or reprogrammed with the help of
programming device.
PLC can be reused if no longer required in original application. Only application
program is to be changed.
Indicating lamps are provided at important diagnostic points to simplify
troubleshooting.
No external hardware timers and counters are required unless due to specific need.
Unlimited NO and NC contacts of inputs, outputs and auxiliary relays (Memory Bits)
are available.
Smallest cabinet size leading to less floor requirement.
Easy troubleshooting.
DISADVANTAGES OF RLC
Life of components is limited because of wear and
tear of mechanical components .
No flexibility.
Huge space is required.
Required more no of Labors.
Fault finding is very lengthy process (Some times it
may take few days to solve the problem).
Lot of time required to complete the Job of small
logic.
THANK YOU TO ALL
PARTICIPANTS AND KEEP ON
UPDATE THE KNOWLEDGE OF
PLC
THE END