100% found this document useful (4 votes)
1K views

Industrial Control & Automation Training Course Part 2-2022

The document discusses programmable logic controllers and the Siemens SIMATIC S7 family of PLCs. It describes the different performance grades of SIMATIC PLCs including the S7-1200 and its modules. It also discusses the TIA Portal software for programming Siemens PLCs and how to configure hardware and connect to a PLC in the software.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (4 votes)
1K views

Industrial Control & Automation Training Course Part 2-2022

The document discusses programmable logic controllers and the Siemens SIMATIC S7 family of PLCs. It describes the different performance grades of SIMATIC PLCs including the S7-1200 and its modules. It also discusses the TIA Portal software for programming Siemens PLCs and how to configure hardware and connect to a PLC in the software.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 242

Industrial Control

& Automation
Part 2: Programmable Logic Control

‫أﻛﺎدﯾﻣﯾﺔ ﻗﺎﻓﻠﺔ اﻟﻌﻠوم ﻟﻼﺳﺗﺷﺎرات واﻟﺗدرﯾب‬


Science Caravan Academy

Eng. Rami El-Naqa

Amman - 2022

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 1
Hardware components used in Programmable Automation

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 2
Siemens SIMATIC S7 Family

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 3
Performance Grades of SIMATIC PLCs

ET-200SP

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 4
Siemens SIMATIC S7-1200 PLC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 5
SIMATIC S7-1200: Installation & Mounting Positions

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 6
SIMATIC S7-1200 Modules

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 7
Siemens SIMATIC S7-1200 PLC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 8
Siemens SIMATIC S7-1200 PLC – CPU1212C

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 9
TIA Portal V16.0/V17.0 Software Package

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 10
TIA Portal Basic & Professional

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 11
Portal View & Project View

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 12
Project View

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 13
Menu Bar & Toolbar

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 14
Project Tree: 1st level

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 15
Project Tree: 2nd level

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 16
Connection to PLC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 17
Manual PC Ethernet Settings

192.168.0.100

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 18
Online Access

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 19
Memory Concept & Memory Reset

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 20
Add New Device: Hardware Configuration

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 21
Inserting / Deleting H.W. Modules

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 22
Compiling and Downloading

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 23
Downloading to CPU

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 24
Addresses & Tags

%IB1

%I1.5 %Q0.2

%M25.4 %M26.4

{Size}

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 25
Register Size, Data Type & Address

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 26
Process Image (Input / Output Tables)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 27
PLC Tags

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 28
PLC Tags

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 29
Symbolic & Absolute Addressing

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 30
Watch Tables

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 31
Define Tag while programming

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 32
Program Structure

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 33
Types of Program Blocks (Functions/ Subroutines)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 34
Cyclic Program Execution

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 35
Network / Rung / Segment

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 36
Program Editing

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 37
Block Call

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 38
Compile, Save & Download

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 39
Monitor program while running

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 40
Physical & Logical status

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 41
Normally Open & Normally Closed Signals

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 42
Data Types

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 43
Elementary Data Types

U- Unsigned
S-Short
D-Double
L-Long

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 44
Data Blocks

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 45
Binary Logic Operations: AND, OR

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 46
Binary Logic Operations: XOR

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 47
Binary Logic Operations: ASSIGNEMENT, SET, RESET, NOT

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 48
Binary Logic Operations: FLIP FLOP

FBD

