Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 1
Engineering Training for
Automation and Drives
Industrial Control
& Automation
‫واﻟﺗدرﯾب‬ ‫ﻟﻼﺳﺗﺷﺎرات‬ ‫اﻟﻌﻠوم‬ ‫ﻗﺎﻓﻠﺔ‬ ‫أﻛﺎدﯾﻣﯾﺔ‬
Science Caravan Academy
Eng. Rami El-Naqa
Amman - 2022
Part 2: Programmable Logic Control
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 2
Engineering Training for
Automation and Drives
Hardware components used in Programmable Automation
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 3
Engineering Training for
Automation and Drives
Siemens SIMATIC S7 Family
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 4
Engineering Training for
Automation and Drives
Performance Grades of SIMATIC PLCs
ET-200SP
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 5
Engineering Training for
Automation and Drives
Siemens SIMATIC S7-1200 PLC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 6
Engineering Training for
Automation and Drives
SIMATIC S7-1200: Installation & Mounting Positions
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 7
Engineering Training for
Automation and Drives
SIMATIC S7-1200 Modules
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 8
Engineering Training for
Automation and Drives
Siemens SIMATIC S7-1200 PLC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 9
Engineering Training for
Automation and Drives
Siemens SIMATIC S7-1200 PLC – CPU1212C
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 10
Engineering Training for
Automation and Drives
TIA Portal V16.0/V17.0 Software Package
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 11
Engineering Training for
Automation and Drives
TIA Portal Basic & Professional
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 12
Engineering Training for
Automation and Drives
Portal View & Project View
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 13
Engineering Training for
Automation and Drives
Project View
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 14
Engineering Training for
Automation and Drives
Menu Bar & Toolbar
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 15
Engineering Training for
Automation and Drives
Project Tree: 1st level
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 16
Engineering Training for
Automation and Drives
Project Tree: 2nd level
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 17
Engineering Training for
Automation and Drives
Connection to PLC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 18
Engineering Training for
Automation and Drives
Manual PC Ethernet Settings
192.168.0.100
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 19
Engineering Training for
Automation and Drives
Online Access
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 20
Engineering Training for
Automation and Drives
Memory Concept & Memory Reset
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 21
Engineering Training for
Automation and Drives
Add New Device: Hardware Configuration
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 22
Engineering Training for
Automation and Drives
Inserting / Deleting H.W. Modules
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 23
Engineering Training for
Automation and Drives
Compiling and Downloading
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 24
Engineering Training for
Automation and Drives
Downloading to CPU
1
2
3
4
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 25
Engineering Training for
Automation and Drives
Addresses & Tags
%IB1
%I1.5
%M25.4
%Q0.2
%M26.4
{Size}
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 26
Engineering Training for
Automation and Drives
Register Size, Data Type & Address
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 27
Engineering Training for
Automation and Drives
Process Image (Input / Output Tables)
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 28
Engineering Training for
Automation and Drives
PLC Tags
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 29
Engineering Training for
Automation and Drives
PLC Tags
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 30
Engineering Training for
Automation and Drives
Symbolic & Absolute Addressing
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 31
Engineering Training for
Automation and Drives
Watch Tables
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 32
Engineering Training for
Automation and Drives
Define Tag while programming
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 33
Engineering Training for
Automation and Drives
Program Structure
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 34
Engineering Training for
Automation and Drives
Types of Program Blocks (Functions/ Subroutines)
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 35
Engineering Training for
Automation and Drives
Cyclic Program Execution
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 36
Engineering Training for
Automation and Drives
Network / Rung / Segment
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 37
Engineering Training for
Automation and Drives
Program Editing
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 38
Engineering Training for
Automation and Drives
Block Call
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 39
Engineering Training for
Automation and Drives
Compile, Save & Download
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 40
Engineering Training for
Automation and Drives
Monitor program while running
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 41
Engineering Training for
Automation and Drives
Physical & Logical status
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 42
Engineering Training for
Automation and Drives
Normally Open & Normally Closed Signals
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 43
Engineering Training for
Automation and Drives
Data Types
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 44
Engineering Training for
Automation and Drives
Elementary Data Types
U- Unsigned
S-Short
D-Double
L-Long
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 45
Engineering Training for
Automation and Drives
Data Blocks
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 46
Engineering Training for
Automation and Drives
Binary Logic Operations: AND, OR
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 47
Engineering Training for
Automation and Drives
Binary Logic Operations: XOR
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 48
Engineering Training for
Automation and Drives
Binary Logic Operations: ASSIGNEMENT, SET, RESET, NOT
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 49
Engineering Training for
Automation and Drives
Binary Logic Operations: FLIP FLOP
LAD
FBD
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 50
Engineering Training for
Automation and Drives
Binary Logic Operations: Edge Trigger
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 51
Engineering Training for
Automation and Drives
Binary Logic Operations: RLO Edge Evaluation
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 52
Engineering Training for
Automation and Drives
Binary Logic Operations: SET/ RESET Bit Field (Range of Bits)
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 53
Engineering Training for
Automation and Drives
Binary Logic Operations: JUMP/ LABEL
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 54
Engineering Training for
Automation and Drives
Digital Operations: DATA Types
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 55
Engineering Training for
Automation and Drives
Digital Operations: TON – Timer On-Delay
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 56
Engineering Training for
Automation and Drives
Digital Operations: Counters
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 57
Engineering Training for
Automation and Drives
Digital Operations: Comparison
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 58
Engineering Training for
Automation and Drives
Digital Operations: MOVE
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 59
Engineering Training for
Automation and Drives
Digital Operations: MOVE Block
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 60
Engineering Training for
Automation and Drives
Digital Operations: IN_RANGE/ OUT_RANGE
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 61
Engineering Training for
Automation and Drives
Digital Operations: Date & Time of Day
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 62
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 63
Engineering Training for
Automation and Drives
Exercises
Exercise No: 1.a: Single Output
Start_PB: I0.0 Green_LED: Q0.0
-----| |----------------------------------------------------------( )
Exercise No: 1.b: Multiple Outputs … Lamp Test on Control Panel
Start_PB: I0.0 Green_LED: Q0.0
-----| |----------------------------------------------------------( )
Red_LED: Q0.1
----------------------------( )
Blue_LED: Q0.2
----------------------------( )
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 64
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 65
Engineering Training for
Automation and Drives
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
-----| |--------------------
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 66
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 67
Engineering Training for
Automation and Drives
Exercises
Exercise No: 3.a: Delayed Start: TON without latch
Start_PB: I0.0 Green_LED: Q0.0
-----| |------------------------------------------------------------( )
Exercise No: 3.b: Delayed Start: TON with latch using Memory bit
M0.0 Green_LED: Q0.0
-----| |------------------------------------------------------------( )
Start_PB: I0.0 Stop_PB: I0.1 M0.0
-----| |--------------------------| |-----------------------------( )
M0.0
-----| |-------------------- T1
T1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 68
Engineering Training for
Automation and Drives
Exercises
Exercise No: 3.c: Run Load for Certain Time: TON with latch using Memory bit
Start_PB: I0.0 M0.0 Green_LED: Q0.0
-----| |--------------------------| / |--------------------------------( )
Green_LED: Q0.0
-----| |--------------------
Green_LED: Q0.0 M0.0
-----| |------------------------------------------------------------( )
T1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 69
Engineering Training for
Automation and Drives
Exercises
Exercise No: 3.d: Run Load for Certain Time: TON with latch using Memory
bit (reduced circuit)
M0.0
--( )
Start_PB: I0.0 M0.0 Green_LED: Q0.0
-----| |--------------------------| / |--------------------------------( )
Green_LED: Q0.0
-----| |--------------------
T1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 70
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 71
Engineering Training for
Automation and Drives
Exercises
Exercise No: 4.a: Time Sequencer using separate timer for each load
M0.0
------( )
Start_PB: I0.0 M0.0 Green_LED: Q0.0
-----| |--------------------------| / |--------------------------------( )
Green_LED: Q0.0
-----| |--------------------
M0.1
------( )
M0.0 M0.1 Red_LED: Q0.1
-----| |--------------------------| / |--------------------------------( )
Red_LED: Q0.1
-----| |--------------------
M0.2
------( )
M0.1 M0.2 Blue_LED: Q0.2
-----| |--------------------------| / |--------------------------------( )
Blue_LED: Q0.2
-----| |--------------------
T1
T2
T3
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 72
Engineering Training for
Automation and Drives
Exercises
Exercise No: 4.b: Time Sequencer using one timer for all load
M0.1
------( )
Start_PB: I0.0 M0.1 M0.0
-----| |--------------------------| / |--------------------------------( )
M0.0
-----| |--------------------
T1 T1 Q0.0
-----| > |-----------------------| < |--------------------------------( )
0 3
T1 T1 Q0.1
-----| > |-----------------------| < |--------------------------------( )
3 5
T1 T1 Q0.2
-----| > |-----------------------| < |--------------------------------( )
5 9
T1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 73
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 74
Engineering Training for
Automation and Drives
Exercises No. 5a: Traffic Light: Time Sequencer using one timer
M0.1
------( )
Start_PB: I0.0 M0.1 M0.0
-----| |-----------------| / |-------------------------( )
M0.0
-----| |----
T1 T1 RED: Q0.0
-----| > |--------------| < |-------------------------( )
0 2
T1 T1 AMBER: Q0.1
-----| > |--------------| < |-------------------------( )
2 3
-----| > |--------------| < |----
6 7
T1 T1 GREEN: Q0.2
-----| > |--------------| < |-------------------------( )
3 6
T1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 75
Engineering Training for
Automation and Drives
Exercises No. 5b: Traffic Light: Flashing Signal
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 76
Engineering Training for
Automation and Drives
Exercises No. 5b: Traffic Light: Flashing Signal
M0.1
------( )
Start Signal M0.1 M0.0
-----| |-----------------| / |-------------------------( )
M0.0
-----| |----
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
T1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 77
Engineering Training for
Automation and Drives
Ladder Logic Elements
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 78
Engineering Training for
Automation and Drives
Transforming a Circuit Diagram into Ladder Logic Diagram
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 79
Engineering Training for
Automation and Drives
Transforming a Circuit Diagram into Ladder Logic Diagram
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 80
Engineering Training for
Automation and Drives
Exercise No. 6 : Car Park
Car Park
Full
Indicator
Lamp
Q0.2
Entrance
Actuator
Q0.0
Exit
Sensor 2
I0.3
Exit
Actuator
Q0.1
Exit
Sensor 1
I0.2
Entrance
Sensor 1
I0.0
Car
Counter
Entrance
Exit
Entrance
Sensor 2
I0.1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 81
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
(1) Process Diagram
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 82
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
(2) Sequence Of Operation
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 83
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
(3) Tag List, Symbol Table, Variable Table
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 84
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
(4) PLC Program
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 85
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 86
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 87
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
(5) Download Program to PLC
(6) Switch PLC to RUN mode
(7) Monitor the Program while it is running
(8) Monitor the Tags in the watch table
(9) Modify program and repeat above steps
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 88
Engineering Training for
Automation and Drives
Exercise No. 7 : Mixing Tank
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 89
Engineering Training for
Automation and Drives
Analog Value Processing in PLC
 A/D Convertor
 D/A Convertor
 Resolution
 Conversion rate
