Escolar Documentos
Profissional Documentos
Cultura Documentos
E-Mail : NASRUL@ump.edu.my
Tel: 019-9012035
Room no:E10-C14
1. PLC Introduction
What does PLC stand for?
To assure :
1.Stability
2. Accuracy
3. Smooth transition
1. PLC Introduction
Feature
2. EXECUTE PROGRAM
Next the PLC executes your program one instruction at a
time. Maybe your program said that if the first input was on
then it should turn on the first output. Since it already knows
which inputs are on/off from the previous step it will be able
to decide whether the first output should be turned on based
on the state of the first input. It will store the execution
results for use later during the next step.
©snaim 2008
PLC Operation(Scan time)
3. UPDATE OUTPUT STATUS
Finally the PLC updates the status of the outputs. It
updates the outputs based on which inputs were on
during the first step and the results of executing your
program during the second step. Based on the example
in step 2 it would now turn on the first output because
the first input was on and your program said to turn on
the first output when this condition is true.
©snaim 2008
Factors influencing Scan Time
The time required to make a single scan varies from 0.1
ms up to 10 ms depending on its CPU processing speed
and the length of the user program.
The user of remote I/O subsystem increase the scan
time as a results of having to transmit the I/O update
the remote subsystem.
Monitoring of the control program also adds overhead
time to the scan, as the controller’s CPU has to send
the status of coils and contact to the CRT or other
monitoring devices.
Conventional Control Panel and its
difficulties
Beginning of industrial revolution, in 1960 & 1970
automated machines were controlled by
electromechanical relays.
Relays were all hardwired together inside control
panel.
Conventional relay control panel is very inflexible.
Conventional Control Panel and its
difficulties cont..
Disadvantage of Conventional
Control Panel
There is to much wiring work in the panel.
Modification can be quite difficult.
Troubleshooting can be quite troublesome as you may
require a skillful person.
Power consumption can be quite high as the coil
consumer power.
Machine downtime is usually long when problem
occur, as it take long time to trouble shooting.
Difficult to do modification and maintenance.
PLC Control Panel and Advantages
PLC Control Panel and Advantages
cont..
The wiring of the system usually reduces by 80%.
Power consumption greatly reduced as PLC consume
much less power.
The PLC self-diagnostic function enable easy and fast
troubleshooting of the system.
Modification of the control sequence or application
can easily be done by programming through the
console or computer software without changing of I/O
wiring.
PLC Control Panel and Advantages
cont..
In PLC system, spare parts for relays and hardware
timers are greatly reduced as compared to
conventional control panel.
The machine cycle time is improve due to the speed of
PLC operation is in millisecond.
It cost much less compared to conventional system in
situation when the number of I/Os is very large and
control function are complex.
The reliability is high an easily maintenance.
WireITEM
Logic Vs PLCLOGIC
WIRED PLC
Controlled Device Specific Purpose General Purpose
(Hardware)
Control Scale Small and Medium Medium and large
©snaim 2008
PLC Application
There are many application :
1. Material Handling
2. Conveyor system
3. Packaging Machine
4. Pump Control
5. Water Treatment
6. Chemical Processing Plant
7. Printing Industries
8. Traffic Light system
9. Etc…
A relay
An electrical operated switch.
Many relays use electromagnet to operate a switching
mechanism .
A relay cont…
2.0 PLC Hardware Design
OMRONCQM1H SERIES
©snaim 2008
PLC Configuration
Rack Mini
Micro
©snaim 2008
Shoe Box
PLC Configuration
The configuration of PLC refers to the packaging of the components.
©snaim 2008
Sizing of PLC
©snaim 2008
Basic PLC Schema
CPU
Power Supply
Memory
Input Blocks
Output Blocks
Communications
Expansion
Connections
©snaim 2008
Introduction to OMRON PLC
Features
Application
CQM1H Features
CQM1H Features cont…
CQM1H Features cont…
What CQM1H can do?
What CQM1H can do? Cont..
What CQM1H can do? Cont..
What CQM1H can do? Cont..
What CQM1H can do? Cont..
What CQM1H can do? Cont..
PLC hardware
component OMRON CQM1H PLC
design
2.1.1 Power supply
unit
INNER INNER
BOARD BOARD
SLOT 1 SLOT 2
RS-232
PORT
CPU units
Power supply units
Memory cassette (optional)
Inner Boards
Input Units
Output Units
I/O Expansion units and Dedicated Units
CPU Unit Overview
Basic Specification & Maximum Units
Power Supply Units
1
CPU Unit description cont..
2
Memory I/O allocation
Memory I/O allocation cont…
I/O Specification
I/O Specification cont…
I/O Specification cont…
I/O Specification cont…
I/O Specification cont…
I/O Specification cont…
Basic PLC Progrmming
Outline
Power Rails
Ladder Diagram
Binary Input Devices
Timer On/off
o
Anatomy of Ladder Diagram
Input instructions are entered on the left
Output instructions are entered on the right
The power rails simulate the power supply lines
L1 and L2 for AC circuits and +24V and
ground for DC circuits
Most PLCs allow more than one output per rung
The processor (or “controller”) scans ladder
rungs from top-to-bottom and from left-to-right.
The basic sequence is altered whenever
jump or subroutine instructions are
executed.
Basic Ladder Logic Symbols
Logic Functions
OR and OR Not
Examples of Mneumonic Codes
©snaim 2008
CX Programmer: Overview
CX Programmer: Overview
CX Programmer: Input/Output
Opening New File
Configure PLC Devices
CX Programmer: Programming
PLC Mode
Exercise
©nikmzakmal 2010
Timer
©nikmzakmal 2010
Timer
Operand Data Areas:
©nikmzakmal 2010
Basic Timer: exercise 1
Start
Push Start
button
No
Timer
5 Sec?
Yes
Yellow
Light ON
End
Basic Timer: exercise 2
Start A
No Green Light
Timer ON
5 Sec?
Select Auto
Yes
Mode
Yellow
Light ON Yellow &
Green Light
OFF
A
End
Flicker: exercise 3
Start A
No Green Light
Timer OFF
1 Sec?
Push Start No
Timer
button 1 Sec?
No Yes
Timer Green Light
3 Sec? OFF
Continuous
Yes
Blinking
Green
Light ON Push Stop
A System
RESET
End
Timer Application
Lab sheet 2 : Exercise 5
© nikmzakmal 2010
Counter
Ladder diagram
©nikmzakmal 2010
Counter
Operand Data Areas:
©nikmzakmal 2010
Counter
©nikmzakmal 2010
Basic Counter: exercise 6
Start
Push Start
Button
No
Counter
5X?
Yes
Green Light
ON
Push Stop
Button
Green Light
OFF
End
Time Delayed 60 sec: exercise 7
Start A
No
Timer 6 Push Stop
Sec?
Yes System
No RESET
Counter
10 X? End
Yes
A
Counter Application
Input Input Devices
Assignment
Lab Sheet : Exercise 8
0000 Start PB
0001 Stop PB
©nikmzakmal 2010
Counter Application cont…
Ladder diagram
©nikmzakmal 2010
Extra exercise…
MAN MODE
NG PART ON &
RUN PART OFF
OK PART
BLINKING
STOP PB
AUTO MODE
NO
IF STOP PB
RUN PART
5x
BLINKING &
OK PART OFF
YES
©nikmzakmal 2010
INTERMEDIATE PROGRAM
•DIFU & DIFD
•INC & DEC
•Shift Register
•Interlocking
©nikmzakmal 2010
DIFU
©nikmzkmal 2010
DIFU vs DIFD
©nikmzakmal 2008
Basic DIFU:
exercise 1
Start
Push Start
button
Yellow
Light ON
End
©nikmzakmal 2008
Basic DIFD: exercise 2
Start
Select
Manual
mode
RedLight
ON
End
©nikmzakmal 2008
Combination
of DIFU/DIFD: exercise 3
Green Light
ON
©nikmzakmal 2010
Move
©nikmzakmal 2010
MOVE
Operand Data Areas:
©nikmzakmal 2010
Compares (CMP)
©nikmzakmal 2010
CMP
Operand Data Areas:
©nikmzakmal 2010
Basic Move & CMP :
exercise 4
Start
Push Start
button
Yellow
Light ON
End
©nikmzakmal 2010
Move & CMP:
exercise 5
Start
Push Start
Button
No
Counter
10 X ?
Yes
Green
Light ON
Push Stop
Button
Green Light
OFF
End
INCREMENT & DECREMENT
Purpose: Purpose:
Increments Wd, without affecting Carry DEC(39) decrements Wd, without affecting CY.
(CY). DEC(39) works the same way as INC(38) except
that it decrements the value instead of
incrementing it.
Operand Data Areas:
Wd : Increment Words IO,AR,DM,HR,LR
For INC(38) and DEC(39) the source and result words are the same. That is, the
contents of the source word is overwritten with the instruction result.
©nikmzakmal 2008
Basic INC & DEC :
exercise 7
Start
Compare #5 to
Select Manual DM00
Mode
Move data #0 to If
DM00 Equal=Yellow,
Greater=Green
Select Auto
, Less=Red
Mode
Red Light ON
End
Push Start Pb or
Stop PB
©nikmzakmal 2010
SHIFT REGISTER
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 01 0 1
x2 x1
Push
Start
PB
Auto/Manual 1
I
SFT
Select Auto
Start
P 200 ST: Start Word Mode Start set
I=‘1’
Stop 200 E : End word
R
Basic Shift Register :
exercise 8
Start
Push Start Button
Select Auto
Mode
©nikmzakmal 2010
Basic Shift Register :
exercise 9
Start A
Push Start Button Green Light ON
Select Auto
Push Start Button
Mode
Green Light ON Push Start Button Push Start Button All indicator Off
A Push Start
Yellow Light ON
Button
©nikmzakmal 2010
Basic Shift Register cont..: exercise 9
Interlocking (IL and ILC)
©nikmzakmal 2010
Interlocking (IL and ILC)
©nikmzakmal 2010
BEE 2931-121311