LAD

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 49
Binary Logic Operations: Edge Trigger

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 50
Binary Logic Operations: RLO Edge Evaluation

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 51
Binary Logic Operations: SET/ RESET Bit Field (Range of Bits)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 52
Binary Logic Operations: JUMP/ LABEL

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 53
Digital Operations: DATA Types

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 54
Digital Operations: TON – Timer On-Delay

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 55
Digital Operations: Counters

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 56
Digital Operations: Comparison

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 57
Digital Operations: MOVE

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 58
Digital Operations: MOVE Block

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 59
Digital Operations: IN_RANGE/ OUT_RANGE

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 60
Digital Operations: Date & Time of Day

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 61
Exercises
Exercise No: 1.a
Objective: Associate Input(s) to Output(s)
Language Elements: Contacts & Coils

Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 62
Exercises
Exercise No: 1.a: Single Output
Start_PB: I0.0 Green_LED: Q0.0
-----| |----------------------------------------------------------( )

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
----------------------------( )

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 63
Exercises
Exercise No: 2.a
Objective: Latch, Self Hold or Sealing Circuit
Language Elements: Contacts & Coils

Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 64
Exercises
Exercise No: 2.a: Latch
Start_PB: I0.0 Green_LED: Q0.0
-----| |------------------------------------------------------------( )
Green_LED: Q0.0
-----| |--------------------
Exercise No: 2.b: Unlatch using physically NO Stop PB
Start_PB: I0.0 Stop_PB: I0.1 Green_LED: Q0.0
-----| |--------------------------| / |-----------------------------( )
Green_LED: Q0.0
-----| |--------------------
Exercise No: 2.c: Unlatch using physically NC Stop PB
Start_PB: I0.0 Stop_PB: I0.1 Green_LED: Q0.0
-----| |--------------------------| |-----------------------------( )
Green_LED: Q0.0
-----| |--------------------
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 65
Exercises
Exercise No: 3.a
Objective: On Delay Timer
Language Elements: Contacts, Coils & Box (Block)

Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 66
Exercises
Exercise No: 3.a: Delayed Start: TON without latch
T1

Start_PB: I0.0 Green_LED: Q0.0


-----| |------------------------------------------------------------( )

Exercise No: 3.b: Delayed Start: TON with latch using Memory bit
Start_PB: I0.0 Stop_PB: I0.1 M0.0
-----| |--------------------------| |-----------------------------( )
M0.0
-----| |-------------------- T1

M0.0 Green_LED: Q0.0


-----| |------------------------------------------------------------( )

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 67
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
-----| |--------------------
T1

Green_LED: Q0.0 M0.0


-----| |------------------------------------------------------------( )

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 68
Exercises

Exercise No: 3.d: Run Load for Certain Time: TON with latch using Memory
bit (reduced circuit)

Start_PB: I0.0 M0.0 Green_LED: Q0.0


-----| |--------------------------| / |--------------------------------( )
Green_LED: Q0.0
T1
-----| |--------------------
M0.0
--( )

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 69
Exercises
Exercise No: 4.a
Objective: Time Sequencer of (n) loads ..e.g. 3 loads
Language Elements: Contacts, Coils & Box (Block)

Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 70
Exercises
Exercise No: 4.a: Time Sequencer using separate timer for each load
Start_PB: I0.0 M0.0 Green_LED: Q0.0
-----| |--------------------------| / |--------------------------------( )
T1
M0.0
Green_LED: Q0.0
------( )
-----| |--------------------
M0.0 M0.1 Red_LED: Q0.1
-----| |--------------------------| / |--------------------------------( )
T2
M0.1
Red_LED: Q0.1
------( )
-----| |--------------------
M0.1 M0.2 Blue_LED: Q0.2
-----| |--------------------------| / |--------------------------------( )
T3
M0.2
Blue_LED: Q0.2
------( )
-----| |--------------------
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 71
Exercises
Exercise No: 4.b: Time Sequencer using one timer for all load
Start_PB: I0.0 M0.1 M0.0
-----| |--------------------------| / |--------------------------------( )
T1
M0.1
M0.0
------( )
-----| |--------------------

T1 T1 Q0.0
-----| > |-----------------------| < |--------------------------------( )
0 3
T1 T1 Q0.1
-----| > |-----------------------| < |--------------------------------( )
3 5

T1 T1 Q0.2
-----| > |-----------------------| < |--------------------------------( )
5 9

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 72
Exercises
Exercise No: 5
Objective: Traffic Light Control
Language Elements: Contacts, Coils
& Box (Block)
Equipment:
PLC: S7-1200, CPU 1212C AC/DC/RLY
Inputs: I0.0: NO Green Push Button
I0.1: NC Red Push Button
I0.2: Selector Switch
Outputs: Q0.0: Green LED
Q0.1: Red LED
Q0.2: Blue LED

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 73
Exercises No. 5a: Traffic Light: Time Sequencer using one timer
Start_PB: I0.0 M0.1 M0.0
-----| |-----------------| / |-------------------------( )
T1
M0.0 M0.1
-----| |---- ------( )