0 - 10VDC
4 - 20mA
0 - 27648
1
2
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 90
Engineering Training for
Automation and Drives
Common Ranges of Analog Signals
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 91
Engineering Training for
Automation and Drives
Analog Sensor Connection to CPU Integrated Analog Inputs
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 92
Engineering Training for
Automation and Drives
Analog Values
HMI Operator
CPU
Analog Input
Sensor/
Transmitter
Process
Physical
Quantity
Display/
Control
Scaling
Converted
Digital
Quantity
Electrical
Analog
Quantity
Physical
Quantity
Engineering
Units
Display/
Control
Scaled
Value
0-27648
0-10VDC
4-20mA
-Temperature
-Pressure
-Level
-Flow
-Speed
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 93
Engineering Training for
Automation and Drives
Analog Values
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 94
Engineering Training for
Automation and Drives
Analog Value Scaling
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 95
Engineering Training for
Automation and Drives
Analog Value Scaling
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 96
Engineering Training for
Automation and Drives
Analog Value Processing
Analog Input Handling:
Analog Output Handling:
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 97
Engineering Training for
Automation and Drives
Analog Value Processing
 Use Conversion Operations
 Norm_X
 Scale_X
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 98
Engineering Training for
Automation and Drives
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
24VDC
To
10VDC
230VAC
To
24VDC
Power
Supply
0 – 10VDC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 99
Engineering Training for
Automation and Drives
HMI Selection
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 100
Engineering Training for
Automation and Drives
HMI Selection
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 101
Engineering Training for
Automation and Drives
HMI: Wizard
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 102
Engineering Training for
Automation and Drives
HMI: Manual Configuration of IP
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 103
Engineering Training for
Automation and Drives
HMI: Manual Networking to PLC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 104
Engineering Training for
Automation and Drives
HMI: Manual Connection to PLC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 105
Engineering Training for
Automation and Drives
HMI Root Screen
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 106
Engineering Training for
Automation and Drives
HMI Objects
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 107
Engineering Training for
Automation and Drives
HMI Major Functions
• Display processes with a straight forward screen structures
• Communicate with processes
• Output alarms
• Archive process values and alarms
• Document process values and alarms as reports
• Manage process and machine parameters in recipes
• User management & administration
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 108
Engineering Training for
Automation and Drives
Exercise : HMI
1. Use the HMI Buttons to Start/ Stop a load with events.
2. Use the HMI I/O field to display a reading from the PLC.
3. Use the HMI I/O field to enter a setpoint to the PLC.
4. Use the HMI Bar to display an analog value reading.
5. Animation .. Color change
6. Create Several Screens and navigations.
7. Work with Template to create a header.
8. Display Trend.
9. Work with Alarms and Messages.
10.Users & Passwords
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 109
Engineering Training for
Automation and Drives
Design of the KTP700 Basic for PROFINET
① Connection for power supply
② USB interface for USB
mass storage device or USB mouse
③ PROFINET interface
④ Recesses for a mounting clip
⑤ Display/touch screen
⑥ Mounting gasket
⑦ Function keys
⑧ Rating plate
⑨ Connection for functional ground
⑩ Guide for labeling strip
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 110
Engineering Training for
Automation and Drives
Settings on Touch Panel KTP700 Basic/Start Center
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 111
Engineering Training for
Automation and Drives
Setting the transfer properties and assigning the IP address
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 112
Engineering Training for
Automation and Drives
WinCC user interface
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 113
Engineering Training for
Automation and Drives
Planning the screen structure
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 114
Engineering Training for
Automation and Drives
Program Structure
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 115
Engineering Training for
Automation and Drives
Types of Program Blocks (Functions/ Subroutines)
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 116
Engineering Training for
Automation and Drives
Reusable Functions: Tag Types
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 117
Engineering Training for
Automation and Drives
Exercise No.1: Reusable Function for Analog Scaling
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 118
Engineering Training for
Automation and Drives
Exercise No.2: Reusable Function for Alarms
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 119
Engineering Training for
Automation and Drives
Reusable Functions: Parameter Assignable Block
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 120
Engineering Training for
Automation and Drives
Reusable Functions: Declaration of Formal Parameters
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 121
Engineering Training for
Automation and Drives
Reusable Functions: Editing Parameter Assignable Block
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 122
Engineering Training for
Automation and Drives
Reusable Functions: Calling Parameter Assignable Block
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 123
Engineering Training for
Automation and Drives
Reusable Functions: Using FB and Multiple Instances DB
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 124
Engineering Training for
Automation and Drives
Reusable Functions: Block Interface for FB
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 125
Engineering Training for
Automation and Drives
VSD
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 126
Engineering Training for
Automation and Drives
VSD ‫اﺳﺗﺎﺗﯾﻛﻲ‬ ‫ﺳرﻋﺔ‬ ‫ر‬ِ‫ﯾ‬‫ﻣﻐ‬
1. VSD: Variable Speed Drive
2. VFD: Variable Frequency Drive
3. VVVF: Variable Voltage Variable Frequency Drive
4. ASD: Adjustable Speed Drive
5. VSI/CSI: Voltage/Current Source Inverter
6. Rectifier/ Convertor / Inverter/ PMW
5. Frequency Converter
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 127
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 128
Engineering Training for
Automation and Drives
VSD: Types
Types of Industrial Motor Drive Systems:
• Low Voltage Converters: from 0.12 kW up to 6840 kW
• Medium Voltage Converters: from 150 kW up to 85 MW
• Servo Converters: from 0.1 kW up to 6840 kW
• DC Converters: from 6.3 kW up to 30 MW
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 129
Engineering Training for
Automation and Drives
VFD: Definition
What is a frequency converter or variable frequency drive?
Frequency converters or also named variable frequency drives are electronic
devices that convert a (more or less) fixed frequency and voltage into a
variable frequency and voltage. This device allows electric motors to be
operated with a variable speed.
What are frequency converters / variable frequency drives used
for?
Today, frequency converters are used practically everywhere to operate
single-phase and three-phase electric motors with a variable speed. And not
just in industrial environments, but in everyday life. Starting from very low
power ratings to control washing machine drums up to medium power ratings
for pumps used in municipal water supplies.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 130
Engineering Training for
Automation and Drives
VFD: Electrical Drive Chain
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 131
Engineering Training for
Automation and Drives
VFD: Building Blocks
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 132
Engineering Training for
Automation and Drives
VFD: Electrical Signal Manipulation
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 133
Engineering Training for
Automation and Drives
VFD: Power Circuit
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 134
Engineering Training for
Automation and Drives
VFD: Power Circuit
ELCB/
RCCB
Contactor
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 135
Engineering Training for
Automation and Drives
VFD: Additional External Components
A line reactor supports
the overvoltage
protection, smooths the
harmonics in the line
supply and buffers
commutation dips.
With a line filter,
the inverter can
achieve a
higher radio
interference
class.
The sine-wave filter at the inverter
output limits the voltage rate-of-rise
and the peak voltages at the motor
winding. The maximum permissible
length of motor feeder cables is
increased to 300 m.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 136
Engineering Training for
Automation and Drives
VFD: Principle of Operation
Principle of Operation of Variable Frequency
Drive (VFD):
Speed of an induction motor is
proportional to the frequency
of the supply ( N = 120 f/p ) and by varying
the frequency we can obtain the variable
speed.
But, when the frequency is decreased, the
torque increases and thereby motor draw a
heavy current. This in turn increases the flux
in the motor. Also the magnetic field may
reach to the saturation level, if the voltage of
the supply is not reduced.
Therefore, both the voltage and frequency
have to be changed in a constant ratio in order
to maintain the flux within the working range.
Since the torque is proportional to the
magnetic flux, the torque remains constant
throughout the operating range of v/f.
The figure shows the torque and speed variation of an induction motor for voltage and frequency control.
Voltage and Frequency are changed at a constant ratio up to the base speed.
Thus the flux and thereby torque remain almost constant up to the base speed.
This region is called as a constant torque region.
Since the supply voltage can be changed up to the rated value only and hence the speed at rated voltage is the base
speed. If the frequency increased, beyond the base speed, the magnetic flux in the motor decreases and thereby torque
begins falling off. This is called flux weakening or constant power region.
This type of control is called constant v/f control method used in variable frequency drives (VFDs).
It is the most popular type of control in industries.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 137
Engineering Training for
Automation and Drives
VFD: Speed vs. Frequency relation
N = Speed; Ns: Stator Speed (Electro-Magnetic),
Nr: Rotor Speed (Mechanical)
F = Frequency
P = Number of pole
VFD
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 138
Engineering Training for
Automation and Drives
VFD: Components
Operator
Panel
Control
Module
Power
Module
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 139
Engineering Training for
Automation and Drives
VFD: Motor Name Plate
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 140
Engineering Training for
Automation and Drives
VFD: Drive Control Sources
1.Operator Panel
2.Terminals
3.Communication
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 141
Engineering Training for
Automation and Drives
VFD: Drive Control Sources: Operator Panel
START
STOP
INCREASE
DECREASE
LCD DISPLAY
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 142
Engineering Training for
Automation and Drives
VFD: Drive Control Sources: Terminals: Push Button/Switch & Pot.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 143
Engineering Training for
Automation and Drives
VFD: Drive Control Sources: Terminals: PLC & HMI
HMI
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 144
Engineering Training for
Automation and Drives
VFD: Drive Connection to PLC through I/O’s
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 145
Engineering Training for
Automation and Drives
VFD: Parametrizing & Commissioning
Commissioning and Parameters Programming in VFD
• Commissioning is needed for the proper functioning of VFD.
• Necessary (Quick Commissioning Parameters) from Motor Nameplate:
• Motor Power Rating
• Motor rated Voltage,
• Motor rated Current,
• Motor rated Speed,
• Motor rated Frequency,
• Motor Power Factor.
• 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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 146
Engineering Training for
Automation and Drives
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.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 147
Engineering Training for
Automation and Drives
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.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 148
Engineering Training for
Automation and Drives
VFD: HMI Program
Normal State: Running State:
Error State:
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 149
Engineering Training for
Automation and Drives
VFD: Drive Connection to PLC through Communication
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 150
Engineering Training for
Automation and Drives
VFD: PLC Control of Multiple Drives
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 151
Engineering Training for
Automation and Drives
VFD: Practical Exercise
Model: AS2 - 15
In: Single Phase 220VAC, 50/60Hz
Out: Three Phase 220VAC, 1.5KW/2Hp
Rated Output Current: 8Amp
Model: AS2 - 15
Digital Inputs: 6
Digital Output: 1
Analog Inputs: 2
Analog Output: 1
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 152
Engineering Training for
Automation and Drives
VFD: Terminal Wiring Diagram
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 153
Engineering Training for
Automation and Drives
VFD: Power Connections
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 154
Engineering Training for
Automation and Drives
VFD: Control Connections: Analog Inputs
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 155
Engineering Training for
Automation and Drives
VFD: Control Connections: Digital Inputs/Outputs
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 156
Engineering Training for
Automation and Drives
VFD: Hardware Settings
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 157
Engineering Training for
Automation and Drives
VFD: Operator Panel
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 158
Engineering Training for
Automation and Drives
VFD: Example: Change Acceleration Time
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 159
Engineering Training for
Automation and Drives
VFD: Example: Change Maximum Frequency Limit
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 160
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 161
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 162
Engineering Training for
Automation and Drives
VFD: Example: Terminal Control of Drive
03 :
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 163
Engineering Training for
Automation and Drives
VFD: Example: PLC Control of Drive
04 :
AQ0 DQ0.0 DQ0.1
S7-1200 PLC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 164
Engineering Training for
Automation and Drives
Encoder
Tacho Generator
Linear Encoder
Rotary Encoder
Analog device that
produces a voltage
proportional to speed.
Digital device that produces electrical pulses
based on mechanical rotational motion
Resolver
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 165
Engineering Training for
Automation and Drives
Encoder Function
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 166
Engineering Training for
Automation and Drives
Encoder Definition
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 167
Engineering Training for
Automation and Drives
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.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 168
Engineering Training for
Automation and Drives
Encoder Classification
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 169
Engineering Training for
Automation and Drives
Encoder Types
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 170
Engineering Training for
Automation and Drives
Linear Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 171
Engineering Training for
Automation and Drives
Incremental Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 172
Engineering Training for
Automation and Drives
Absolute Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 173
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 174
Engineering Training for
Automation and Drives
Rotary Encoder
Absolute Encoder
Incremental Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 175
Engineering Training for
Automation and Drives
Incremental Encoder
 Incremental encoders are usually supplied with two channels
