Industrial Control & Automation Training Course Part 2-2022
Industrial Control & Automation Training Course Part 2-2022
& Automation
Part 2: Programmable Logic Control
Amman - 2022
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 1
Hardware components used in Programmable Automation
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 2
Siemens SIMATIC S7 Family
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 3
Performance Grades of SIMATIC PLCs
ET-200SP
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 4
Siemens SIMATIC S7-1200 PLC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 5
SIMATIC S7-1200: Installation & Mounting Positions
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 6
SIMATIC S7-1200 Modules
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 7
Siemens SIMATIC S7-1200 PLC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 8
Siemens SIMATIC S7-1200 PLC – CPU1212C
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 9
TIA Portal V16.0/V17.0 Software Package
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 10
TIA Portal Basic & Professional
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 11
Portal View & Project View
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 12
Project View
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 13
Menu Bar & Toolbar
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 14
Project Tree: 1st level
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 15
Project Tree: 2nd level
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 16
Connection to PLC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 17
Manual PC Ethernet Settings
192.168.0.100
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 18
Online Access
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 19
Memory Concept & Memory Reset
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 20
Add New Device: Hardware Configuration
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 21
Inserting / Deleting H.W. Modules
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 22
Compiling and Downloading
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 23
Downloading to CPU
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 24
Addresses & Tags
%IB1
%I1.5 %Q0.2
%M25.4 %M26.4
{Size}
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 25
Register Size, Data Type & Address
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 26
Process Image (Input / Output Tables)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 27
PLC Tags
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 28
PLC Tags
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 29
Symbolic & Absolute Addressing
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 30
Watch Tables
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 31
Define Tag while programming
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 32
Program Structure
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 33
Types of Program Blocks (Functions/ Subroutines)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 34
Cyclic Program Execution
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 35
Network / Rung / Segment
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 36
Program Editing
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 37
Block Call
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 38
Compile, Save & Download
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 39
Monitor program while running
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 40
Physical & Logical status
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 41
Normally Open & Normally Closed Signals
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 42
Data Types
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 43
Elementary Data Types
U- Unsigned
S-Short
D-Double
L-Long
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 44
Data Blocks
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 45
Binary Logic Operations: AND, OR
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 46
Binary Logic Operations: XOR
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 47
Binary Logic Operations: ASSIGNEMENT, SET, RESET, NOT
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 48
Binary Logic Operations: FLIP FLOP
FBD
LAD
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 49
Binary Logic Operations: Edge Trigger
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 50
Binary Logic Operations: RLO Edge Evaluation
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 51
Binary Logic Operations: SET/ RESET Bit Field (Range of Bits)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 52
Binary Logic Operations: JUMP/ LABEL
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 53
Digital Operations: DATA Types
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 54
Digital Operations: TON – Timer On-Delay
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 55
Digital Operations: Counters
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 56
Digital Operations: Comparison
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 57
Digital Operations: MOVE
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 58
Digital Operations: MOVE Block
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 59
Digital Operations: IN_RANGE/ OUT_RANGE
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 60
Digital Operations: Date & Time of Day
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 61
Exercises
Exercise No: 1.a
Objective: Associate Input(s) to Output(s)
Language Elements: Contacts & Coils
Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 62
Exercises
Exercise No: 1.a: Single Output
Start_PB: I0.0 Green_LED: Q0.0
-----| |----------------------------------------------------------( )
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 63
Exercises
Exercise No: 2.a
Objective: Latch, Self Hold or Sealing Circuit
Language Elements: Contacts & Coils
Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 64
Exercises
Exercise No: 2.a: Latch
Start_PB: I0.0 Green_LED: Q0.0
-----| |------------------------------------------------------------( )
Green_LED: Q0.0
-----| |--------------------
Exercise No: 2.b: Unlatch using physically NO Stop PB
Start_PB: I0.0 Stop_PB: I0.1 Green_LED: Q0.0
-----| |--------------------------| / |-----------------------------( )
Green_LED: Q0.0
-----| |--------------------
Exercise No: 2.c: Unlatch using physically NC Stop PB
Start_PB: I0.0 Stop_PB: I0.1 Green_LED: Q0.0
-----| |--------------------------| |-----------------------------( )
Green_LED: Q0.0
-----| |--------------------
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 65
Exercises
Exercise No: 3.a
Objective: On Delay Timer
Language Elements: Contacts, Coils & Box (Block)
Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 66
Exercises
Exercise No: 3.a: Delayed Start: TON without latch
T1
Exercise No: 3.b: Delayed Start: TON with latch using Memory bit
Start_PB: I0.0 Stop_PB: I0.1 M0.0
-----| |--------------------------| |-----------------------------( )
M0.0
-----| |-------------------- T1
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 67
Exercises
Exercise No: 3.c: Run Load for Certain Time: TON with latch using Memory bit
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 68
Exercises
Exercise No: 3.d: Run Load for Certain Time: TON with latch using Memory
bit (reduced circuit)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 69
Exercises
Exercise No: 4.a
Objective: Time Sequencer of (n) loads ..e.g. 3 loads
Language Elements: Contacts, Coils & Box (Block)
Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 70
Exercises
Exercise No: 4.a: Time Sequencer using separate timer for each load
Start_PB: I0.0 M0.0 Green_LED: Q0.0
-----| |--------------------------| / |--------------------------------( )
T1
M0.0
Green_LED: Q0.0
------( )
-----| |--------------------
M0.0 M0.1 Red_LED: Q0.1
-----| |--------------------------| / |--------------------------------( )
T2
M0.1
Red_LED: Q0.1
------( )
-----| |--------------------
M0.1 M0.2 Blue_LED: Q0.2
-----| |--------------------------| / |--------------------------------( )
T3
M0.2
Blue_LED: Q0.2
------( )
-----| |--------------------
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 71
Exercises
Exercise No: 4.b: Time Sequencer using one timer for all load
Start_PB: I0.0 M0.1 M0.0
-----| |--------------------------| / |--------------------------------( )
T1
M0.1
M0.0
------( )
-----| |--------------------
T1 T1 Q0.0
-----| > |-----------------------| < |--------------------------------( )
0 3
T1 T1 Q0.1
-----| > |-----------------------| < |--------------------------------( )
3 5
T1 T1 Q0.2
-----| > |-----------------------| < |--------------------------------( )
5 9
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 72
Exercises
Exercise No: 5
Objective: Traffic Light Control
Language Elements: Contacts, Coils
& Box (Block)
Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 73
Exercises No. 5a: Traffic Light: Time Sequencer using one timer
Start_PB: I0.0 M0.1 M0.0
-----| |-----------------| / |-------------------------( )
T1
M0.0 M0.1
-----| |---- ------( )
T1 T1 RED: Q0.0
-----| > |--------------| < |-------------------------( )
0 2
T1 T1 AMBER: Q0.1
-----| > |--------------| < |-------------------------( )
2 3
-----| > |--------------| < |----
6 7
T1 T1 GREEN: Q0.2
-----| > |--------------| < |-------------------------( )
3 6
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 74
Exercises No. 5b: Traffic Light: Flashing Signal
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 75
Exercises No. 5b: Traffic Light: Flashing Signal
Start Signal M0.1 M0.0
-----| |-----------------| / |-------------------------( )
T1
M0.0 M0.1
-----| |---- ------( )
T1 T1 RED: Q0.0
-----| > |--------------| < |-------------------------( )
0 2
T1 T1 AMBER: Q0.1
-----| > |--------------| < |-------------------------( )
2 3
-----| > |--------------| < |----
9 10
T1 T1 GREEN: Q0.2
-----| > |--------------| < |------------------------( )
3 6 Flasher
-----| > |--------------| < |----| |------
6 9
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 76
Ladder Logic Elements
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 77
Transforming a Circuit Diagram into Ladder Logic Diagram
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 78
Transforming a Circuit Diagram into Ladder Logic Diagram
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 79
Exercise No. 6 : Car Park
Car Exit
Counter Actuator
Q0.1
Exit
Exit Sensor 2
Sensor 1 I0.3
I0.2
Exit
Car Park
Full
Indicator
Lamp
Entrance
Q0.2
Sensor 2
I0.1
Entrance
Entrance Entrance
Sensor 1 Actuator
I0.0 Q0.0
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 80
Exercise No. 7 : Mixing Tank
(1) Process Diagram
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 81
Exercise No. 7 : Mixing Tank
(2) Sequence Of Operation
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 82
Exercise No. 7 : Mixing Tank
(3) Tag List, Symbol Table, Variable Table
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 83
Exercise No. 7 : Mixing Tank
(4) PLC Program
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 84
Exercise No. 7 : Mixing Tank
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 85
Exercise No. 7 : Mixing Tank
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 86
Exercise No. 7 : Mixing Tank
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 87
Exercise No. 7 : Mixing Tank
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 88
Analog Value Processing in PLC
A/D Convertor
D/A Convertor
Resolution
Conversion rate
1
0 - 10VDC
4 - 20mA
2 0 - 27648
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 89
Common Ranges of Analog Signals
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 90
Analog Sensor Connection to CPU Integrated Analog Inputs
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 91
Analog Values
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 92
Analog Values
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 93
Analog Value Scaling
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 94
Analog Value Scaling
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 95
Analog Value Processing
Analog Input Handling:
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 96
Analog Value Processing
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 97
Exercise No.1 : Analog Signal Processing
Objective: Analog Input Reading & Scaling to 50m
Language Elements: Conversion Operations
Equipment: -PLC: S7-1200, CPU 1212C AC/DC/RLY
-Input: IW64: Potentiometer
230VAC
To 24VDC
0 – 10VDC
24VDC To
Power 10VDC
Supply
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 98
HMI Selection
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 99
HMI Selection
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 100
HMI: Wizard
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 101
HMI: Manual Configuration of IP
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 102
HMI: Manual Networking to PLC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 103
HMI: Manual Connection to PLC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 104
HMI Root Screen
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 105
HMI Objects
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 106
HMI Major Functions
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 107
Exercise : HMI
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 108
Design of the KTP700 Basic for PROFINET
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 109
Settings on Touch Panel KTP700 Basic/Start Center
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 110
Setting the transfer properties and assigning the IP address
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 111
WinCC user interface
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 112
Planning the screen structure
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 113
Program Structure
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 114
Types of Program Blocks (Functions/ Subroutines)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 115
Reusable Functions: Tag Types
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 116
Exercise No.1: Reusable Function for Analog Scaling
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 117
Exercise No.2: Reusable Function for Alarms
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 118
Reusable Functions: Parameter Assignable Block
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 119
Reusable Functions: Declaration of Formal Parameters
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 120
Reusable Functions: Editing Parameter Assignable Block
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 121
Reusable Functions: Calling Parameter Assignable Block
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 122
Reusable Functions: Using FB and Multiple Instances DB
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 123
Reusable Functions: Block Interface for FB
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 124
VSD
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 125
VSD ﻣﻐ ِﯾر ﺳرﻋﺔ اﺳﺗﺎﺗﯾﻛﻲ
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 126
VSD: Functions & Applications
Variable frequency drives are used in diverse industrial applications:
for example:
• Pumping, ventilating and compressing
• Positioning, processing, moving and machining
These functions are used in many industry sectors:
• Food & beverage industry
• Automotive industry
• Heating, ventilating and air conditioning (HVAC)
• Water and wastewater industry
• Paper industry
• Oil & gas
• Chemical industry
• Logistics
• Wind turbines, hydroelectric power
and photovoltaic systems
• Marine
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 127
VSD: Types
Types of Industrial Motor Drive Systems:
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 128
VFD: Definition
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 129
VFD: Electrical Drive Chain
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 130
VFD: Building Blocks
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 131
VFD: Electrical Signal Manipulation
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 132
VFD: Power Circuit
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 133
VFD: Power Circuit
Contactor
ELCB/
RCCB
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 134
VFD: Additional External Components
A line reactor supports With a line filter, The sine-wave filter at the inverter
the overvoltage the inverter can output limits the voltage rate-of-rise
protection, smooths the achieve a and the peak voltages at the motor
harmonics in the line higher radio winding. The maximum permissible
supply and buffers interference length of motor feeder cables is
commutation dips. class. increased to 300 m.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 135
VFD: Principle of Operation
Principle of Operation of Variable Frequency
Drive (VFD):
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 136
VFD: Speed vs. Frequency relation
VFD
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 137
VFD: Components
Operator
Panel Power
Module
Control
Module
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 138
VFD: Motor Name Plate
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 139
VFD: Drive Control Sources
1. Operator Panel
2. Terminals
3. Communication
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 140
VFD: Drive Control Sources: Operator Panel
LCD DISPLAY
INCREASE
DECREASE
STOP
START
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 141
VFD: Drive Control Sources: Terminals: Push Button/Switch & Pot.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 142
VFD: Drive Control Sources: Terminals: PLC & HMI
HMI
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 143
VFD: Drive Connection to PLC through I/O’s
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 144
VFD: Parametrizing & Commissioning
Commissioning and Parameters Programming in VFD
• Commissioning is needed for the proper functioning of VFD.
• Advanced commissioning: Give the details of all the digital and analog inputs
and outputs:
• Digital inputs: Start command and Speed Selection command
• Digital Outputs: Status of Drive Running and Drive in Fault etc.
• Analog Inputs: Speed setpoint Input 1 and/or Speed Input 2
• Analog Outputs: Current and Frequency of Motor
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 145
VFD: PLC Program
NETWORK 1: Checking whether the VFD is ready to start. This signal will come when all
the conditions are healthy as well as safety and power feedbacks are active.
NETWORK 2: When start button is pressed, VFD Drive_DO bit will be set, if
Ready_to_Start and No Error will be there.
NETWORK 3: When stop button is pressed it will reset the Drive_DO bit.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 146
VFD: PLC Program
NETWORK 4: This logic is required for safety: as soon as Drive_DO bit is set and if for any reason the
VFD will not operate, then after predefined wait time, it will reset the Drive_DO bit and generate Error.
NETWORK 5: If the VFD is taking more current and gives overload error, then it will reset Drive_DO bit
and generate Error.
NETWORK 6: if you select speed input as a remote then it will activate Speed Selection bit resulting
Speed_DO present.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 147
VFD: HMI Program
Normal State: Running State:
Error State:
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 148
VFD: Drive Connection to PLC through Communication
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 149
VFD: PLC Control of Multiple Drives
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 150
VFD: Practical Exercise
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 151
VFD: Terminal Wiring Diagram
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 152
VFD: Power Connections
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 153
VFD: Control Connections: Analog Inputs
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 154
VFD: Control Connections: Digital Inputs/Outputs
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 155
VFD: Hardware Settings
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 156
VFD: Operator Panel
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 157
VFD: Example: Change Acceleration Time
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 158
VFD: Example: Change Maximum Frequency Limit
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 159
VFD: Example: Keypad/Display Control of Drive
Example 01: - Use the Up/Down Arrows to adjust speed
- Use the FWD/REV buttons to run the motor
- Use the STOP button to stop the motor
Parameters:
CD 10 = 0
CD 12 = 0
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 160
VFD: Example: Analog Pot. Control of Drive
Example 02 - Use the FWD/REV buttons to run the motor
- Use the STOP button to stop the motor
Parameters:
CD 10 = 1
CD 12 = 0
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 161
VFD: Example: Terminal Control of Drive
03 :
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 162
VFD: Example: PLC Control of Drive
04 :
S7-1200 PLC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 163
Encoder
Rotary Encoder Linear Encoder Tacho Generator
Digital device that produces electrical pulses Analog device that
based on mechanical rotational motion produces a voltage
proportional to speed.
Resolver
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 164
Encoder Function
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 165
Encoder Definition
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 166
Encoder Types
• Incremental Encoder
– Provides identical electronic pulses at each division of
shaft rotation.
– Used for position or speed/velocity measurements.
• Absolute Encoder
– Provides a unique electronic piece of information at
each division of shaft position.
– Used for position measurement.
• Resolver
– Provides sine wave and cosine wave to provide both
velocity and position feedback.
• Tacho generator
– Provides analog voltage proportional to speed.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 167
Encoder Classification
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 168
Encoder Types
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 169
Linear Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 170
Incremental Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 171
Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 172
Encoder Technologies
Sensing Technologies:
Magnetic (Magneto-resistive)
Tough and simple
Heavy Duty enough for Mills
No Optics (no glass breakage)
Limited to 2048 PPR
Optical
Higher Resolution (up to 10,000 PPR)
Better signal quality
Shafted and Hollow shaft designs
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 173
Rotary Encoder
Incremental Encoder Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 174
Incremental Encoder
A
A
B
Encoder
B
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 175
Incremental Encoder
A
A
B
Encoder
B
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 176
Incremental Encoder
A marker pulse (reference, index or Z pulse) is a once per
revolution pulse that occurs at precisely the same
mechanical point in a 360º revolution of the encoder shaft.
Marker
Z
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 177
Incremental Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 178
Incremental Encoder Output
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 179
Incremental Encoder Signals
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 180
Incremental Encoder Interface
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 181
Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 182
Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 183
Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 184
Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 185
Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 186
Incremental vs. Absolute Encoder
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 187
PLC & Encoder -> HSC
For S7-1200 PLC V4.x why to use HSC:
Hardware consideration:
The default digital input filter setting is: 6.4 ms,
which limits the maximum counting rate to: 78 Hz.
You can change the filter settings to count higher or lower frequencies
depending on the design of your system.
Software Consideration:
In normal scan cycle PLC updates digital inputs once per cycle based on
a variable program speed; which is usually greater than 1 ms.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 188
PLC & Encoder -> Max. Frequency
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 189
PLC & Encoder –> Configuring the HSC
1. Configure HSC in
device configuration;
CPU properties
2. Configure Digital
Input Filters
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 190
PLC & Encoder -> Programming the HSC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 191
PLC & Encoder -> Programming the HSC
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 192
PLC & Encoder -> Programming the HSC
High
Speed Data Default
Counter Type Address
(HSC)
HSC 1 DInt ID 1000
HSC 2 DInt ID 1004
HSC 3 DInt ID 1008
HSC 4 DInt ID 1012
HSC 5 DInt ID 1016
HSC 6 DInt ID 1020
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 193
PID Control
is a feedback control
loop mechanism that is widely used
in industrial control systems and a
variety of other applications requiring
continuously modulated control.
An everyday example is the cruise control of a car
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 194
PID Control: Historical Development
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 195
Electronic Industrial PID Controllers (Process Controllers)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 196
Software (PLC) based Industrial PID Controllers
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 197
PID Control
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 199
PID Control:
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 200
PID Control: Principle
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 201
PID Control: Principle
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 202
PID Control: Mathematical
Another form:
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 203
PID Control
How Does PID Works?
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 204
PID Control: P Term
Term P is proportional to the current value of the SP−PV; error e(t):
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 206
PID Control: D Term
Term D is a best estimate of the future trend of the SP − PV error,
based on its current rate of change:
• The more rapid the change, the greater the controlling or damping
effect.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 207
PID Control: Effect of Kp
Oscillation: Unstable
Response of PV to step change of SP vs time, for three values of Kp (Ki and Kd held constant)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 208
PID Control: Effect of Ki
Eliminates
the
Faster residual
Response steady-
state error
Response of PV to step change of SP vs time, for three values of Ki (Kp and Kd held constant)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 209
PID Control: Effect of Kd
Improves
settling
time and
stability
Response of PV to step change of SP vs time, for three values of Kd (Kp and Ki held constant)
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 210
PID Control:
Setpoint
------
Actual Value
------
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 211
PID Control:
Steady-state
Parameter Rise time Overshoot Settling time Stability
error
No effect in Improve
Kd Minor change Decrease Decrease
theory if Kd small
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 212
PID Control:
Selective use of control terms:
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 214
PID Control: Tuning Methods
Choosing a tuning method
Method Advantages Disadvantages
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 215
PID Control: Manual Tuning
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 216
PID Control: Ziegler-Nichols Method
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 217
PID Control: S7-1200 PLC & Auto Tuning Method (1)
1. Call PID_Compact controller in a cyclic
interrupt by adding new Organization block
2. Select cyclic interrupt OB35
3. Set Cycle Time to 50 ms
4. From Technology Instructions
Drag & Drop the PID_Compact
5. Assign a name for the
instance data block
and apply it with OK.
6. Expand the view of the
block by clicking the
up arrow.
Interconnect this block as
shown in figure:
setpoint, actual value,
manipulated variable
and Reset input for
deactivating the controller
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 218
PID Control: S7-1200 PLC & Auto Tuning Method (2)
7. Open the configuration mask of the controller and set the parameters
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 219
PID Control: S7-1200 PLC & Auto Tuning Method (3)
8. Save, compile & download the project to the PLC
9. Activate the monitoring function
10. Start the PID commissioning & tuning by clicking the icon
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 220
PID Control: S7-1200 PLC & Auto Tuning Method (4)
11. Press Start for measurement & after that Start for Pre-tuning
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 221
PID Control: S7-1200 PLC & Auto Tuning Method (5)
12. After successful tuning parameters obtained can be saved to project
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 222
PID Control: Exercise: Training Kit
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 223
PID Control: Exercise: Create TAGs
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 224
PID Control: Exercise: Set PID Block Parameters as in Figure
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 226
PID Control: Exercise
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 227
PID Control: Exercise: Prepare data to show on HMI
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 228
PID Control: Exercise: HMI – I/O Field
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 229
PID Control: Exercise: HMI - Trend
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 230
Introduction to SCADA System
SCADA stands for:
Supervisory Control And Data Acquisition.
A SCADA system is an automation system which is used to gather
data from sensors and instruments located locally or at remote sites
and to transmit and display this data at a central site for control or
monitoring purposes.
The collected data is usually viewed on one or more SCADA Host
computers located at the central or master site.
A layer of equipment between the remote sensors/ instruments and the
central computer is used to digitize then packetize the sensor signals
so that they can be digitally transmitted via an industrial
communications protocol over long distances to the central site;
such devices include: RTU, PLC, IEDs, and Smart devices.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 231
Introduction to SCADA System: Major Components
Communication Infrastructures
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 232
Introduction to SCADA System: Typical SCADA HMI
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 233
Introduction to SCADA System: Architecture: Local/ Wired
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 234
Introduction to SCADA System: Architecture: Remote/ Wireless
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 235
Introduction to SCADA System: Major Functions
Data acquisition
Networked data communication
Data presentation
Control
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 236
Introduction to SCADA System: SCADA vs. HMI
HMI
• Small Scale
• Close to Process
• Usually stand alone
• Usually no Data Base
connectivity
SCADA HMI
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 237
SIMATIC WinCC (TIA Portal) Runtime Software
What is WinCC RT advanced?
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 238
SIMATIC WinCC Advanced: Practical
1.Create a new project in the TIA
Portal.
2.In the Project View you double-
click "Add new device" and select
the S7 controller. Click the "OK"
button to add the controller.
3.Through the Hardware Catalog
you add more components to the
Device View (like power supply, IO
modules).
4.Click the PROFINET interface of
the S7 controller and assign a
unique IP address and the
associated subnet mask under
"Properties > General > Ethernet
Addresses".
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 239
SIMATIC WinCC Advanced: Practical
6. In the Device View in the Hardware
Catalog you select the "IE General"
communication module and double-click to
add this to the PC station.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 240
SIMATIC WinCC Advanced: Practical
7. Click the "IE General" interface
just added. Under "Properties >
General > PROFINET interface [X1]
> Ethernet addresses" you enter the
IP address and subnet mask of the
Runtime station.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 241
SIMATIC WinCC Advanced: Practical
9. Click the HMI connection.
Under "Properties > General >
Access point" you enter the name
you are using in the PG/PC
interface of the Runtime station.
In this example we use the preset
name "S7ONLINE".
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 242