T1 T1 RED: Q0.0
-----| > |--------------| < |-------------------------( )
0 2
T1 T1 AMBER: Q0.1
-----| > |--------------| < |-------------------------( )
2 3
-----| > |--------------| < |----
6 7
T1 T1 GREEN: Q0.2
-----| > |--------------| < |-------------------------( )
3 6
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 74
Exercises No. 5b: Traffic Light: Flashing Signal

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 75
Exercises No. 5b: Traffic Light: Flashing Signal
Start Signal M0.1 M0.0
-----| |-----------------| / |-------------------------( )
T1
M0.0 M0.1
-----| |---- ------( )
T1 T1 RED: Q0.0
-----| > |--------------| < |-------------------------( )
0 2
T1 T1 AMBER: Q0.1
-----| > |--------------| < |-------------------------( )
2 3
-----| > |--------------| < |----
9 10
T1 T1 GREEN: Q0.2
-----| > |--------------| < |------------------------( )
3 6 Flasher
-----| > |--------------| < |----| |------
6 9
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 76
Ladder Logic Elements

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 77
Transforming a Circuit Diagram into Ladder Logic Diagram

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 78
Transforming a Circuit Diagram into Ladder Logic Diagram

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 79
Exercise No. 6 : Car Park
Car Exit
Counter Actuator
Q0.1
Exit
Exit Sensor 2
Sensor 1 I0.3
I0.2

Exit

Car Park
Full
Indicator
Lamp
Entrance
Q0.2
Sensor 2
I0.1
Entrance

Entrance Entrance
Sensor 1 Actuator
I0.0 Q0.0

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 80
Exercise No. 7 : Mixing Tank
(1) Process Diagram

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 81
Exercise No. 7 : Mixing Tank
(2) Sequence Of Operation

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 82
Exercise No. 7 : Mixing Tank
(3) Tag List, Symbol Table, Variable Table

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 83
Exercise No. 7 : Mixing Tank
(4) PLC Program

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 84
Exercise No. 7 : Mixing Tank

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 85
Exercise No. 7 : Mixing Tank

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 86
Exercise No. 7 : Mixing Tank