(A & B) that are offset by 90 degrees.
 If complements are included (A, B ), the signal is
“quadrature”, providing speed of rotation AND direction of
rotation.
A
A
Encoder
B
B
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 176
Engineering Training for
Automation and Drives
Incremental Encoder
 Signal A leads B in one direction, B leads A in the reverse
direction
 Complement pulses, A and B are used to provide electrical
noise immunity for the signal as it travels through the cable.
A
A
Encoder
B
B
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 177
Engineering Training for
Automation and Drives
Incremental Encoder
B
A
Z
Marker
Although a “Marker” pulse is standard on some encoders, it is
additional feature (charge) on many encoders. Ask for one, if
you need one.
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.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 178
Engineering Training for
Automation and Drives
Incremental Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 179
Engineering Training for
Automation and Drives
Incremental Encoder Output
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 180
Engineering Training for
Automation and Drives
Incremental Encoder Signals
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 181
Engineering Training for
Automation and Drives
Incremental Encoder Interface
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 182
Engineering Training for
Automation and Drives
Absolute Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 183
Engineering Training for
Automation and Drives
Absolute Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 184
Engineering Training for
Automation and Drives
Absolute Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 185
Engineering Training for
Automation and Drives
Absolute Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 186
Engineering Training for
Automation and Drives
Absolute Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 187
Engineering Training for
Automation and Drives
Incremental vs. Absolute Encoder
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 188
Engineering Training for
Automation and Drives
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.
 The basic counter instructions are limited to counting events that
occur at a rate slower than the scan cycle of the S7-1200 CPU.
 The High-speed counter (HSC) function provides the ability to count
pulses occurring at a higher rate than the PLC scan cycle.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 189
Engineering Training for
Automation and Drives
PLC & Encoder -> Max. Frequency
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 190
Engineering Training for
Automation and Drives
PLC & Encoder –> Configuring the HSC
1. Configure HSC in
device configuration;
CPU properties
2. Configure Digital
Input Filters
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 191
Engineering Training for
Automation and Drives
PLC & Encoder -> Programming the HSC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 192
Engineering Training for
Automation and Drives
PLC & Encoder -> Programming the HSC
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 193
Engineering Training for
Automation and Drives
PLC & Encoder -> Programming the HSC
High
Speed
Counter
(HSC)
Data
Type
Default
Address
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 194
Engineering Training for
Automation and Drives
PID Control
An everyday example is the cruise control of a car
Today the PID concept is used universally in applications
requiring accurate and optimized automatic control.
 . A Proportional – Integral – Derivative controller
 . PID controller
 . Three-Term controller
is a feedback control
loop mechanism that is widely used
in industrial control systems and a
variety of other applications requiring
continuously modulated control.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 195
Engineering Training for
Automation and Drives
PID Control: Historical Development
Early PID theory was developed by
observing the actions of helmsmen in
keeping a vessel on course in the face of
varying influences such as wind and sea
state.
Pneumatic PID (three-term)
controller. The magnitudes of
the three terms (P, I and D) are
adjusted by the dials at the top.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 196
Engineering Training for
Automation and Drives
Electronic Industrial PID Controllers (Process Controllers)
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 197
Engineering Training for
Automation and Drives
Software (PLC) based Industrial PID Controllers
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 198
Engineering Training for
Automation and Drives
PID Control
The PID control combines Proportional, Integral and Derivative actions to
create a control signal, where each action has a strong characteristic that
helps to control the output:
 The Proportional action makes the system respond to the present
error and enables immediate action in the face of variations or
disturbances;
 The Integral action eliminates errors such as jumps or steps in a
permanent and long term regime;
 The Derivative action anticipates the behavior of the process.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 199
Engineering Training for
Automation and Drives
From Manual Control to Automatic PID Control
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 200
Engineering Training for
Automation and Drives
PID Control:
In theory, a controller can be used to control any process that has:
1. a measurable output (PV),
2. a known ideal value for that output (SP),
3. and an input to the process (MV) that will affect the relevant PV.
Controllers are used in industry to regulate:
temperature, pressure, force, feed rate, flow rate, level chemical
composition (component concentrations), weight, position, speed,
and practically every other variable for which a measurement exists.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 201
Engineering Training for
Automation and Drives
PID Control: Principle
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 202
Engineering Training for
Automation and Drives
PID Control: Principle
Block diagram of a PID controller.
r (t ) is the desired process value or setpoint (SP),
e (t ) is the calculated error value,
y (t ) is the measured/actual process value (PV),
u (t ) is the calculated control variable (CV) or manipulated variable (MV).
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 203
Engineering Training for
Automation and Drives
PID Control: Mathematical
Another form:
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 204
Engineering Training for
Automation and Drives
PID Control
How Does PID Works?
A PID controller continuously calculates an error value = e(t);
which is the difference between adesired setpoint SP= r(t) and a
measured process variable PV = y(t): r(t) – y(t) , and applies a
correction based on proportional, integral, and derivative terms.
The controller attempts to minimize the error over time by
adjustment of a control variable u(t), such that the control
element is adjusted to a new value determined by a weighted
sum of the control terms.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 205
Engineering Training for
Automation and Drives
PID Control: P Term
 Term P is proportional to the current value of the SP−PV; error e(t):
