sitrain introduction tia portal - miecompetition.orgmiecompetition.org/media/1097/siemens.pdf ·...
TRANSCRIPT
© Siemens AG 2011. All rights reserved.
Introduction
TIA Portal
SITRAIN
Unrestricted
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 2 Siemens AG © 2011
Orange juice factory
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 3 Siemens AG © 2011
HMI System
• HMI and SCADA
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 4 Siemens AG © 2011
Automation System
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 5 Siemens AG © 2011
CP:
- Point-to Point
- PROFIBUS
- PROFINET
- Industrial Ethernet
PS
(optional)
CPU IM
(optional)
SM:
DI
SM:
DO
SM:
AI
SM:
AO
FM:
- Counting
- Positioning
- Closed-loopcontrol
S7-300: Modules
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 6 Siemens AG © 2011
Testing User Programs with S7- PLCSIM
S7-PLCSIM: Simulation software for offline testing of PLC programs
• Functional program test
- on a simulated CPU
- with display/modify I/O
• Testing of user blocks in
- LAD, FBD, STL, S7-SCL,
- S7-GRAPH,
- WinCC
Advantages
• Faults can be detected early and eliminated
• Many tests are already possible in the office without the final hardware
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 7 Siemens AG © 2011
Communicating with SIMATIC NET
Data management level
Control level
Field level
Actor-Sensor-
Industrial Ethernet / PROFINET
PROFIBUS / MPI
AS-Interfacelevel
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 8 Siemens AG © 2011
SIMATIC S7 Overview
SIMATIC HMI
AS-Interface
SIMATIC PG
SIMATIC PC
SIMATIC Software
SIMATIC
Controller
PROFIBUS-DP
Industrial Ethernet/PROFINET
PROFIBUS
MPI - Network SIMATIC NET
PC-based
PROFINET
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 9 Siemens AG © 2011
Runtime (RT) RT options
Components of WinCC V13
Engineering system (ES) Configuration device PC/PG
HMI devices
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 10 Siemens AG © 2011
DRIVES Technology
Consistent drives spectrum for all applications
• From standard drives with 100 W up to large drives with 50 MW
• Motion and vector control
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 11 Siemens AG © 2011
The SINAMICS Family
SINAMICS G120
(single drive)
Frequency Converter for Standard Applications:
SINAMICS G110
(single drive)
SINAMICS G150
(single drive)
Frequency Converter for Motion-Contol Applications :
SINAMICS S120
Blocksize
(single drive)
Booksize
(single drive)
SINAMICS S120
SINAMICS S120
Chassis
Cabinet Module
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 12 Siemens AG © 2011
Components of the project view
Project window
Working area
Inspector window
Task cards
Details window
Switching to the portal view
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 13 Siemens AG © 2011
Window sections in the working area
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 14 Siemens AG © 2011
Simulation of CPU and HMI devices
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 15 Siemens AG © 2011
DI / DQ AI DI DQ
Training unit as a plant
with conveyor belt and touchpanel
0 8 1 5
0 2 4 8V
Q4.1
Q5.0
Actual number
“QW_DigDisp“ / QW6
Industrial Ethernet
PROFIBUS DP
DI
I 0.1
I 0.2
I 0.3
DQ
L_OperationT_OFF
T_Right
T_Left
I 0.0 T_On
T_Ackn L_FaultI1.0
Setpoint
"BCD_Thumbwheel„ (IW2)
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 16 Siemens AG © 2011
Online tools,
Configuration and parameterization of the hardware
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 17 Siemens AG © 2011
Host AddressHost Address SubnetSubnet
MAC-Address: 08 00 06 01 74 10
Subnet Mask: 255.255.255.0
IP – Address: 192.168.111.50
MAC-Address: 08 00 06 01 74 20
Subnet Mask: 255.255.255.0
IP – Address: 192.168.111.102
Online connection via Industrial Ethernet:
IP Address and Subnet Mask
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 18 Siemens AG © 2011
1 2 4 5 6 7Slot No.:
Module:
Byte and
bit addresses:
PS CPU DI 32 DO 32 DI8/DO8 AI 2
IB 3
I3.0
I3.7
IB 2
I2.0
I2.7
IB 0
I0.0
I0.7
IB 1
I1.0
I1.7
QB 7
Q7.0
Q7.7
QB 6
Q6.0
Q6.7
QB 4
Q4.0
Q4.7
QB 5
Q5.0
Q5.7
QB 8
Q8.0
Q8.7
IB 8
I8.0
I8.7
Addressing S7 - 300 Modules
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 19 Siemens AG © 2011
Symbolic and absolute addressing
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 20 Siemens AG © 2011
Program Structuring Possibilities
Structured ProgramProgram Partitioned into Areas
The instructions for the individualfunctions are found in individualblocks. OB 1 calls the individualblocks one after the other.
Reusable functions are loaded into individual blocks. OB 1 (or other blocks) call these blocks and pass onthe pertinent data.
Linear Program
All instructions are found in one block (usually in Organization Block OB 1)
OB 1 OB 1
Recipe A
Recipe B
Mixer
Outlet
OB 1Pump
Outlet
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 21 Siemens AG © 2011
Block programming
display favorites
on / off
add instruction
insert network
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 22 Siemens AG © 2011
Monitor a block
Monitor block
activate / deactivate
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 23 Siemens AG © 2011
1xR
Displaying the Hardware Diagnostics
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 24 Siemens AG © 2011
FBD LAD
STL
Block Monitoring (Block Status)
Block monitoring on/off
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 25 Siemens AG © 2011
Introduction to PROFIBUS DP
PROFIBUS DP
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 26 Siemens AG © 2011
Introduction to PROFIBUS DP
• PROFIBUS-DP
• PROFIBUS-DP is a protocol optimized for speed which was specially designed for communication between PLCs (DP masters) and distributed I/Os (DP slaves).PROFIBUS-DP is a low-cost, flexible substitute for transmission of signal.
• PROFIBUS-DP is based on DIN 19245 Part 1 and the user-specific extensions in DIN 19245 Part 3. In the course of the European fieldbus standardization process, PROFIBUS-DP was integrated into the European fieldbus standard EN 50170.
• Master Devices PROFIBUS makes a distinction between master and slave devices. The PROFIBUS masters are in charge of data traffic on the bus. A master can send messages without being requested to do so, provided it is in possession of the token that entitles it to access the bus. Masters are also referred to as active nodes in the PROFIBUS protocol.
• Slave Devices PROFIBUS slaves are simple I/O devices, such as actuators, sensors, transducers, etc. They do not receive the token, that is. they can only acknowledge the receipt of messages or send messages (data) to a master on request. Slaves are also referred to as passive nodes.
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 27 Siemens AG © 2011
Structure of a PROFIBUS DP System
S7 S7PS S7S7
CP
342-
5 DP
S7-300
CPU
315-
2 DP
STAND. DPSLAVE
SIMATIC S7-300
PROFIBUS -DP
STAND. DPSLAVE
PS
10A
S7 S7S7
400
CPU
414-
2 DP
Master
S7-400
S7 S7PS S7S7IM
153
Modular SlaveCompact Slaves
ET 200M
Intelligent Slave
S7-300S7-300
CPU
314
S7PS S7-300
CP
342-
5 DP
Slaves
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 28 Siemens AG © 2011
PROFIBUS – DP Terminating Resistor
SlaveMaster
SlaveSlave
Slave
Resistor OnResistor Off
The terminating resistor must be switched on at the beginning and at the end of the segment
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 29 Siemens AG © 2011
MBaud
kBaud
kBaud
kBaud
100 meters3 to 12
200 meters1.5
400 meters500
1,000 meters9.6 to 187.5
Segment LengthBaud Rate
Segment Length
Master Slave Slave Slave
Segment Length Depending on the Baud Rate
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 30 Siemens AG © 2011
PROFIBUS Connector
Standard connector
with screw terminal
Plug for
Fast Connect
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 31 Siemens AG © 2011
1. Measure 2. Strip 3. Remove
Preparing a Fast Connect Cable
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 32 Siemens AG © 2011
T_OnI 0.0
PROFIBUS DP
Industrial Ethernet / PROFINET
DI / DQ
MM420
DI DQ
Actual number ”QW_DigDisp" (QW6)
DI
I 0.1I 0.2I 0.3
DQ
L_OperationT_OffT_RightT_Left
Q4.1
T_Ackn L_Fault Q5.0I1.0
0 8 1 5
0 2 4 8V
AI
MM420 as Conveyor Drive
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 33 Siemens AG © 2011
Overview: Standard Drives
MICROMASTER 4 Inverter
(here the different sizes with a performance of about 0.1 to 250 kW)
Application example:
Controlled pumps and fans in an air
conditioner
Application example:
Conveyor belt
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 34 Siemens AG © 2011
UU U
t t t
Principle of an Inverter
Three-phase mains system
such as 3 AC, 400V, 50 Hz
Inverter
Induction
motor
Voltage Voltage
Variable
speed
Infeed (Rectifier)
DClink
Power module(Inverter)
Voltage
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 35 Siemens AG © 2011
PROFIBUS - Module
Communication: PROFIBUS - DP
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 36 Siemens AG © 2011
Structure of a PROFIBUS DP System
S7 S7PS S7S7
CP
342-
5 DP
S7-300
CPU
315-
2 DP
STAND. DPSLAVE
SIMATIC S7-300
PROFIBUS -DP
STAND. DPSLAVE
PS
10A
S7 S7S7
400
CPU
414-
2 DP
Master
S7-400
S7 S7PS S7S7IM
153
Modular SlaveCompact Slaves
ET 200M
Intelligent Slave
S7-300S7-300
CPU
314
S7PS S7-300
CP
342-
5 DP
Slaves
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 37 Siemens AG © 2011
Standard Telegrams
Telegrams 1 to 20 manufacturer independent Standard Tel. automatic configuration in SINAMICS
Telegrams 102 to 391 Siemens-specific Standard Telegrams automatic configuration in SINAMICS
Telegram 999 free telegram manual configuration required
(2 IW, 2 QW)
(2 IW)
(2 QW)
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 38 Siemens AG © 2011
Structure of the Control Word
ON/OFF 1
OFF 2
OFF 3
Pulse-Enable
Ramp-function Generator-Enable
Ramp-function Generator-Startup
Setpoint-Enable
Fault-Acknowledge
JOG right
JOG left
Control from PLC
Reverse
- - -
Motor-Poti up
Motor-Poti down
Command Data Set Bit 0
0 4 7 FMotor ON
W # 16 #=
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Rising edge for switching on !1 1 1 1
0 4 7 EMotor OFF
W # 16 #=
1 1 1 0
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 39 Siemens AG © 2011
Structure of the Status Word
Drive ready
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Drive ready to run
Drive running
Drive fault active
OFF2 active
OFF3 active
Switch on inhibit active
Drive warning active
Deviation Setpoint / Actual
Maximum frequency reached
Warning motor current max.
Motor holding brake active
Motor overload
Motor running direction right
Inverter overload
PCD control (PLC)
0
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 40 Siemens AG © 2011
S7 Program for Controlling the Drive
ON/OFF 1OFF 2OFF 3Pulse enableRFG enableRFG startSetpoint enableFault acknowledgeJOG right
JOG leftControl from PLC)Reverse (setpoint inversion)- - -Motorpoti (MOP) upMotorpoti (MOP) down
Function
0123456789
101112131415
Bit
Control word for Motor ON:
F
7
4
0
Hex
Command data set Bit 0
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 41 Siemens AG © 2011
Integrating a Drive in the HW-Config
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 42 Siemens AG © 2011
CPU
QD 42
ID 42
T QW 42
T QW 44
L IW 42
L IW 44
MM420 Speed Control
Control Word
Main Setpoint
Status Word
Main Actual Value
PROFIBUS-DP
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 43 Siemens AG © 2011
Controlling the MM420 with Monitor/Modify
Variables
Switch off: W#16#047E
Switch on: W#16#047F
Rising edgefor switching on !
Actual Value (Hexa) Act. Value (Decimal) Act.Val. (Frequency) Speed under rated load (rpm)
4000 16384 50 1350
3000 12288 37.5 1012.5
2000 8192 25 675
1500 5376 16.4 443
1000 4096 12.5 337.5
500 1280 3.91 105.5
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 44 Siemens AG © 2011
Keys on the Operator Panel
Start the converter with parameterized ramp-up time
Bring the converter to a standstill with parameterized ramp
down rate. Press twice and the converter coasts to a standstill.
Changes the direction of rotation
Motor starts and rotates at the preset jog frequency. Motor
rotates as long as the button remains pressed
Parameter access. Is used to select the parameter number
and to accept the value
Increase parameter number or value
Decrease parameter number or value
This key has a series of functions:- Roll function to display the 5 most important values
- More exact setting of parameters, e.g. decimal places
- Jump to Parameter 0000. The display shows r0000
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 45 Siemens AG © 2011
PROFIBUS Communications Module:
Setting the Address
1 2 3 4 765
1 2 4 8 643216
Switch number
Add to address
Example 1: Address = 9 on off off on offoffoff
Example 1: Address = 88 off off off offon on on
Address Meaning
0PROFIBUS address is specified
by Parameter P0918
1 to 125 valid PROFIBUS address
126, 127 invalid PROFIBUS address
Some addresses have a “particular“ meaning
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 46 Siemens AG © 2011
Setting the MM420 Parameters with the BOP
50 HzSetpoint frequency
t
Setpoint before ramp-function generator:
50 Hz
Setpoint frequency
Internally generated
ramp-function
t
Setpoint after ramp-function generator:
P1120 P1121
Parameter number Value
P0003 2
P0700 6
Comment
Expanded parameter access
Control signals from PROFIBUS
2P1000 Frequency setpoint from Potentiometer
9P0918 PROFIBUS address of the MM420
2.00P1120 Ramp-up time 2 seconds
2.00P1121 Ramp-down time 2 seconds
If the PROFIBUS address was set from the
hardware side, P0918 can only display
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 47 Siemens AG © 2011
From PROFIBUS to PROFINET
What is PROFINET?
PROFIBUS + Industrial Ethernet
PROFINET
PROFIBUS
Industrial
Ethernet
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 48 Siemens AG © 2011
From PROFIBUS to PROFINET
Topology comparison in a line
PLC
Robot
Line
ET
200
HMI
Ω Terminator
Ω
Same Topology – same components
PLC
Robot
Line
ET
200
HMI
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 49 Siemens AG © 2011
From PROFIBUS to PROFINET
Topology comparison with a spur line
PLC
RobotET
200
Same Topology – same components
HMI
PLC
RobotET
200
Ω
DP
Repeater
Spur
Ω Ω
HMI
PN Switch
StarLine Line
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 50 Siemens AG © 2011
From PROFIBUS to PROFINET
Topology on PROFIBUS– with wireless?
Wireless
Mobile Panel
PLC
RobotET
200
DP
Repeater
Spur
HMI
Not possible with PROFIBUS
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 51 Siemens AG © 2011
From PROFIBUS to PROFINET
Topology on PROFINET – with wireless!
PLC
RobotET
200
HMI
PN Switch
Star
Robot
Mobile Panel
IWLAN
Robot
Wireless LAN is only possible with
PROFINET
Ring
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 52 Siemens AG © 2011
Customer Statement:
When I switch off a PN-Device for maintenance then all
downstream devices are also offline!
Robot
ET
200
That’s true, but what happens, if I remove the last device
on PB?
PLC
RobotET
200
HMI
PLC
HMI
Ω Terminator
Ω
1. Remove
robot
x
1. Remove
robot
x
x
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 53 Siemens AG © 2011
Customer Statement: When I switch off a PN device for maintenance then all
downstream devices are also offline!
Robot
ET
200
When I remove on PB the last device, the whole PB-
Segment does not work!
PLC
RobotET
200
HMI
PLC
HMI
Ω Terminator
Ω
2. Remove last device
x
xx
x2. Remove last
device
x
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 54 Siemens AG © 2011
Customer statement:
With PROFINET I only have short distances between
two devices
max. 100 meters
A copper cable on Ethernet must not be longer than 100 meters!
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 55 Siemens AG © 2011
Customer statement:
With PROFINET I only have short distances between
two devices
More then
100 meters
max. 100 meters max. 100 meters
A copper cable on Ethernet must not be longer than 100 meters!
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 56 Siemens AG © 2011
Customer statement:
With PROFINET I only have short distances between
two devices
More then 100 meters
Optical connection
With optical cables, distances up to 120 km between two switches are possible.
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 57 Siemens AG © 2011
Customer statement:
With PROFINET I only have short distances between
two devices
max. 100 meters
With a useful network design, distances
longer than 100 meters are also possible.
SITRAIN
TIA-PRO1 / Introduction TIA Portal Page 58 Siemens AG © 2011
Thank you