(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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 87
Exercise No. 7 : Mixing Tank

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 88
Analog Value Processing in PLC

 A/D Convertor
 D/A Convertor

 Resolution
 Conversion rate

1
0 - 10VDC
4 - 20mA

2 0 - 27648

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 89
Common Ranges of Analog Signals

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 90
Analog Sensor Connection to CPU Integrated Analog Inputs

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 91
Analog Values

Process Sensor/ Analog Input CPU HMI Operator


Transmitter
Physical Electrical Converted Physical Display/
Quantity Analog Digital Scaling Quantity Control
Quantity Quantity
-Temperature
-Pressure 0-10VDC 0-27648 Scaled Engineering Display/
-Level 4-20mA Value Units Control
-Flow
-Speed

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 92
Analog Values

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 93
Analog Value Scaling

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 94
Analog Value Scaling

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 95
Analog Value Processing
Analog Input Handling:

Analog Output Handling:

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 96
Analog Value Processing

 Use Conversion Operations


 Norm_X
 Scale_X

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 97
Exercise No.1 : Analog Signal Processing
Objective: Analog Input Reading & Scaling to 50m
Language Elements: Conversion Operations
Equipment: -PLC: S7-1200, CPU 1212C AC/DC/RLY
-Input: IW64: Potentiometer
230VAC
To 24VDC
0 – 10VDC
24VDC To
Power 10VDC
Supply

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 98
HMI Selection

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 99
HMI Selection

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 100
HMI: Wizard

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 101
HMI: Manual Configuration of IP

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 102
HMI: Manual Networking to PLC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 103
HMI: Manual Connection to PLC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 104
HMI Root Screen

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 105
HMI Objects

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 106
HMI Major Functions

• 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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 107
Exercise : HMI

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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 108
Design of the KTP700 Basic for PROFINET

① 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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 109
Settings on Touch Panel KTP700 Basic/Start Center

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 110
Setting the transfer properties and assigning the IP address

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 111
WinCC user interface

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 112
Planning the screen structure

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 113
Program Structure

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 114
Types of Program Blocks (Functions/ Subroutines)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 115
Reusable Functions: Tag Types

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 116
Exercise No.1: Reusable Function for Analog Scaling

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 117
Exercise No.2: Reusable Function for Alarms

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 118
Reusable Functions: Parameter Assignable Block

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 119
Reusable Functions: Declaration of Formal Parameters

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 120
Reusable Functions: Editing Parameter Assignable Block

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 121
Reusable Functions: Calling Parameter Assignable Block

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 122
Reusable Functions: Using FB and Multiple Instances DB

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 123
Reusable Functions: Block Interface for FB

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 124
VSD

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 125
VSD ‫ﻣﻐ ِﯾر ﺳرﻋﺔ اﺳﺗﺎﺗﯾﻛﻲ‬

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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 126
VSD: Functions & Applications
Variable frequency drives are used in diverse industrial applications:
for example:
• Pumping, ventilating and compressing
• Positioning, processing, moving and machining
These functions are used in many industry sectors:
• Food & beverage industry
• Automotive industry
• Heating, ventilating and air conditioning (HVAC)
• Water and wastewater industry
• Paper industry
• Oil & gas
• Chemical industry
• Logistics
• Wind turbines, hydroelectric power
and photovoltaic systems
• Marine

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 127
VSD: Types
Types of Industrial Motor Drive Systems:

• 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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 128
VFD: Definition

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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 129
VFD: Electrical Drive Chain

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 130
VFD: Building Blocks

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 131
VFD: Electrical Signal Manipulation

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 132
VFD: Power Circuit

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 133
VFD: Power Circuit

Contactor

ELCB/
RCCB

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 134
VFD: Additional External Components

A line reactor supports With a line filter, The sine-wave filter at the inverter
the overvoltage the inverter can output limits the voltage rate-of-rise
protection, smooths the achieve a and the peak voltages at the motor
harmonics in the line higher radio winding. The maximum permissible
supply and buffers interference length of motor feeder cables is
commutation dips. class. increased to 300 m.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 135
VFD: Principle of Operation
Principle of Operation of Variable Frequency
Drive (VFD):

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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 136
VFD: Speed vs. Frequency relation

VFD

N = Speed; Ns: Stator Speed (Electro-Magnetic),


Nr: Rotor Speed (Mechanical)
F = Frequency
P = Number of pole

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 137
VFD: Components

Operator
Panel Power
Module

Control
Module

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 138
VFD: Motor Name Plate

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 139
VFD: Drive Control Sources

1. Operator Panel

2. Terminals

3. Communication

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 140
VFD: Drive Control Sources: Operator Panel

LCD DISPLAY

INCREASE

DECREASE

STOP

START

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 141
VFD: Drive Control Sources: Terminals: Push Button/Switch & Pot.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 142
VFD: Drive Control Sources: Terminals: PLC & HMI
HMI

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 143
VFD: Drive Connection to PLC through I/O’s

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 144
VFD: Parametrizing & Commissioning
Commissioning and Parameters Programming in VFD
• Commissioning is needed for the proper functioning of VFD.

• 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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 145
VFD: PLC Program

NETWORK 1: Checking whether the VFD is ready to start. This signal will come when all
the conditions are healthy as well as safety and power feedbacks are active.

NETWORK 2: When start button is pressed, VFD Drive_DO bit will be set, if
Ready_to_Start and No Error will be there.

NETWORK 3: When stop button is pressed it will reset the Drive_DO bit.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 146
VFD: PLC Program
NETWORK 4: This logic is required for safety: as soon as Drive_DO bit is set and if for any reason the
VFD will not operate, then after predefined wait time, it will reset the Drive_DO bit and generate Error.

NETWORK 5: If the VFD is taking more current and gives overload error, then it will reset Drive_DO bit
and generate Error.

NETWORK 6: if you select speed input as a remote then it will activate Speed Selection bit resulting
Speed_DO present.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 147
VFD: HMI Program
Normal State: Running State:

Error State:

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 148
VFD: Drive Connection to PLC through Communication

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 149
VFD: PLC Control of Multiple Drives

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 150
VFD: Practical Exercise

Model: AS2 - 15 Model: AS2 - 15


In: Single Phase 220VAC, 50/60Hz Digital Inputs: 6
Out: Three Phase 220VAC, 1.5KW/2Hp Digital Output: 1
Rated Output Current: 8Amp Analog Inputs: 2
Analog Output: 1

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 151
VFD: Terminal Wiring Diagram

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 152
VFD: Power Connections

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 153
VFD: Control Connections: Analog Inputs

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 154
VFD: Control Connections: Digital Inputs/Outputs

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 155
VFD: Hardware Settings

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 156
VFD: Operator Panel

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 157
VFD: Example: Change Acceleration Time

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 158
VFD: Example: Change Maximum Frequency Limit

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 159
VFD: Example: Keypad/Display Control of Drive
Example 01: - Use the Up/Down Arrows to adjust speed
- Use the FWD/REV buttons to run the motor
- Use the STOP button to stop the motor

Parameters:
CD 10 = 0
CD 12 = 0

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 160
VFD: Example: Analog Pot. Control of Drive
Example 02 - Use the FWD/REV buttons to run the motor
- Use the STOP button to stop the motor

Parameters:
CD 10 = 1
CD 12 = 0

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 161
VFD: Example: Terminal Control of Drive
03 :

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 162
VFD: Example: PLC Control of Drive
04 :

AQ0 DQ0.0 DQ0.1

S7-1200 PLC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 163
Encoder
Rotary Encoder Linear Encoder Tacho Generator
Digital device that produces electrical pulses Analog device that
based on mechanical rotational motion produces a voltage
proportional to speed.

Resolver

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 164
Encoder Function

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 165
Encoder Definition

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 166
Encoder Types
• Incremental Encoder
– Provides identical electronic pulses at each division of
shaft rotation.
– Used for position or speed/velocity measurements.

• Absolute Encoder
– Provides a unique electronic piece of information at
each division of shaft position.
– Used for position measurement.

• Resolver
– Provides sine wave and cosine wave to provide both
velocity and position feedback.

• Tacho generator
– Provides analog voltage proportional to speed.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 167
Encoder Classification

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 168
Encoder Types

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 169
Linear Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 170
Incremental Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 171
Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 172
Encoder Technologies

Sensing Technologies:

 Magnetic (Magneto-resistive)
 Tough and simple
 Heavy Duty enough for Mills
 No Optics (no glass breakage)
 Limited to 2048 PPR

 Optical
 Higher Resolution (up to 10,000 PPR)
 Better signal quality
 Shafted and Hollow shaft designs

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 173
Rotary Encoder
Incremental Encoder Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 174
Incremental Encoder

 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

B
Encoder
B

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 175
Incremental Encoder

 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

B
Encoder
B

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 176
Incremental Encoder
A marker pulse (reference, index or Z pulse) is a once per
revolution pulse that occurs at precisely the same
mechanical point in a 360º revolution of the encoder shaft.

Marker
Z

Although a “Marker” pulse is standard on some encoders, it is


additional feature (charge) on many encoders. Ask for one, if
you need one.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 177
Incremental Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 178
Incremental Encoder Output

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 179
Incremental Encoder Signals

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 180
Incremental Encoder Interface

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 181
Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 182
Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 183
Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 184
Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 185
Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 186
Incremental vs. Absolute Encoder

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 187
PLC & Encoder -> HSC
For S7-1200 PLC V4.x why to use HSC:

Hardware consideration:
The default digital input filter setting is: 6.4 ms,
which limits the maximum counting rate to: 78 Hz.

You can change the filter settings to count higher or lower frequencies
depending on the design of your system.

Software Consideration:
In normal scan cycle PLC updates digital inputs once per cycle based on
a variable program speed; which is usually greater than 1 ms.

 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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 188
PLC & Encoder -> Max. Frequency

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 189
PLC & Encoder –> Configuring the HSC
1. Configure HSC in
device configuration;
CPU properties

2. Configure Digital
Input Filters

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 190
PLC & Encoder -> Programming the HSC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 191
PLC & Encoder -> Programming the HSC

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 192
PLC & Encoder -> Programming the HSC

High
Speed Data Default
Counter Type Address
(HSC)
HSC 1 DInt ID 1000
HSC 2 DInt ID 1004
HSC 3 DInt ID 1008
HSC 4 DInt ID 1012
HSC 5 DInt ID 1016
HSC 6 DInt ID 1020

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 193
PID Control

 . 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.
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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 194
PID Control: Historical Development

Early PID theory was developed by


observing the actions of helmsmen in Pneumatic PID (three-term)
keeping a vessel on course in the face of controller. The magnitudes of
varying influences such as wind and sea the three terms (P, I and D) are
state. adjusted by the dials at the top.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 195
Electronic Industrial PID Controllers (Process Controllers)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 196
Software (PLC) based Industrial PID Controllers

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 197
PID Control

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.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 198
From Manual Control to Automatic PID Control

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 199
PID Control:

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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 200
PID Control: Principle

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 201
PID Control: Principle

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).

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 202
PID Control: Mathematical

