Selecting the Right PLC: A Guide
Selecting the Right PLC: A Guide
PB1
M1
LS1
SOL
M2R
What is a logic?
Data
Storage
Programming / Communication
Devices
C C
I i O i
n r Central u r
p c t c
u u Processor p u
t i u i
CR???????
t t t
s s
Optical Optical
MEMORY Isolation
Isolation program data
Barrier Barrier
Low Voltage
POWER SUPPLY
How the information is getting integrated from plant floor to enterprise
level?
Networked ERP
Business and
Enterprise Manufacturing
Systems INFORMATION
MRP II
Networked
Manufacturing
Systems
MES/Batch
Plant Programmable
Floor Control
MMI/
Fixed SCADA
Control
Control
System
Machine CONTROL
19601970 1980 1990 2005 Devices
TIME
Information Flow…
Information
Interne
Interne
Webcast tt
Web Server
Server Email
from
PLC-1
Failure
&
Report
Firewall
Ethernet TCP/IP
! Switch/Router
!
Ethernet TCP/IP
Control
Modbus ASi
! BusX BusX
What is a micro PLC?
Micro PLC’s are self-contained units with
Processors,Power supply & I/O’s in one package ….
Hence often called Packaged Controller.
85mm (3.35”)
Modicon TSX Nano
Rung M1
M1
Auxiliary Holding
Power
Power Contact
Bus
Bus
Ladder Logic Program
Ladder Logic closely resembles electrical ladder diagrams
A Ladder logic program exists only in the PLC’s software.
In ladder Logic it is not the actual flow of current thru circuits.
In electrical diagram the devices are described as open or closed(ON or
OFF), where as in Ladder Logic, instructions are either TRUE or FALSE.
In Ladder Logic Program must contain at least one control instruction
(output) and usually contains one or more conditions (inputs).
Logical Continuity
L1
Condition Instruction Control Instruction L2
PB1 Stop PB2 Start Motor- M1
%Q1
%I %I2
Rung 1
%Q1
Auxiliary Contact
Ladder Logic Instructions
The instructions in PLC ladder logic program are the Normally
open (N.O.) instructions, the Normally closed (N.C.) instructions,
and the Output energized instruction.
Normally Open
Instruction
Combining Instructions
Two fundamental logic operations – AND and OR provide the rules
for governing how the instructions are combined.
AND Logic
X Y Z
( )
OR Logic
X Z
( )
Y
SOURCING vs. SINKING DC I/O (General)
+VDC
+
DC
Power
Supply
-
DC COM
SOURCING vs. SINKING DC I/O (General)
+VDC
+
+ DC
Power
DC Supply
Power
Supply -
- DC COM
SOURCING vs. SINKING DC Inputs
+VDC
Field
Device IN1 +
DC DC
+ DC Power
Input
DC Supply
Power
Module
Supply
Input -
Module Field
- DC COM Device IN1
SOURCING vs. SINKING DC Outputs
+VDC +VDC
Field +
OUT1
Device DC
Power
DC
DC Supply
Output
Output + -
DC
Power Module Field
Module OUT1
Supply Device
- DC COM
DC COM
RULES
Field devices on the positive side (+VDC) of the field power supply
are sourcing field devices.
Field devices on the negative side (DC COM) of the field power
supply are sinking field devices.
3.Electrical Requirements
When determining the electrical requirements of a system, consider three items
incoming power(power for the control system)
Recalling from the earlier section, the control for Garage control system was
described like this
The car approaches an automated ticket machine at a gate.
The driver pushes a button on the ticket machine to receive a ticket. If
there is space left in the garage, the driver will receive a ticket. The
machine should not provide a ticket if the garage is full or if the gate is
already up.
Removing the ticket raises the gate and turns on a green “enter”light.
After the car clears the gate, the gate lowers and the green light shuts
off.
The number of vehicles in the garage needs to be known at any time.
If maximum capacity is reached, a “Garage Full” sign is illuminated, the
ticket machine will not provide a ticket, and the gate will not raise.
An alarm must sound when the gate is obstructed.
Program Development Procedures
Inputs Outputs
•Ticket request pushbutton •Provide Ticket
•Ticket taken limit switch •Raise gate
•Car cleared gate photo sensor •Lower Gate
•Car departed garage photo sensor •Garage Full sign
•Gate obstructed (Motor overload contact) •Green Light
•Gate in up position proximity sensor •Alarm
•Gate in down position proximity sensor
Program Development rung 1
Rung 2
L1
Condition Instruction Control Instruction
L2
Ticket has been Garage Full Gate is Up
taken Limit Switch
Raise Gate
%I %I2 %Q1
1
%Q1
Program Development rung 3
Rung 3
L1
Condition Instruction Control Instruction
Vehicle Photo Vehicle clear Vehicle present
Sensor (gate) of Gate Latch
% I1 %I2 %Q1
%Q1
Program Development rung 4
Rung 4
L1
Condition Instruction Control Instruction
Vehicle Present Vehicle Photo Ticket Request Vehicle is Clear of
Latch Sensor (gate) PB Gate
%I %I2 %I2 %Q1
1
Rung 5
L1
Condition Instruction Control Instruction
Gate is Vehicle is Gate is Gate is
Lowered Obstructed Lower Gate
Up clear of Gate
%I %I2 %I2 %I2 %Q1
1
Lower Gate
Program Development rung 6
Rung 6
L1
Condition Instruction Control Instruction
Gate is
Up
Green (GO)
%I Light
1
Program Development rung 7
Rung 7
L1
Condition Instruction Number of Vehicles Control Instruction
in the Garage
Lower
Gate
CU
Counter Up Counter
Preset 500 DN
Program Development rung 8
Rung 8
L1
Condition Instruction Control Instruction
DN
Garage is
C5:10 full
Program Development rung 9
Rung 9
L1
Condition Instruction Number of Vehicles Control Instruction
in the Garage
Vehicle Photo Sensor
(Departing Garage)
CU
Count Down
Preset 500 DN
Program Development rung 10
Rung 10
L1
Condition Instruction Control Instruction
Gate is
obstru
Alarm
cted
Sounded