Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
KARMAVEER
BHAURAO PATIL
POLYTECHNIC,
SATARA
PLC Hardware &
Programming
Department Of Electronics And
Telecommunication Engineering
Control System and
PLC
EJ5G Subject Code: 17536
Third Year Entc
Amit Nevase
Lecturer,
Department of Electronics & Telecommunication
Engineering,
Karmaveer Bhaurao Patil Polytechnic, Satara
Objectives
The student will be able to:
criteria.
parts of PLC.
PAPER
TH TU PR TH PR OR TW TOTAL
HRS
Introduction to Stability
(4 Marks)
Definition of Stability, Analysis of stable, unstable,
critically stable and conditionally stable
Relative Stability
Root locations in S-plane for stable and unstable
system
Control Actions
(8 Marks)
Discontinuous Mode : On-Off Controller, Equation,
Neutral Zone
Continuous modes: Proportional Controller (offset,
proportional band), Integral Controllers, Derivative
Controllers output equations, corresponding
Laplace transforms, Response
3/12/17 Amit Nevase
of P, I, D controllers8
Module V PLC Fundamentals
Introduction
(4 Marks)
Evolution of PLC in automation, need and benefits of
PLC in automation
Block Diagram of PLC
(12 Marks)
Block diagram and description of different parts of
PLC -
CPU Function, Scanning cycle, speed of execution,
Power supply function,
Memory function , organization of ROM and RAM
Input modules function, different input devices
used with PLC and their uses
Output modules function,
3/12/17 Amit Nevase different output devices
9
Module VI PLC Hardware and
Programming
PLC Hardware
(8 Marks)
Discrete Input Modules Block diagram, typical wiring details,
Specifications of AC input modules and DC input modules.
Sinking and sourcing concept in DC input modules
Discrete Output Modules Block diagram, typical wiring details,
Specifications of AC output modules and DC output modules.
Analog Input and output modules : Block diagram, typical wiring
details and specifications
PLC Programming
(16 Marks)
I/O Addressing in PLC
PLC Instruction Set : Relay instructions, timer instructions,
counter instructions, data handling instructions, logical and
comparison instructions
PLC programming examples based on above instruction using
Ladder programming
3/12/17 Amit Nevase 10
Module-VI
PLC Hardware &
Programming
Specific Objectives
of PLC.
PLC system.
or DC.
48 VAC 48 V dc
Input Input
Modul Modul
e e
24 Volts
Common Common
230 Volts
Common Common
120 Volts
LED
+
Input Power Noise & Threshold Optical Input
SignalConversion Debounce Detector Isolation Logic CPU Status
- Filter Table
LED
OFF state.
Input
Device
+ +
Input Input
Module Module
- -
Input
Device
(a) (b)
Output Output
Module Module
- +
Output Output
Load Load
(c) (d)
230 V dc
24 V dc, sink
24 V dc, source
3/12/17 Amit Nevase 30
Typical Wiring Details of Output
Module
Output
Module
Output 2
Output 3
Output 4
Output 5
Load
120 VAC
Signal From
CPU operates switch COM
User supplied
Power for
Field devices
Fuse
Signal Latch Triac Controlled
Optical Filter
From Logic Switching Device
Isolation
CPU Circuit Circuit
LED
ON or OFF
Signal from
Output status
table
Fuse
Relay
Switchi
ng
Device
3/12/17 Amit Nevase 36
Block diagram of DC output module
Power Fuse
Signal Latch Transistor Controlled
Optical Filter
From Logic Switching Device
Isolation
CPU Circuit Circuit
LED
Number of Outputs 16
ON= 0.1 ms
Maximum Signal Delay
OFF= 1.0 ms
User
Connection
+
Input
A/D Opto Micro Backplan
Convert Isolation Process e CPU Status
er or Interface Table
VLSI
User
Connection
+
COM
I=Input Module
O=Output Number
X :X X X / X
X Terminal
Number
Rack
Number
END End
Rung
The top rung is read from left to right.
Then the second rung down is read from left to right and so
on.
When the PLC is in its run mode, it goes through the entire
ladder program to the end, the end rung of the program
being clearly denoted,
3/12/17 and then promptly 50
Amit Nevase resumes at the
Scanning Ladder Diagram
Sr. Instructi
Description
No. on
I:012
04
Instruction is TRUE
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 I:012
I:012
04
Instruction is FALSE
3/12/17 Amit Nevase 61
Examine If Closed (XIC) Instruction
I:012
04
Instruction is TRUE
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 I:012
I:012
04
Instruction is FALSE
3/12/17 Amit Nevase 63
Examine If Open (XIO) Instructions
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 O:013
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 1 I:012
01 04 01
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 O:013
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 1 I:012
01 04 01
Instruct
Name Symbol Description
ion
OTL sets the bit to
"1" when the rung
becomes true and
Output L retains its state
OTL
Latch when the rung
loses continuity or
a power cycle
occurs.
OTU resets the bit
Output U to "0" when the
OTU
Unlatch rung becomes true
and retains it.
3/12/17 Amit Nevase 68
Module VI PLC Hardware and
Programming
PLC Hardware
(8 Marks)
Discrete Input Modules Block diagram, typical wiring details,
Specifications of AC input modules and DC input modules.
Sinking and sourcing concept in DC input modules
Discrete Output Modules Block diagram, typical wiring details,
Specifications of AC output modules and DC output modules.
Analog Input and output modules : Block diagram, typical wiring
details and specifications
PLC Programming
(16 Marks)
I/O Addressing in PLC
PLC Instruction Set : Relay instructions, Timer instructions,
counter instructions, data handling instructions, logical and
comparison instructions
PLC programming examples based on above instruction using
Ladder programming
3/12/17 Amit Nevase 69
Timer Instructions
Sr. Instructi
Name Description
No. on
Counts time-based intervals
1 TON On Delay Timer when the instruction is true.
Counts time-based intervals
2 TOF Off Delay Timer when the instruction is
false.
Counts time-based intervals
when the instruction is true
and retains the
3 RTO Retentive Timer accumulated value when
the instruction goes false or
when power cycle occurs.
Resets a retentive timers
4 RES Reset accumulated value to zero.
True
TON
TIMER ON DELAY
EN
Timer T4:0
Time Base 1:0 DN
Preset 15
Accumulated 0
Timer Element
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word
EN TT DN Internal Use 0
Done (DN) bit The done bit changes state whenever the
True
Timer Element
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word
EN TT DN Internal Use 0
Done (DN) bit The done bit changes state whenever the
PB1 RTO
RETENTIVE TIMER ON
EN
Timer T4:0
Time Base 1:0 DN
Preset 7
Accumulated 0
T4:2 PL
DN
---------------------------------------------------------------------------------
--------------------------------------------------------------------------------
7
6
5
4
Amit Nevase
--------------------------------------------------------------------------------
RTO Timer Sequence
--------------------------------------------------------------------------------
3
2
When rung condition goes false
1
Accumulated Value retained
0
--------------------------------------------------------------------------------
True
False
Off
Off
Off
On
On
On
Accumulated
PL Output
Timer T4:2
Time Input
Timer T4:2
Enable Bit
Done Bit
3/12/17
Value
RES Reset Instruction
Reset T4:2
RES
Sr. Instructi
Name Description
No. on
Increments the accumulated
value at each false-to-true
1 CTU Up counter transition and retains the
accumulated value when an
off/on power cycle occurs.
Decrements the accumulated
value at each false-to-true
2 CTD Down counter transition and retains the
accumulated value when an
on/off power cycle occurs.
High Speed Counts high-speed pulses from
3 HSC
Counter a high-speed input.
Resets a counters
4 RES Reset accumulated value to zero.
Counter
Value
+4
ON
Accumulated Value= preset = output
OFF
C5:0/CU C5:0/OV
Counter Enable Bit Overflow Status Bit
C5:0/DN C5:0
Counter Reset
RES
Counter Done Bit Instruction
--------------------------------------------------------------------------------
---------------------------------------------------------------------------------
PRE Value =7
7
--------------------------------------------------------------------------------
7
CTU Up Counter Sequence
6
6
5
Amit Nevase
5
4
4
3
3
2
2
TRUE 1
--------------------------------------------------------------------------------
FALSE
1
Accumulated
Count Up
3/12/17
DN Bit of
Counter
Reset
Input
Value
CTU UP Counter Instruction
Counter Number This number must come from the counter
this counter should not be used for any other count-up counter.
accumulated value to 0.
1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
C5:N Bit 14
5 3 2 1 0 9 8 7 6 5 4 3 2 1 0
Wor
C5:N: D O U
d CU CD
N V N
UA INTERNAL USE (not addressable)
0
0
Wor
C5:N:
d PRESET VALUE
1
1
Wor
C5:N:
d ACCUMULATED VALUE
2
2
Counter
Value
-5
ON
Accumulated Value= Preset = output
OFF
C5:0/CD C5:0/UN
Counter Enable Bit Underflow Status B
C5:0/DN C5:0
Counter Reset
RES
Counter Done Bit Instruction
--------------------------------------------------------------------------------
---------------------------------------------------------------------------------
CTD Down Counter Sequence
PRE Value
7
--------------------------------------------------------------------------------
1
6
2
5
Amit Nevase
3
4
4
3
5
2
6
TRUE 1
--------------------------------------------------------------------------------
7
FALSE
Count Down
Accumulated
3/12/17
DN Bit of
Counter
Reset
Input
Value
CTD Down Counter Instruction
Counter Number This number must come from the counter
this counter should not be used for any other count-up counter.
accumulated value to 0.
1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
C5:N Bit 14
5 3 2 1 0 9 8 7 6 5 4 3 2 1 0
Wor
C5:N: D O U
d CU CD
N V N
UA INTERNAL USE (not addressable)
0
0
Wor
C5:N:
d PRESET VALUE
1
1
Wor
C5:N:
d ACCUMULATED VALUE
2
2
Sr. Instructi
Name Description
No. on
MOV
MOVE
Source N7:30
Destination N7:20
PB1 MOV
MOVE N7:30
Source N7:30
Destination N7:20
N7:20
When the rung is true, input switch A closed, the value stored at the
source address, N7:30, is copied into the destination address, N7:20.
When the rung goes false, input switch A opened, the destination
address will retain the value unless it is changed elsewhere in the
program.
The source value remains unchanged and no data conversion occurs.
1 0 1 0 1 0 1 0 1 0 1 0 1 Source
0 B3:0
1 1 1 1 1 1 0 0 0 0 1 1 1 Mask
1 FF0F
1 0 1 0 1 0 1 1 0 0 1 0 1Destination
0 B3:4 after instruction
went true
3/12/17 Amit Nevase 107
Module VI PLC Hardware and
Programming
PLC Hardware
(8 Marks)
Discrete Input Modules Block diagram, typical wiring details,
Specifications of AC input modules and DC input modules.
Sinking and sourcing concept in DC input modules
Discrete Output Modules Block diagram, typical wiring details,
Specifications of AC output modules and DC output modules.
Analog Input and output modules : Block diagram, typical wiring
details and specifications
PLC Programming
(16 Marks)
I/O Addressing in PLC
PLC Instruction Set : Relay instructions, timer instructions,
counter instructions, data handling instructions, Logical and
comparison instructions
PLC programming examples based on above instruction using
Ladder programming
3/12/17 Amit Nevase 108
Logical Instructions
Sr. Instructi
Name Description
No. on
Perform Bitwise
1 AND Logical AND
AND operation
Perform Bitwise OR
2 OR Logical OR
operation
Perform Bitwise
3 XOR Logical XOR
XOR operation
Perform inversion of
4 NOT Inversion
given source
B3:0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0
B3:1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
B3:2 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0
B3:0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0
B3:1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
B3:2 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
B3:0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0
B3:1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
B3:2 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0
Source B3:0
Destination B3:1
The NOT instruction is used to perform the NOT logic
on the value in the source, bit by bit. The output logic
value returned in the destination is the one's
complement or opposite of the value in the source.
B3:0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0
B3:1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1
CLEAR
Destination B3:1
B3:1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Source B N7:40
Source B 25
Source B 200
Source B 350
Source B N7:12
Source B 457
Applied
Voltage
(a)
Input
A
Input Input Output
Input
A B
B
Output
(b)
(c)
Applied
Voltage (c)
(a)
Input
Output A
Input
A Input
B
Input
B
Output
(b) (d)
3/12/17 Amit Nevase 127
Ladder Diagram for NOT Gate
A
Applied
Voltage
(a)
Input
A
Input
Output
A
Output
(b)
(c)
3/12/17 Amit Nevase 128
Ladder Diagram for NAND Gate
Output Input
Input A
A
Input
Input B
B
Output
(a) (b)
Input
A
Output Input
Input Input
A B B
Output
(a) (b)
Input
A
Output Input
Input Input
A B B
Output
Input Input
A B
(b)
(a)
Input
A
Output Input
Input Input
A B B
Output
Input Input
A B
(b)
(a)
Output
A
Output B
Output
B
Input
A
Input
Output A
A
Input
B
Output B Output
A
Input B Output
B
A
Y
B C
A C Y
C
D
A C Y
B D
A
Y
B
C
A B Y
C
D
A B Y
C D
B
Y
A
A B Y
A
Y
B
A C Y
A B C Y
C D A Y
A B Y
A C D Y
A B C Y
D E F
A B C Y
A B C Y
A B C
A B
A B
1 1
0 0
SW Lamp
0 1
1 0
SW Lamp
0 1 0 1 0 0
SW1 SW2 Lamp 2
1 0 0 0 1 0
1 1 0 0 0 1
SW1 SW2 Lamp 3
TOF
EN
TIMER OFF DELAY
Timer T4:2
Time Base 1:0
Example 21 Preset 10 DN
Accumulated 0
TOF
EN
TIMER OFF DELAY
Timer T4:3
Time Base 1:0
Preset 15 DN
Accumulated 0
T4:1/DN M1
T4:2/DN M2
T4:3/DN M3
3/12/17 Amit Nevase 156
Example 22
TOF
TIMER OFF DELAY EN
Timer T4:1
Time Base 1:0
O:0/0 Preset 10 DN
Accumulated 0
T4:1/DN M2
O:0/1
Example 22
Exit SW CTD
COUNT DOWN COUNTER CD
Counter C5:2
I:0/1 Preset 150
DN
Accumulated 0
C5:1/DN
Lot Full Light
O:0/0
Reset C5:1
RES
Example 23
O:0/0
I:0/0 I:0/1
TON
TIMER ON DELAY EN
Timer T4:1
Time Base 1:0
O:0/0 Preset 20 DN
Accumulated 0
T4:1/DN
Example 24 M2
O:0/1
T4:1/DN TON
TIMER ON DELAY EN
Timer T4:2
Time Base 1:0
Preset 20 DN
Accumulated 0
T4:2/DN M3
O:0/0
I:0/0 I:0/1
T4:2/DN M2
Example 25
TON
TIMER ON DELAY EN
Timer T4:1
Time Base 1:0
O:0/0 Preset 10 DN
Accumulated 0
T4:1/DN TON
TIMER ON DELAY EN
Timer T4:2
Time Base 1:0
Preset 15 DN
Accumulated 0
O:0/0
I:0/0 I:0/1
TON
TIMER ON DELAY EN
Timer T4:1
Time Base 1:0
O:0/0 Preset 10 DN
Accumulated 0
T4:1/DN T4:2/DN
M2
O:0/1
TOF
TIMER OFF DELAY EN
Timer T4:2
Time Base 1:0
O:0/0 Preset 15 DN
Accumulated 0
Example 26
3/12/17 Amit Nevase 166
Example 27
Draw Ladder diagram for 3 motors operation,
O:0/0
I:0/0 I:0/1
TON
TIMER ON DELAY EN
Timer T4:1
Time Base 1:0
O:0/0 Preset 300 DN
Accumulated 0
T4:1/DN T4:2/DN
M2
Example 27 O:0/1
TON
TIMER ON DELAY EN
Timer T4:2
Time Base 1:0
O:0/1 Preset 600 DN
Accumulated 0
T4:2/DN Stop M3
Introduction to
Programmable Logic
Controllers Gary Dunning
Programmable Logic
Controllers Jhon
Hackworth, Federic
Hackworth
3/12/17 Amit Nevase 169
Online Tutorials
https://
www.courses.psu.ed
u/e_met/e_met430_j
ar14/cgroup.html