Another form:

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 203
PID Control
How Does PID Works?

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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 204
PID Control: P Term
 Term P is proportional to the current value of the SP−PV; error e(t):

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.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 205
PID Control: I Term

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 206
PID Control: D Term
 Term D is a best estimate of the future trend of the SP − PV error,
based on its current rate of change:

• 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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 207
PID Control: Effect of Kp

Oscillation: Unstable

Overshoot: Fast response

Damped: Slow response,


less responsive or less
sensitive controller

Response of PV to step change of SP vs time, for three values of Kp (Ki and Kd held constant)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 208
PID Control: Effect of Ki

Eliminates
the
Faster residual
Response steady-
state error

Response of PV to step change of SP vs time, for three values of Ki (Kp and Kd held constant)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 209
PID Control: Effect of Kd

Improves
settling
time and
stability

Response of PV to step change of SP vs time, for three values of Kd (Kp and Ki held constant)

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 210
PID Control:

Setpoint
------

Actual Value
------

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 211
PID Control:

Effects of increasing a parameter independently

Steady-state
Parameter Rise time Overshoot Settling time Stability
error

Kp Decrease Increase Small change Decrease Degrade

Ki Decrease Increase Increase Eliminate Degrade

No effect in Improve
Kd Minor change Decrease Decrease
theory if Kd small

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 212
PID Control:
Selective use of control terms:

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.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 213
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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 214
PID Control: Tuning Methods
Choosing a tuning method
Method Advantages Disadvantages