Kp . e(t) Kp : Proportional Gain
• The control output will be proportional to error value.
• Using proportional control alone will result in an error between the
setpoint and the actual process value called (Steady State error) because
it requires a non-zero error to generate the proportional response.
• If there is no error, or small error there is no corrective response (Dead
Band).
• Tuning theory and industrial practice indicate that the proportional term
should contribute the bulk of the output change.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 206
Engineering Training for
Automation and Drives
PID Control: I Term
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 207
Engineering Training for
Automation and Drives
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:
• It is sometimes called "anticipatory (predictive) control", as it is
effectively seeking to reduce the effect of the SP − PV error by
exerting a control influence generated by the rate of error change.
• The more rapid the change, the greater the controlling or damping
effect.
• Derivative action is seldom used in practice because of its
variable impact on system stability in real-world applications.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 208
Engineering Training for
Automation and Drives
PID Control: Effect of Kp
Response of PV to step change of SP vs time, for three values of Kp (Ki and Kd held constant)
Oscillation: Unstable
Damped: Slow response,
less responsive or less
sensitive controller
Overshoot: Fast response
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 209
Engineering Training for
Automation and Drives
PID Control: Effect of Ki
Response of PV to step change of SP vs time, for three values of Ki (Kp and Kd held constant)
Faster
Response
Eliminates
the
residual
steady-
state error
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 210
Engineering Training for
Automation and Drives
PID Control: Effect of Kd
Response of PV to step change of SP vs time, for three values of Kd (Kp and Ki held constant)
Improves
settling
time and
stability
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 211
Engineering Training for
Automation and Drives
PID Control:
Setpoint
------
Actual Value
------
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 212
Engineering Training for
Automation and Drives
PID Control:
Effects of increasing a parameter independently
Parameter Rise time Overshoot Settling time
Steady-state
error
Stability
Kp Decrease Increase Small change Decrease Degrade
Ki Decrease Increase Increase Eliminate Degrade
Kd Minor change Decrease Decrease
No effect in
theory
Improve
if Kd small
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 213
Engineering Training for
Automation and Drives
PID Control:
Selective use of control terms:
Although a PID controller has three control terms, some
applications need only one or two terms to provide
appropriate control.
This is achieved by setting the unused parameters to zero
and is called a PI, PD, P or I controller in the absence of
the other control actions.
PI controllers are fairly common in applications where
derivative action would be sensitive to measurement
noise, but the integral term is often needed for the system
to reach its target value.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 214
Engineering Training for
Automation and Drives
PID Control: Tuning
Control Loop tuning
 Tuning a control loop is the adjustment of its control
parameters (proportional band/gain, integral gain/reset,
derivative gain/rate) to the optimum values for the desired
control response.
• Stability (no unbounded oscillation) is a basic requirement
• Zero Steady State Error
• Fast Response to changes and disturbances
 PID tuning is a difficult problem, even though there are
only three parameters.
 There are several methods for tuning a PID loop.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 215
Engineering Training for
Automation and Drives
PID Control: Tuning Methods
Choosing a tuning method
Method Advantages Disadvantages
Manual tuning No mathematics required; online. Requires experienced personnel.
Ziegler–Nichols Proven method; online.
Process upset, some trial-and-
error, very aggressive tuning.
Tyreus Luyben Proven method; online.
Process upset, some trial-and-
error, very aggressive tuning.
Software tools
Consistent tuning; online or offline - can employ
computer-automated control system design
(CAutoD) techniques; may include valve and
sensor analysis; allows simulation before
downloading; can support non-steady-state
(NSS) tuning.
Some cost or training involved.
Cohen–Coon Good process models.
Some mathematics; offline; only
good for first-order processes.
Åström-Hägglund
Can be used for auto tuning; amplitude is
minimum so this method has lowest process
upset
The process itself is inherently
oscillatory.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 216
Engineering Training for
Automation and Drives
PID Control: Manual Tuning
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 217
Engineering Training for
Automation and Drives
PID Control: Ziegler-Nichols Method
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 218
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 219
Engineering Training for
Automation and Drives
PID Control: S7-1200 PLC & Auto Tuning Method (2)
7. Open the configuration mask of the controller and set the parameters
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 220
Engineering Training for
Automation and Drives
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
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 221
Engineering Training for
Automation and Drives
PID Control: S7-1200 PLC & Auto Tuning Method (4)
11. Press Start for measurement & after that Start for Pre-tuning
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 222
Engineering Training for
Automation and Drives
PID Control: S7-1200 PLC & Auto Tuning Method (5)
12. After successful tuning parameters obtained can be saved to project
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 223
Engineering Training for
Automation and Drives
PID Control: Exercise: Training Kit
PID Simulation Kit
The lamp (Q0.0) is to be used to control the temperature.
The controller is be started up using the Auto-tune functionality.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 224
Engineering Training for
Automation and Drives
PID Control: Exercise: Create TAGs
Create Tags as in Table
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 225
Engineering Training for
Automation and Drives
PID Control: Exercise: Set PID Block Parameters as in Figure
• Select controller type "Temperature“
• Select "°C" as the unit
• Set the setpoint as constant e.g. "60“ or use Tag.
• Select "Input_PER" as the input and "temperature_sensor" (IW64) as the tag.
• Select "Output_PWM" as the output and "heating (bulb)" (O0.0) as the tag.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 226
Engineering Training for
Automation and Drives
PID Control: Exercise
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 227
Engineering Training for
Automation and Drives
PID Control: Exercise
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 228
Engineering Training for
Automation and Drives
PID Control: Exercise: Prepare data to show on HMI
Parameterize the "Setpoint" input with the tag "Setpoint" (MD100)
Parameterize the "ScaledInput" output with the tag "Scaled_Input" (MD104).
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 229
Engineering Training for
Automation and Drives
PID Control: Exercise: HMI – I/O Field
Displaying actual value and setpoint on the HMI as I/O Fields
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 230
Engineering Training for
Automation and Drives
PID Control: Exercise: HMI - Trend
Displaying actual value and setpoint on the HMI as TREND
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 231
Engineering Training for
Automation and Drives
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.
 These devices employ standard industrial data communication
protocols such as: Modbus, IEC, and DNP3.0.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 232
Engineering Training for
Automation and Drives
Introduction to SCADA System: Major Components
There are Four essential composing parts of a SCADA system:
 Master System/ Central System/ Supervisory System: Human
Machine Interface (HMI)
 Communication Infrastructures
 Remote Terminal Units (RTUs) or Programmable Logic
Controllers (PLCs)
 Field Devices: Sensors/ Instruments and Actuators
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 233
Engineering Training for
Automation and Drives
Introduction to SCADA System: Typical SCADA HMI
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 234
Engineering Training for
Automation and Drives
Introduction to SCADA System: Architecture: Local/ Wired
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 235
Engineering Training for
Automation and Drives
Introduction to SCADA System: Architecture: Remote/ Wireless
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 236
Engineering Training for
Automation and Drives
Introduction to SCADA System: Major Functions
Major Functions of SCADA:
A SCADA system performs four major functions:
 Data acquisition
 Networked data communication
 Data presentation
 Control
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 237
Engineering Training for
Automation and Drives
Introduction to SCADA System: SCADA vs. HMI
HMI
SCADA HMI
• Small Scale
• Close to Process
• Usually stand alone
• Usually no Data Base
connectivity
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 238
Engineering Training for
Automation and Drives
SIMATIC WinCC (TIA Portal) Runtime Software
SIMATIC WinCC Runtime Advanced
(TIA Portal)
- PC-based HMI solution for
- single-user systems
- directly at the machine.
- The range of functions of WinCC
Runtime Advanced includes:
- Visualizing (graphics)
- Alarming (messaging)
- Trending (graphs & curves)
- Archiving (logging & history)
- Recipes
- Reporting
- Administration
What is WinCC RT advanced?
- It can be expanded to suit requirements and costs by using optional packages.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 239
Engineering Training for
Automation and Drives
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".
5.Double-click "Add new device"
and select WinCC Runtime
Advanced from the PC System
sub folder.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 240
Engineering Training for
Automation and Drives
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.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 241
Engineering Training for
Automation and Drives
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.
8. Switch to the Network View and
enable "Connections" to create an
HMI connection. Connect the
interfaces of the S7 controller and
the Runtime station by drag-and-
drop.
Date: Saturday, January 29, 2022
Control & Automation
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 242
Engineering Training for
Automation and Drives
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".
10. Open the PG/PC interface
on the Runtime station through
"Start > Control panel > Set
PG/PC interface".
11. Complete the configuration similar to
normal HMI and download the project to the
S7 controller and the PC Runtime station.

