Tia Portal Training
Tia Portal Training
ET-200SP
Siemens SIMATIC S7-1200 PLC
SIMATIC S7-1200: Installation & Mounting Positions
SIMATIC S7-1200 Modules
Siemens SIMATIC S7-1200 PLC
Siemens SIMATIC S7-1200 PLC – CPU1212C
TIA Portal V16.0/V17.0 Software Package
TIA Portal Basic & Professional
Portal View & Project View
Project View
Menu Bar & Toolbar
Project Tree: 1st level
Project Tree: 2nd level
Connection to PLC
Manual PC Ethernet Settings
192.168.0.100
Online Access
Memory Concept & Memory Reset
Add New Device: Hardware Configuration
Inserting / Deleting H.W. Modules
Compiling and Downloading
Downloading to CPU
4
Addresses & Tags
%IB1
%I1.5 %Q0.2
%M25.4 %M26.4
{Size}
Register Size, Data Type & Address
Process Image (Input / Output Tables)
PLC Tags
PLC Tags
Symbolic & Absolute Addressing
Watch Tables
Define Tag while programming
Program Structure
Types of Program Blocks (Functions/ Subroutines)
Cyclic Program Execution
Network / Rung / Segment
Program Editing
Block Call
Compile, Save & Download
Monitor program while running
Physical & Logical status
Normally Open & Normally Closed Signals
Data Types
Elementary Data Types
U- Unsigned
S-Short
D-Double
L-Long
Data Blocks
Binary Logic Operations: AND, OR
Binary Logic Operations: XOR
Binary Logic Operations: ASSIGNEMENT, SET, RESET, NOT
Binary Logic Operations: FLIP FLOP
FBD
LAD
Binary Logic Operations: Edge Trigger
Binary Logic Operations: RLO Edge Evaluation
Binary Logic Operations: SET/ RESET Bit Field (Range of Bits)
Binary Logic Operations: JUMP/ LABEL
Digital Operations: DATA Types
Digital Operations: TON – Timer On-Delay
Digital Operations: Counters
Digital Operations: Comparison
_
Digital Operations: MOVE
Digital Operations: MOVE Block
Digital Operations: IN_RANGE/ OUT_RANGE
Digital Operations: Date & Time of Day
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
Exercises
Exercise No: 1.a: Single Output
Start_PB: I0.0 Green_LED: Q0.0
-----| |----------------------------------------------------------( )
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
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
-----| |--------------------
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
_ __ 66 _
_.
Exercises
Exercise No: 3.a: Delayed Start: TON without latch
T1
Exercise No: 3.b: Delayed Start: TON with latch using Memory bit
Exercise No: 3.c: Run Load for Certain Time: TON with latch using Memory bit
Exercise No: 3.d: Run Load for Certain Time: TON with latch using Memory
bit (reduced circuit)
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
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
------( )
-----| |--------------------
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
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
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
Exercises No. 5b: Traffic Light: Flashing Signal
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
-----| > |--------------| < |----| |------
9
Ladder Logic Elements
Transforming a Circuit Diagram into Ladder Logic Diagram
Transforming a Circuit Diagram into Ladder Logic Diagram
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
Exercise No. 7 : Mixing Tank
(1) Process Diagram
Exercise No. 7 : Mixing Tank
(2) Sequence Of Operation
Exercise No. 7 : Mixing Tank
(3) Tag List, Symbol Table, Variable Table
Exercise No. 7 : Mixing Tank
(4) PLC Program
Exercise No. 7 : Mixing Tank
Exercise No. 7 : Mixing Tank
Exercise No. 7 : Mixing Tank
➢ A/D Convertor
➢ D/A Convertor
➢ Resolution
➢ Conversion rate
1
0 - 10VDC
4 - 20mA
2 0 - 27648
Common Ranges of Analog Signals
Analog Sensor Connection to CPU Integrated Analog Inputs
Analog Values
_
Analog Value Processing
Analog Input Handling:
_
Analog Value Processing
_
HMI: Wizard
HMI: Manual Configuration of IP
HMI: Manual Networking to PLC
_
HMI: Manual Connection to PLC
HMI Root Screen
HMI Objects
HMI Major Functions
_
Setting the transfer properties and assigning the IP address
_
WinCC user interface
Planning the screen structure
Program Structure
Types of Program Blocks (Functions/ Subroutines)
Reusable Functions: Tag Types
Exercise No.1: Reusable Function for Analog Scaling
Exercise No.2: Reusable Function for Alarms
Reusable Functions: Parameter Assignable Block
Reusable Functions: Declaration of Formal Parameters
Reusable Functions: Editing Parameter Assignable Block
_
Reusable Functions: Calling Parameter Assignable Block
Reusable Functions: Using FB and Multiple Instances DB
_
Reusable Functions: Block Interface for FB
_
VSD
VSD
_
VFD: Definition
_
VFD: Electrical Drive Chain
VFD: Building Blocks
VFD: Electrical Signal Manipulation
_
VFD: Power Circuit
VFD: Power Circuit
Contactor
ELCB/
RCCB
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.
VFD: Principle of Operation
Principle of Operation of Variable Frequency
Drive (VFD):
VFD
Operator
Panel Power
Module
Control
Module
VFD: Motor Name Plate
VFD: Drive Control Sources
1. Operator Panel
2. Terminals
3. Communication
VFD: Drive Control Sources: Operator Panel
LCD DISPLAY
INCREASE
DECREASE
STOP
START
_
VFD: Drive Control Sources: Terminals: Push Button/Switch & Pot.
VFD: Drive Control Sources: Terminals: PLC & HMI
HMI
VFD: Drive Connection to PLC through I/O’s
VFD: Parametrizing & Commissioning
Commissioning and Parameters Programming in VFD
• Commissioning is needed for the proper functioning of VFD.
• Advanced commissioning: Give the details of all the digital and analog inputs
and outputs:
• Digital inputs: Start command and Speed Selection command
• Digital Outputs: Status of Drive Running and Drive in Fault etc.
• Analog Inputs: Speed setpoint Input 1 and/or Speed Input 2
• Analog Outputs: Current and Frequency of Motor
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.
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.
_
VFD: HMI Program
Normal State: Running State:
Error State:
VFD: Drive Connection to PLC through Communication
VFD: PLC Control of Multiple Drives
VFD: Practical Exercise
_
VFD: Control Connections: Digital Inputs/Outputs
_
VFD: Hardware Settings
VFD: Operator Panel
VFD: Example: Change Acceleration Time
VFD: Example: Change Maximum Frequency Limit
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
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
VFD: Example: Terminal Control of Drive
03 :
VFD: Example: PLC Control of Drive
04 :
S7-1200 PLC
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
Encoder Function
Encoder Definition
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.
_
Encoder Classification
Encoder Types
Linear Encoder
Incremental Encoder
Absolute Encoder
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
Rotary Encoder
Incremental Encoder Absolute Encoder
Incremental Encoder
A
A
B
Encoder
B
Incremental Encoder
A
A
B
Encoder
B
Incremental Encoder
Marker
Z
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.
2. Configure Digital
Input Filters
PLC & Encoder -> Programming the HSC
_
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
PID Control
is a feedback control
loop mechanism that is widely used
in industrial control systems and a
variety of other applications requiring
continuously modulated control.
An everyday example is the cruise control of a car
Another form:
PID Control
How Does PID Works?
• The more rapid the change, the greater the controlling or damping
effect.
Oscillation: Unstable
Response of PV to step change of SP vs time, for three values of Kp (Ki and Kd held constant)
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)
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)
PID Control:
Setpoint
------
Actual Value
------
PID Control:
Steady-state
Parameter Rise time Overshoot Settling time Stability
error
No effect in Improve
Kd Minor change Decrease Decrease
theory if Kd small
PID Control:
Selective use of control terms:
➢ Communication Infrastructures
➢ Data acquisition
➢ Networked data communication
➢ Data presentation
➢ Control
Introduction to SCADA System: SCADA vs. HMI
HMI
• Small Scale
• Close to Process
• Usually stand alone
• Usually no Data Base
connectivity
SCADA HMI
SIMATIC WinCC (TIA Portal) Runtime Software
What is WinCC RT advanced?