Manual tuning No mathematics required; online. Requires experienced personnel.

Process upset, some trial-and-


Ziegler–Nichols Proven method; online.
error, very aggressive tuning.
Process upset, some trial-and-
Tyreus Luyben Proven method; online.
error, very aggressive tuning.
Consistent tuning; online or offline - can employ
computer-automated control system design
(CAutoD) techniques; may include valve and
Software tools Some cost or training involved.
sensor analysis; allows simulation before
downloading; can support non-steady-state
(NSS) tuning.
Some mathematics; offline; only
Cohen–Coon Good process models.
good for first-order processes.
Can be used for auto tuning; amplitude is
The process itself is inherently
Åström-Hägglund minimum so this method has lowest process
oscillatory.
upset

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 215
PID Control: Manual Tuning

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 216
PID Control: Ziegler-Nichols Method

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 217
PID Control: S7-1200 PLC & Auto Tuning Method (1)
1. Call PID_Compact controller in a cyclic
interrupt by adding new Organization block
2. Select cyclic interrupt OB35
3. Set Cycle Time to 50 ms
4. From Technology Instructions
Drag & Drop the PID_Compact
5. Assign a name for the
instance data block
and apply it with OK.
6. Expand the view of the
block by clicking the
up arrow.
Interconnect this block as
shown in figure:
setpoint, actual value,
manipulated variable
and Reset input for
deactivating the controller

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 218
PID Control: S7-1200 PLC & Auto Tuning Method (2)
7. Open the configuration mask of the controller and set the parameters

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 219
PID Control: S7-1200 PLC & Auto Tuning Method (3)
8. Save, compile & download the project to the PLC
9. Activate the monitoring function
10. Start the PID commissioning & tuning by clicking the icon

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 220
PID Control: S7-1200 PLC & Auto Tuning Method (4)
11. Press Start for measurement & after that Start for Pre-tuning

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 221
PID Control: S7-1200 PLC & Auto Tuning Method (5)
12. After successful tuning parameters obtained can be saved to project

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 222
PID Control: Exercise: Training Kit

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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 223
PID Control: Exercise: Create TAGs