1730972894083 plc logic controller __.pdf

  • 1.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 1 Engineering Training for Automation and Drives Industrial Control & Automation ‫واﻟﺗدرﯾب‬ ‫ﻟﻼﺳﺗﺷﺎرات‬ ‫اﻟﻌﻠوم‬ ‫ﻗﺎﻓﻠﺔ‬ ‫أﻛﺎدﯾﻣﯾﺔ‬ Science Caravan Academy Eng. Rami El-Naqa Amman - 2022 Part 2: Programmable Logic Control
  • 2.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 2 Engineering Training for Automation and Drives Hardware components used in Programmable Automation
  • 3.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 3 Engineering Training for Automation and Drives Siemens SIMATIC S7 Family
  • 4.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 4 Engineering Training for Automation and Drives Performance Grades of SIMATIC PLCs ET-200SP
  • 5.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 5 Engineering Training for Automation and Drives Siemens SIMATIC S7-1200 PLC
  • 6.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 6 Engineering Training for Automation and Drives SIMATIC S7-1200: Installation & Mounting Positions
  • 7.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 7 Engineering Training for Automation and Drives SIMATIC S7-1200 Modules
  • 8.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 8 Engineering Training for Automation and Drives Siemens SIMATIC S7-1200 PLC
  • 9.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 9 Engineering Training for Automation and Drives Siemens SIMATIC S7-1200 PLC – CPU1212C
  • 10.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 10 Engineering Training for Automation and Drives TIA Portal V16.0/V17.0 Software Package
  • 11.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 11 Engineering Training for Automation and Drives TIA Portal Basic & Professional
  • 12.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 12 Engineering Training for Automation and Drives Portal View & Project View
  • 13.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 13 Engineering Training for Automation and Drives Project View
  • 14.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 14 Engineering Training for Automation and Drives Menu Bar & Toolbar
  • 15.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 15 Engineering Training for Automation and Drives Project Tree: 1st level
  • 16.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 16 Engineering Training for Automation and Drives Project Tree: 2nd level
  • 17.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 17 Engineering Training for Automation and Drives Connection to PLC
  • 18.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 18 Engineering Training for Automation and Drives Manual PC Ethernet Settings 192.168.0.100
  • 19.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 19 Engineering Training for Automation and Drives Online Access
  • 20.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 20 Engineering Training for Automation and Drives Memory Concept & Memory Reset
  • 21.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 21 Engineering Training for Automation and Drives Add New Device: Hardware Configuration
  • 22.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 22 Engineering Training for Automation and Drives Inserting / Deleting H.W. Modules
  • 23.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 23 Engineering Training for Automation and Drives Compiling and Downloading
  • 24.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 24 Engineering Training for Automation and Drives Downloading to CPU 1 2 3 4
  • 25.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 25 Engineering Training for Automation and Drives Addresses & Tags %IB1 %I1.5 %M25.4 %Q0.2 %M26.4 {Size}
  • 26.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 26 Engineering Training for Automation and Drives Register Size, Data Type & Address
  • 27.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 27 Engineering Training for Automation and Drives Process Image (Input / Output Tables)
  • 28.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 28 Engineering Training for Automation and Drives PLC Tags
  • 29.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 29 Engineering Training for Automation and Drives PLC Tags
  • 30.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 30 Engineering Training for Automation and Drives Symbolic & Absolute Addressing
  • 31.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 31 Engineering Training for Automation and Drives Watch Tables
  • 32.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 32 Engineering Training for Automation and Drives Define Tag while programming
  • 33.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 33 Engineering Training for Automation and Drives Program Structure
  • 34.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 34 Engineering Training for Automation and Drives Types of Program Blocks (Functions/ Subroutines)
  • 35.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 35 Engineering Training for Automation and Drives Cyclic Program Execution
  • 36.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 36 Engineering Training for Automation and Drives Network / Rung / Segment
  • 37.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 37 Engineering Training for Automation and Drives Program Editing
  • 38.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 38 Engineering Training for Automation and Drives Block Call
  • 39.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 39 Engineering Training for Automation and Drives Compile, Save & Download
  • 40.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 40 Engineering Training for Automation and Drives Monitor program while running
  • 41.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 41 Engineering Training for Automation and Drives Physical & Logical status
  • 42.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 42 Engineering Training for Automation and Drives Normally Open & Normally Closed Signals
  • 43.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 43 Engineering Training for Automation and Drives Data Types
  • 44.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 44 Engineering Training for Automation and Drives Elementary Data Types U- Unsigned S-Short D-Double L-Long
  • 45.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 45 Engineering Training for Automation and Drives Data Blocks
  • 46.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 46 Engineering Training for Automation and Drives Binary Logic Operations: AND, OR
  • 47.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 47 Engineering Training for Automation and Drives Binary Logic Operations: XOR
  • 48.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 48 Engineering Training for Automation and Drives Binary Logic Operations: ASSIGNEMENT, SET, RESET, NOT
  • 49.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 49 Engineering Training for Automation and Drives Binary Logic Operations: FLIP FLOP LAD FBD
  • 50.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 50 Engineering Training for Automation and Drives Binary Logic Operations: Edge Trigger
  • 51.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 51 Engineering Training for Automation and Drives Binary Logic Operations: RLO Edge Evaluation
  • 52.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 52 Engineering Training for Automation and Drives Binary Logic Operations: SET/ RESET Bit Field (Range of Bits)
  • 53.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 53 Engineering Training for Automation and Drives Binary Logic Operations: JUMP/ LABEL
  • 54.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 54 Engineering Training for Automation and Drives Digital Operations: DATA Types
  • 55.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 55 Engineering Training for Automation and Drives Digital Operations: TON – Timer On-Delay
  • 56.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 56 Engineering Training for Automation and Drives Digital Operations: Counters
  • 57.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 57 Engineering Training for Automation and Drives Digital Operations: Comparison
  • 58.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 58 Engineering Training for Automation and Drives Digital Operations: MOVE
  • 59.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 59 Engineering Training for Automation and Drives Digital Operations: MOVE Block
  • 60.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 60 Engineering Training for Automation and Drives Digital Operations: IN_RANGE/ OUT_RANGE
  • 61.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 61 Engineering Training for Automation and Drives Digital Operations: Date & Time of Day
  • 62.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 62 Engineering Training for Automation and Drives 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
  • 63.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 63 Engineering Training for Automation and Drives Exercises Exercise No: 1.a: Single Output Start_PB: I0.0 Green_LED: Q0.0 -----| |----------------------------------------------------------( ) Exercise No: 1.b: Multiple Outputs … Lamp Test on Control Panel Start_PB: I0.0 Green_LED: Q0.0 -----| |----------------------------------------------------------( ) Red_LED: Q0.1 ----------------------------( ) Blue_LED: Q0.2 ----------------------------( )
  • 64.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 64 Engineering Training for Automation and Drives 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
  • 65.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 65 Engineering Training for Automation and Drives 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 -----| |--------------------
  • 66.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 66 Engineering Training for Automation and Drives 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
  • 67.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 67 Engineering Training for Automation and Drives Exercises Exercise No: 3.a: Delayed Start: TON without latch Start_PB: I0.0 Green_LED: Q0.0 -----| |------------------------------------------------------------( ) Exercise No: 3.b: Delayed Start: TON with latch using Memory bit M0.0 Green_LED: Q0.0 -----| |------------------------------------------------------------( ) Start_PB: I0.0 Stop_PB: I0.1 M0.0 -----| |--------------------------| |-----------------------------( ) M0.0 -----| |-------------------- T1 T1
  • 68.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 68 Engineering Training for Automation and Drives Exercises Exercise No: 3.c: Run Load for Certain Time: TON with latch using Memory bit Start_PB: I0.0 M0.0 Green_LED: Q0.0 -----| |--------------------------| / |--------------------------------( ) Green_LED: Q0.0 -----| |-------------------- Green_LED: Q0.0 M0.0 -----| |------------------------------------------------------------( ) T1
  • 69.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 69 Engineering Training for Automation and Drives Exercises Exercise No: 3.d: Run Load for Certain Time: TON with latch using Memory bit (reduced circuit) M0.0 --( ) Start_PB: I0.0 M0.0 Green_LED: Q0.0 -----| |--------------------------| / |--------------------------------( ) Green_LED: Q0.0 -----| |-------------------- T1
  • 70.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 70 Engineering Training for Automation and Drives 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
  • 71.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 71 Engineering Training for Automation and Drives Exercises Exercise No: 4.a: Time Sequencer using separate timer for each load M0.0 ------( ) Start_PB: I0.0 M0.0 Green_LED: Q0.0 -----| |--------------------------| / |--------------------------------( ) Green_LED: Q0.0 -----| |-------------------- M0.1 ------( ) M0.0 M0.1 Red_LED: Q0.1 -----| |--------------------------| / |--------------------------------( ) Red_LED: Q0.1 -----| |-------------------- M0.2 ------( ) M0.1 M0.2 Blue_LED: Q0.2 -----| |--------------------------| / |--------------------------------( ) Blue_LED: Q0.2 -----| |-------------------- T1 T2 T3
  • 72.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 72 Engineering Training for Automation and Drives Exercises Exercise No: 4.b: Time Sequencer using one timer for all load M0.1 ------( ) Start_PB: I0.0 M0.1 M0.0 -----| |--------------------------| / |--------------------------------( ) M0.0 -----| |-------------------- T1 T1 Q0.0 -----| > |-----------------------| < |--------------------------------( ) 0 3 T1 T1 Q0.1 -----| > |-----------------------| < |--------------------------------( ) 3 5 T1 T1 Q0.2 -----| > |-----------------------| < |--------------------------------( ) 5 9 T1
  • 73.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 73 Engineering Training for Automation and Drives 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
  • 74.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 74 Engineering Training for Automation and Drives Exercises No. 5a: Traffic Light: Time Sequencer using one timer M0.1 ------( ) Start_PB: I0.0 M0.1 M0.0 -----| |-----------------| / |-------------------------( ) M0.0 -----| |---- T1 T1 RED: Q0.0 -----| > |--------------| < |-------------------------( ) 0 2 T1 T1 AMBER: Q0.1 -----| > |--------------| < |-------------------------( ) 2 3 -----| > |--------------| < |---- 6 7 T1 T1 GREEN: Q0.2 -----| > |--------------| < |-------------------------( ) 3 6 T1
  • 75.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 75 Engineering Training for Automation and Drives Exercises No. 5b: Traffic Light: Flashing Signal
  • 76.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 76 Engineering Training for Automation and Drives Exercises No. 5b: Traffic Light: Flashing Signal M0.1 ------( ) Start Signal M0.1 M0.0 -----| |-----------------| / |-------------------------( ) M0.0 -----| |---- 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 T1
  • 77.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 77 Engineering Training for Automation and Drives Ladder Logic Elements
  • 78.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 78 Engineering Training for Automation and Drives Transforming a Circuit Diagram into Ladder Logic Diagram
  • 79.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 79 Engineering Training for Automation and Drives Transforming a Circuit Diagram into Ladder Logic Diagram
  • 80.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 80 Engineering Training for Automation and Drives Exercise No. 6 : Car Park Car Park Full Indicator Lamp Q0.2 Entrance Actuator Q0.0 Exit Sensor 2 I0.3 Exit Actuator Q0.1 Exit Sensor 1 I0.2 Entrance Sensor 1 I0.0 Car Counter Entrance Exit Entrance Sensor 2 I0.1
  • 81.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 81 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank (1) Process Diagram
  • 82.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 82 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank (2) Sequence Of Operation
  • 83.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 83 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank (3) Tag List, Symbol Table, Variable Table
  • 84.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 84 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank (4) PLC Program
  • 85.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 85 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank
  • 86.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 86 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank
  • 87.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 87 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank (5) Download Program to PLC (6) Switch PLC to RUN mode (7) Monitor the Program while it is running (8) Monitor the Tags in the watch table (9) Modify program and repeat above steps
  • 88.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 88 Engineering Training for Automation and Drives Exercise No. 7 : Mixing Tank
  • 89.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 89 Engineering Training for Automation and Drives Analog Value Processing in PLC  A/D Convertor  D/A Convertor  Resolution  Conversion rate 0 - 10VDC 4 - 20mA 0 - 27648 1 2
  • 90.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 90 Engineering Training for Automation and Drives Common Ranges of Analog Signals
  • 91.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 91 Engineering Training for Automation and Drives Analog Sensor Connection to CPU Integrated Analog Inputs
  • 92.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 92 Engineering Training for Automation and Drives Analog Values HMI Operator CPU Analog Input Sensor/ Transmitter Process Physical Quantity Display/ Control Scaling Converted Digital Quantity Electrical Analog Quantity Physical Quantity Engineering Units Display/ Control Scaled Value 0-27648 0-10VDC 4-20mA -Temperature -Pressure -Level -Flow -Speed
  • 93.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 93 Engineering Training for Automation and Drives Analog Values
  • 94.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 94 Engineering Training for Automation and Drives Analog Value Scaling
  • 95.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 95 Engineering Training for Automation and Drives Analog Value Scaling
  • 96.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 96 Engineering Training for Automation and Drives Analog Value Processing Analog Input Handling: Analog Output Handling:
  • 97.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 97 Engineering Training for Automation and Drives Analog Value Processing  Use Conversion Operations  Norm_X  Scale_X
  • 98.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 98 Engineering Training for Automation and Drives 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 24VDC To 10VDC 230VAC To 24VDC Power Supply 0 – 10VDC
  • 99.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 99 Engineering Training for Automation and Drives HMI Selection
  • 100.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 100 Engineering Training for Automation and Drives HMI Selection
  • 101.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 101 Engineering Training for Automation and Drives HMI: Wizard
  • 102.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 102 Engineering Training for Automation and Drives HMI: Manual Configuration of IP
  • 103.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 103 Engineering Training for Automation and Drives HMI: Manual Networking to PLC
  • 104.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 104 Engineering Training for Automation and Drives HMI: Manual Connection to PLC
  • 105.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 105 Engineering Training for Automation and Drives HMI Root Screen
  • 106.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 106 Engineering Training for Automation and Drives HMI Objects
  • 107.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 107 Engineering Training for Automation and Drives HMI Major Functions • Display processes with a straight forward screen structures • Communicate with processes • Output alarms • Archive process values and alarms • Document process values and alarms as reports • Manage process and machine parameters in recipes • User management & administration
  • 108.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 108 Engineering Training for Automation and Drives Exercise : HMI 1. Use the HMI Buttons to Start/ Stop a load with events. 2. Use the HMI I/O field to display a reading from the PLC. 3. Use the HMI I/O field to enter a setpoint to the PLC. 4. Use the HMI Bar to display an analog value reading. 5. Animation .. Color change 6. Create Several Screens and navigations. 7. Work with Template to create a header. 8. Display Trend. 9. Work with Alarms and Messages. 10.Users & Passwords
  • 109.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 109 Engineering Training for Automation and Drives Design of the KTP700 Basic for PROFINET ① Connection for power supply ② USB interface for USB mass storage device or USB mouse ③ PROFINET interface ④ Recesses for a mounting clip ⑤ Display/touch screen ⑥ Mounting gasket ⑦ Function keys ⑧ Rating plate ⑨ Connection for functional ground ⑩ Guide for labeling strip
  • 110.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 110 Engineering Training for Automation and Drives Settings on Touch Panel KTP700 Basic/Start Center
  • 111.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 111 Engineering Training for Automation and Drives Setting the transfer properties and assigning the IP address
  • 112.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 112 Engineering Training for Automation and Drives WinCC user interface
  • 113.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 113 Engineering Training for Automation and Drives Planning the screen structure
  • 114.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 114 Engineering Training for Automation and Drives Program Structure
  • 115.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 115 Engineering Training for Automation and Drives Types of Program Blocks (Functions/ Subroutines)
  • 116.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 116 Engineering Training for Automation and Drives Reusable Functions: Tag Types
  • 117.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 117 Engineering Training for Automation and Drives Exercise No.1: Reusable Function for Analog Scaling
  • 118.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 118 Engineering Training for Automation and Drives Exercise No.2: Reusable Function for Alarms
  • 119.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 119 Engineering Training for Automation and Drives Reusable Functions: Parameter Assignable Block
  • 120.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 120 Engineering Training for Automation and Drives Reusable Functions: Declaration of Formal Parameters
  • 121.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 121 Engineering Training for Automation and Drives Reusable Functions: Editing Parameter Assignable Block
  • 122.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 122 Engineering Training for Automation and Drives Reusable Functions: Calling Parameter Assignable Block
  • 123.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 123 Engineering Training for Automation and Drives Reusable Functions: Using FB and Multiple Instances DB
  • 124.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 124 Engineering Training for Automation and Drives Reusable Functions: Block Interface for FB
  • 125.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 125 Engineering Training for Automation and Drives VSD
  • 126.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 126 Engineering Training for Automation and Drives VSD ‫اﺳﺗﺎﺗﯾﻛﻲ‬ ‫ﺳرﻋﺔ‬ ‫ر‬ِ‫ﯾ‬‫ﻣﻐ‬ 1. VSD: Variable Speed Drive 2. VFD: Variable Frequency Drive 3. VVVF: Variable Voltage Variable Frequency Drive 4. ASD: Adjustable Speed Drive 5. VSI/CSI: Voltage/Current Source Inverter 6. Rectifier/ Convertor / Inverter/ PMW 5. Frequency Converter
  • 127.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 127 Engineering Training for Automation and Drives 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
  • 128.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 128 Engineering Training for Automation and Drives VSD: Types Types of Industrial Motor Drive Systems: • Low Voltage Converters: from 0.12 kW up to 6840 kW • Medium Voltage Converters: from 150 kW up to 85 MW • Servo Converters: from 0.1 kW up to 6840 kW • DC Converters: from 6.3 kW up to 30 MW
  • 129.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 129 Engineering Training for Automation and Drives VFD: Definition What is a frequency converter or variable frequency drive? Frequency converters or also named variable frequency drives are electronic devices that convert a (more or less) fixed frequency and voltage into a variable frequency and voltage. This device allows electric motors to be operated with a variable speed. What are frequency converters / variable frequency drives used for? Today, frequency converters are used practically everywhere to operate single-phase and three-phase electric motors with a variable speed. And not just in industrial environments, but in everyday life. Starting from very low power ratings to control washing machine drums up to medium power ratings for pumps used in municipal water supplies.
  • 130.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 130 Engineering Training for Automation and Drives VFD: Electrical Drive Chain
  • 131.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 131 Engineering Training for Automation and Drives VFD: Building Blocks
  • 132.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 132 Engineering Training for Automation and Drives VFD: Electrical Signal Manipulation
  • 133.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 133 Engineering Training for Automation and Drives VFD: Power Circuit
  • 134.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 134 Engineering Training for Automation and Drives VFD: Power Circuit ELCB/ RCCB Contactor
  • 135.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 135 Engineering Training for Automation and Drives VFD: Additional External Components A line reactor supports the overvoltage protection, smooths the harmonics in the line supply and buffers commutation dips. With a line filter, the inverter can achieve a higher radio interference class. The sine-wave filter at the inverter output limits the voltage rate-of-rise and the peak voltages at the motor winding. The maximum permissible length of motor feeder cables is increased to 300 m.
  • 136.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 136 Engineering Training for Automation and Drives VFD: Principle of Operation Principle of Operation of Variable Frequency Drive (VFD): Speed of an induction motor is proportional to the frequency of the supply ( N = 120 f/p ) and by varying the frequency we can obtain the variable speed. But, when the frequency is decreased, the torque increases and thereby motor draw a heavy current. This in turn increases the flux in the motor. Also the magnetic field may reach to the saturation level, if the voltage of the supply is not reduced. Therefore, both the voltage and frequency have to be changed in a constant ratio in order to maintain the flux within the working range. Since the torque is proportional to the magnetic flux, the torque remains constant throughout the operating range of v/f. The figure shows the torque and speed variation of an induction motor for voltage and frequency control. Voltage and Frequency are changed at a constant ratio up to the base speed. Thus the flux and thereby torque remain almost constant up to the base speed. This region is called as a constant torque region. Since the supply voltage can be changed up to the rated value only and hence the speed at rated voltage is the base speed. If the frequency increased, beyond the base speed, the magnetic flux in the motor decreases and thereby torque begins falling off. This is called flux weakening or constant power region. This type of control is called constant v/f control method used in variable frequency drives (VFDs). It is the most popular type of control in industries.
  • 137.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 137 Engineering Training for Automation and Drives VFD: Speed vs. Frequency relation N = Speed; Ns: Stator Speed (Electro-Magnetic), Nr: Rotor Speed (Mechanical) F = Frequency P = Number of pole VFD
  • 138.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 138 Engineering Training for Automation and Drives VFD: Components Operator Panel Control Module Power Module
  • 139.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 139 Engineering Training for Automation and Drives VFD: Motor Name Plate
  • 140.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 140 Engineering Training for Automation and Drives VFD: Drive Control Sources 1.Operator Panel 2.Terminals 3.Communication
  • 141.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 141 Engineering Training for Automation and Drives VFD: Drive Control Sources: Operator Panel START STOP INCREASE DECREASE LCD DISPLAY
  • 142.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 142 Engineering Training for Automation and Drives VFD: Drive Control Sources: Terminals: Push Button/Switch & Pot.
  • 143.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 143 Engineering Training for Automation and Drives VFD: Drive Control Sources: Terminals: PLC & HMI HMI
  • 144.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 144 Engineering Training for Automation and Drives VFD: Drive Connection to PLC through I/O’s
  • 145.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 145 Engineering Training for Automation and Drives VFD: Parametrizing & Commissioning Commissioning and Parameters Programming in VFD • Commissioning is needed for the proper functioning of VFD. • Necessary (Quick Commissioning Parameters) from Motor Nameplate: • Motor Power Rating • Motor rated Voltage, • Motor rated Current, • Motor rated Speed, • Motor rated Frequency, • Motor Power Factor. • 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
  • 146.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 146 Engineering Training for Automation and Drives 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.
  • 147.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 147 Engineering Training for Automation and Drives 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.
  • 148.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 148 Engineering Training for Automation and Drives VFD: HMI Program Normal State: Running State: Error State:
  • 149.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 149 Engineering Training for Automation and Drives VFD: Drive Connection to PLC through Communication
  • 150.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 150 Engineering Training for Automation and Drives VFD: PLC Control of Multiple Drives
  • 151.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 151 Engineering Training for Automation and Drives VFD: Practical Exercise Model: AS2 - 15 In: Single Phase 220VAC, 50/60Hz Out: Three Phase 220VAC, 1.5KW/2Hp Rated Output Current: 8Amp Model: AS2 - 15 Digital Inputs: 6 Digital Output: 1 Analog Inputs: 2 Analog Output: 1
  • 152.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 152 Engineering Training for Automation and Drives VFD: Terminal Wiring Diagram
  • 153.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 153 Engineering Training for Automation and Drives VFD: Power Connections
  • 154.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 154 Engineering Training for Automation and Drives VFD: Control Connections: Analog Inputs
  • 155.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 155 Engineering Training for Automation and Drives VFD: Control Connections: Digital Inputs/Outputs
  • 156.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 156 Engineering Training for Automation and Drives VFD: Hardware Settings
  • 157.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 157 Engineering Training for Automation and Drives VFD: Operator Panel
  • 158.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 158 Engineering Training for Automation and Drives VFD: Example: Change Acceleration Time
  • 159.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 159 Engineering Training for Automation and Drives VFD: Example: Change Maximum Frequency Limit
  • 160.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 160 Engineering Training for Automation and Drives 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
  • 161.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 161 Engineering Training for Automation and Drives 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
  • 162.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 162 Engineering Training for Automation and Drives VFD: Example: Terminal Control of Drive 03 :
  • 163.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 163 Engineering Training for Automation and Drives VFD: Example: PLC Control of Drive 04 : AQ0 DQ0.0 DQ0.1 S7-1200 PLC
  • 164.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 164 Engineering Training for Automation and Drives Encoder Tacho Generator Linear Encoder Rotary Encoder Analog device that produces a voltage proportional to speed. Digital device that produces electrical pulses based on mechanical rotational motion Resolver
  • 165.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 165 Engineering Training for Automation and Drives Encoder Function
  • 166.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 166 Engineering Training for Automation and Drives Encoder Definition
  • 167.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 167 Engineering Training for Automation and Drives 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.
  • 168.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 168 Engineering Training for Automation and Drives Encoder Classification
  • 169.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 169 Engineering Training for Automation and Drives Encoder Types
  • 170.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 170 Engineering Training for Automation and Drives Linear Encoder
  • 171.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 171 Engineering Training for Automation and Drives Incremental Encoder
  • 172.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 172 Engineering Training for Automation and Drives Absolute Encoder
  • 173.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 173 Engineering Training for Automation and Drives 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
  • 174.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 174 Engineering Training for Automation and Drives Rotary Encoder Absolute Encoder Incremental Encoder
  • 175.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 175 Engineering Training for Automation and Drives Incremental Encoder  Incremental encoders are usually supplied with two channels (A & B) that are offset by 90 degrees.  If complements are included (A, B ), the signal is “quadrature”, providing speed of rotation AND direction of rotation. A A Encoder B B
  • 176.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 176 Engineering Training for Automation and Drives Incremental Encoder  Signal A leads B in one direction, B leads A in the reverse direction  Complement pulses, A and B are used to provide electrical noise immunity for the signal as it travels through the cable. A A Encoder B B
  • 177.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 177 Engineering Training for Automation and Drives Incremental Encoder B A Z Marker Although a “Marker” pulse is standard on some encoders, it is additional feature (charge) on many encoders. Ask for one, if you need one. 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.
  • 178.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 178 Engineering Training for Automation and Drives Incremental Encoder
  • 179.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 179 Engineering Training for Automation and Drives Incremental Encoder Output
  • 180.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 180 Engineering Training for Automation and Drives Incremental Encoder Signals
  • 181.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 181 Engineering Training for Automation and Drives Incremental Encoder Interface
  • 182.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 182 Engineering Training for Automation and Drives Absolute Encoder
  • 183.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 183 Engineering Training for Automation and Drives Absolute Encoder
  • 184.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 184 Engineering Training for Automation and Drives Absolute Encoder
  • 185.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 185 Engineering Training for Automation and Drives Absolute Encoder
  • 186.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 186 Engineering Training for Automation and Drives Absolute Encoder
  • 187.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 187 Engineering Training for Automation and Drives Incremental vs. Absolute Encoder
  • 188.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 188 Engineering Training for Automation and Drives 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.  The basic counter instructions are limited to counting events that occur at a rate slower than the scan cycle of the S7-1200 CPU.  The High-speed counter (HSC) function provides the ability to count pulses occurring at a higher rate than the PLC scan cycle.
  • 189.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 189 Engineering Training for Automation and Drives PLC & Encoder -> Max. Frequency
  • 190.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 190 Engineering Training for Automation and Drives PLC & Encoder –> Configuring the HSC 1. Configure HSC in device configuration; CPU properties 2. Configure Digital Input Filters
  • 191.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 191 Engineering Training for Automation and Drives PLC & Encoder -> Programming the HSC
  • 192.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 192 Engineering Training for Automation and Drives PLC & Encoder -> Programming the HSC
  • 193.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 193 Engineering Training for Automation and Drives PLC & Encoder -> Programming the HSC High Speed Counter (HSC) Data Type Default Address 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
  • 194.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 194 Engineering Training for Automation and Drives PID Control An everyday example is the cruise control of a car Today the PID concept is used universally in applications requiring accurate and optimized automatic control.  . A Proportional – Integral – Derivative controller  . PID controller  . Three-Term controller is a feedback control loop mechanism that is widely used in industrial control systems and a variety of other applications requiring continuously modulated control.
  • 195.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 195 Engineering Training for Automation and Drives PID Control: Historical Development Early PID theory was developed by observing the actions of helmsmen in keeping a vessel on course in the face of varying influences such as wind and sea state. Pneumatic PID (three-term) controller. The magnitudes of the three terms (P, I and D) are adjusted by the dials at the top.
  • 196.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 196 Engineering Training for Automation and Drives Electronic Industrial PID Controllers (Process Controllers)
  • 197.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 197 Engineering Training for Automation and Drives Software (PLC) based Industrial PID Controllers
  • 198.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 198 Engineering Training for Automation and Drives PID Control The PID control combines Proportional, Integral and Derivative actions to create a control signal, where each action has a strong characteristic that helps to control the output:  The Proportional action makes the system respond to the present error and enables immediate action in the face of variations or disturbances;  The Integral action eliminates errors such as jumps or steps in a permanent and long term regime;  The Derivative action anticipates the behavior of the process.
  • 199.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 199 Engineering Training for Automation and Drives From Manual Control to Automatic PID Control
  • 200.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 200 Engineering Training for Automation and Drives PID Control: In theory, a controller can be used to control any process that has: 1. a measurable output (PV), 2. a known ideal value for that output (SP), 3. and an input to the process (MV) that will affect the relevant PV. Controllers are used in industry to regulate: temperature, pressure, force, feed rate, flow rate, level chemical composition (component concentrations), weight, position, speed, and practically every other variable for which a measurement exists.
  • 201.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 201 Engineering Training for Automation and Drives PID Control: Principle
  • 202.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 202 Engineering Training for Automation and Drives PID Control: Principle Block diagram of a PID controller. r (t ) is the desired process value or setpoint (SP), e (t ) is the calculated error value, y (t ) is the measured/actual process value (PV), u (t ) is the calculated control variable (CV) or manipulated variable (MV).
  • 203.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 203 Engineering Training for Automation and Drives PID Control: Mathematical Another form:
  • 204.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 204 Engineering Training for Automation and Drives PID Control How Does PID Works? A PID controller continuously calculates an error value = e(t); which is the difference between adesired setpoint SP= r(t) and a measured process variable PV = y(t): r(t) – y(t) , and applies a correction based on proportional, integral, and derivative terms. The controller attempts to minimize the error over time by adjustment of a control variable u(t), such that the control element is adjusted to a new value determined by a weighted sum of the control terms.
  • 205.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 205 Engineering Training for Automation and Drives PID Control: P Term  Term P is proportional to the current value of the SP−PV; error e(t): Kp . e(t) Kp : Proportional Gain • The control output will be proportional to error value. • Using proportional control alone will result in an error between the setpoint and the actual process value called (Steady State error) because it requires a non-zero error to generate the proportional response. • If there is no error, or small error there is no corrective response (Dead Band). • Tuning theory and industrial practice indicate that the proportional term should contribute the bulk of the output change.
  • 206.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 206 Engineering Training for Automation and Drives PID Control: I Term
  • 207.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 207 Engineering Training for Automation and Drives 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: • It is sometimes called "anticipatory (predictive) control", as it is effectively seeking to reduce the effect of the SP − PV error by exerting a control influence generated by the rate of error change. • The more rapid the change, the greater the controlling or damping effect. • Derivative action is seldom used in practice because of its variable impact on system stability in real-world applications.
  • 208.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 208 Engineering Training for Automation and Drives PID Control: Effect of Kp Response of PV to step change of SP vs time, for three values of Kp (Ki and Kd held constant) Oscillation: Unstable Damped: Slow response, less responsive or less sensitive controller Overshoot: Fast response
  • 209.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 209 Engineering Training for Automation and Drives PID Control: Effect of Ki Response of PV to step change of SP vs time, for three values of Ki (Kp and Kd held constant) Faster Response Eliminates the residual steady- state error
  • 210.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 210 Engineering Training for Automation and Drives PID Control: Effect of Kd Response of PV to step change of SP vs time, for three values of Kd (Kp and Ki held constant) Improves settling time and stability
  • 211.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 211 Engineering Training for Automation and Drives PID Control: Setpoint ------ Actual Value ------
  • 212.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 212 Engineering Training for Automation and Drives PID Control: Effects of increasing a parameter independently Parameter Rise time Overshoot Settling time Steady-state error Stability Kp Decrease Increase Small change Decrease Degrade Ki Decrease Increase Increase Eliminate Degrade Kd Minor change Decrease Decrease No effect in theory Improve if Kd small
  • 213.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 213 Engineering Training for Automation and Drives PID Control: Selective use of control terms: Although a PID controller has three control terms, some applications need only one or two terms to provide appropriate control. This is achieved by setting the unused parameters to zero and is called a PI, PD, P or I controller in the absence of the other control actions. PI controllers are fairly common in applications where derivative action would be sensitive to measurement noise, but the integral term is often needed for the system to reach its target value.
  • 214.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 214 Engineering Training for Automation and Drives PID Control: Tuning Control Loop tuning  Tuning a control loop is the adjustment of its control parameters (proportional band/gain, integral gain/reset, derivative gain/rate) to the optimum values for the desired control response. • Stability (no unbounded oscillation) is a basic requirement • Zero Steady State Error • Fast Response to changes and disturbances  PID tuning is a difficult problem, even though there are only three parameters.  There are several methods for tuning a PID loop.
  • 215.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 215 Engineering Training for Automation and Drives PID Control: Tuning Methods Choosing a tuning method Method Advantages Disadvantages Manual tuning No mathematics required; online. Requires experienced personnel. Ziegler–Nichols Proven method; online. Process upset, some trial-and- error, very aggressive tuning. Tyreus Luyben Proven method; online. Process upset, some trial-and- error, very aggressive tuning. Software tools Consistent tuning; online or offline - can employ computer-automated control system design (CAutoD) techniques; may include valve and sensor analysis; allows simulation before downloading; can support non-steady-state (NSS) tuning. Some cost or training involved. Cohen–Coon Good process models. Some mathematics; offline; only good for first-order processes. Åström-Hägglund Can be used for auto tuning; amplitude is minimum so this method has lowest process upset The process itself is inherently oscillatory.
  • 216.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 216 Engineering Training for Automation and Drives PID Control: Manual Tuning
  • 217.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 217 Engineering Training for Automation and Drives PID Control: Ziegler-Nichols Method
  • 218.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 218 Engineering Training for Automation and Drives 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
  • 219.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 219 Engineering Training for Automation and Drives PID Control: S7-1200 PLC & Auto Tuning Method (2) 7. Open the configuration mask of the controller and set the parameters
  • 220.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 220 Engineering Training for Automation and Drives 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
  • 221.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 221 Engineering Training for Automation and Drives PID Control: S7-1200 PLC & Auto Tuning Method (4) 11. Press Start for measurement & after that Start for Pre-tuning
  • 222.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 222 Engineering Training for Automation and Drives PID Control: S7-1200 PLC & Auto Tuning Method (5) 12. After successful tuning parameters obtained can be saved to project
  • 223.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 223 Engineering Training for Automation and Drives PID Control: Exercise: Training Kit PID Simulation Kit The lamp (Q0.0) is to be used to control the temperature. The controller is be started up using the Auto-tune functionality.
  • 224.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 224 Engineering Training for Automation and Drives PID Control: Exercise: Create TAGs Create Tags as in Table
  • 225.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 225 Engineering Training for Automation and Drives PID Control: Exercise: Set PID Block Parameters as in Figure • Select controller type "Temperature“ • Select "°C" as the unit • Set the setpoint as constant e.g. "60“ or use Tag. • Select "Input_PER" as the input and "temperature_sensor" (IW64) as the tag. • Select "Output_PWM" as the output and "heating (bulb)" (O0.0) as the tag.
  • 226.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 226 Engineering Training for Automation and Drives PID Control: Exercise
  • 227.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 227 Engineering Training for Automation and Drives PID Control: Exercise
  • 228.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 228 Engineering Training for Automation and Drives PID Control: Exercise: Prepare data to show on HMI Parameterize the "Setpoint" input with the tag "Setpoint" (MD100) Parameterize the "ScaledInput" output with the tag "Scaled_Input" (MD104).
  • 229.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 229 Engineering Training for Automation and Drives PID Control: Exercise: HMI – I/O Field Displaying actual value and setpoint on the HMI as I/O Fields
  • 230.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 230 Engineering Training for Automation and Drives PID Control: Exercise: HMI - Trend Displaying actual value and setpoint on the HMI as TREND
  • 231.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 231 Engineering Training for Automation and Drives 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.  These devices employ standard industrial data communication protocols such as: Modbus, IEC, and DNP3.0.
  • 232.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 232 Engineering Training for Automation and Drives Introduction to SCADA System: Major Components There are Four essential composing parts of a SCADA system:  Master System/ Central System/ Supervisory System: Human Machine Interface (HMI)  Communication Infrastructures  Remote Terminal Units (RTUs) or Programmable Logic Controllers (PLCs)  Field Devices: Sensors/ Instruments and Actuators
  • 233.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 233 Engineering Training for Automation and Drives Introduction to SCADA System: Typical SCADA HMI
  • 234.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 234 Engineering Training for Automation and Drives Introduction to SCADA System: Architecture: Local/ Wired
  • 235.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 235 Engineering Training for Automation and Drives Introduction to SCADA System: Architecture: Remote/ Wireless
  • 236.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 236 Engineering Training for Automation and Drives Introduction to SCADA System: Major Functions Major Functions of SCADA: A SCADA system performs four major functions:  Data acquisition  Networked data communication  Data presentation  Control
  • 237.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 237 Engineering Training for Automation and Drives Introduction to SCADA System: SCADA vs. HMI HMI SCADA HMI • Small Scale • Close to Process • Usually stand alone • Usually no Data Base connectivity
  • 238.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 238 Engineering Training for Automation and Drives SIMATIC WinCC (TIA Portal) Runtime Software SIMATIC WinCC Runtime Advanced (TIA Portal) - PC-based HMI solution for - single-user systems - directly at the machine. - The range of functions of WinCC Runtime Advanced includes: - Visualizing (graphics) - Alarming (messaging) - Trending (graphs & curves) - Archiving (logging & history) - Recipes - Reporting - Administration What is WinCC RT advanced? - It can be expanded to suit requirements and costs by using optional packages.
  • 239.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 239 Engineering Training for Automation and Drives 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". 5.Double-click "Add new device" and select WinCC Runtime Advanced from the PC System sub folder.
  • 240.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 240 Engineering Training for Automation and Drives 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.
  • 241.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 241 Engineering Training for Automation and Drives 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. 8. Switch to the Network View and enable "Connections" to create an HMI connection. Connect the interfaces of the S7 controller and the Runtime station by drag-and- drop.
  • 242.
    Date: Saturday, January29, 2022 Control & Automation Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 242 Engineering Training for Automation and Drives 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". 10. Open the PG/PC interface on the Runtime station through "Start > Control panel > Set PG/PC interface". 11. Complete the configuration similar to normal HMI and download the project to the S7 controller and the PC Runtime station.