Create Tags as in Table

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 224
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.
Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 225
PID Control: Exercise

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 226
PID Control: Exercise

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 227
PID Control: Exercise: Prepare data to show on HMI

Parameterize the "Setpoint" input with the tag "Setpoint" (MD100)


Parameterize the "ScaledInput" output with the tag "Scaled_Input" (MD104).

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 228
PID Control: Exercise: HMI – I/O Field

Displaying actual value and setpoint on the HMI as I/O Fields

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 229
PID Control: Exercise: HMI - Trend

Displaying actual value and setpoint on the HMI as TREND

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 230
Introduction to SCADA System
SCADA stands for:
Supervisory Control And Data Acquisition.
 A SCADA system is an automation system which is used to gather
data from sensors and instruments located locally or at remote sites
and to transmit and display this data at a central site for control or
monitoring purposes.
 The collected data is usually viewed on one or more SCADA Host
computers located at the central or master site.
 A layer of equipment between the remote sensors/ instruments and the
central computer is used to digitize then packetize the sensor signals
so that they can be digitally transmitted via an industrial
communications protocol over long distances to the central site;
such devices include: RTU, PLC, IEDs, and Smart devices.

 These devices employ standard industrial data communication


protocols such as: Modbus, IEC, and DNP3.0.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 231
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

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 232
Introduction to SCADA System: Typical SCADA HMI

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 233
Introduction to SCADA System: Architecture: Local/ Wired

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 234
Introduction to SCADA System: Architecture: Remote/ Wireless

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 235
Introduction to SCADA System: Major Functions

Major Functions of SCADA:

A SCADA system performs four major functions:

 Data acquisition
 Networked data communication
 Data presentation
 Control

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 236
Introduction to SCADA System: SCADA vs. HMI

HMI

• Small Scale
• Close to Process
• Usually stand alone
• Usually no Data Base
connectivity

SCADA HMI

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 237
SIMATIC WinCC (TIA Portal) Runtime Software
What is WinCC RT advanced?

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
- It can be expanded to suit requirements and costs by using optional packages.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 238
SIMATIC WinCC Advanced: Practical
1.Create a new project in the TIA
Portal.
2.In the Project View you double-
click "Add new device" and select
the S7 controller. Click the "OK"
button to add the controller.
3.Through the Hardware Catalog
you add more components to the
Device View (like power supply, IO
modules).
4.Click the PROFINET interface of
the S7 controller and assign a
unique IP address and the
associated subnet mask under
"Properties > General > Ethernet
Addresses".

5.Double-click "Add new device"


and select WinCC Runtime
Advanced from the PC System
sub folder.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 239
SIMATIC WinCC Advanced: Practical
6. In the Device View in the Hardware
Catalog you select the "IE General"
communication module and double-click to
add this to the PC station.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 240
SIMATIC WinCC Advanced: Practical
7. Click the "IE General" interface
just added. Under "Properties >
General > PROFINET interface [X1]
> Ethernet addresses" you enter the
IP address and subnet mask of the
Runtime station.

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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 241
SIMATIC WinCC Advanced: Practical
9. Click the HMI connection.
Under "Properties > General >
Access point" you enter the name
you are using in the PG/PC
interface of the Runtime station.
In this example we use the preset
name "S7ONLINE".

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.

Control & Automation Date: Saturday, January 29, 2022 Engineering Training for
Automation and Drives
Science Caravan Academy 2022. © All rights reserved. File: Industrial Control & Automation _ 242

You might also like