01.07.2022 Views

siemens (1)

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SITRAIN

Introduction

TIA Portal

Unrestricted

© Siemens AG 2011. All rights reserved.


Orange juice factory

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 2 Siemens AG © 2011


HMI System

• HMI and SCADA

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 3 Siemens AG © 2011


Automation System

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 4 Siemens AG © 2011


S7-300: Modules

PS

(optional)

CPU

IM

(optional)

SM:

DI

SM:

DO

SM:

AI

SM:

AO

CP:

- Point-to Point

- PROFIBUS

- PROFINET

- Industrial Ethernet

FM:

- Counting

- Positioning

- Closed-loop

control

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 5 Siemens AG © 2011


Testing User Programs with S7- PLCSIM

S7-PLCSIM: Simulation software

for offline testing of PLC programs

Advantages

• 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

• 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 6 Siemens AG © 2011


Communicating with SIMATIC NET

Data management level

Industrial Ethernet /

PROFINET

Control level

PROFIBUS / MPI

Field level

Actor-Sensorlevel

AS-Interface

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 7 Siemens AG © 2011


SIMATIC S7 Overview

SIMATIC HMI

SIMATIC PG

SIMATIC PC

SIMATIC Software

SIMATIC NET

SIMATIC

Controller

MPI - Network

Industrial Ethernet/PROFINET

PROFIBUS

PC-based

AS-Interface

PROFIBUS-DP

PROFINET

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 8 Siemens AG © 2011


Components of WinCC V13

Engineering system (ES)

Configuration device

PC/PG

HMI devices

Runtime (RT)

RT options

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 9 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 10 Siemens AG © 2011


The SINAMICS Family

Frequency Converter for Standard Applications:

SINAMICS G110

SINAMICS G120

(single drive)

(single drive)

SINAMICS G150

(single drive)

Frequency Converter for Motion-Contol Applications :

Blocksize

(single drive)

SINAMICS S120

Booksize

(single drive)

SINAMICS S120

Chassis

SINAMICS S120

Cabinet Module

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 11 Siemens AG © 2011


Components of the project view

Working area

Task cards

Project window

Inspector window

Details window

Switching to the

portal view

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 12 Siemens AG © 2011


Window sections in the working area

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 13 Siemens AG © 2011


Simulation of CPU and HMI devices

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 14 Siemens AG © 2011


Training unit as a plant

with conveyor belt and touchpanel

I 0.0

I 0.1

I 0.2

I 0.3

DI

T_On

T_OFF

T_Right

T_Left

L_Operation

DQ

Q4.1

Actual number

“QW_DigDisp“ / QW6

0 2 4 8

V

0 8 1 5

I1.0

T_Ackn

L_Fault

Q5.0

Setpoint

"BCD_Thumbwheel„ (IW2)

DI

DQ

DI / DQ

AI

PROFIBUS DP

Industrial Ethernet

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 15 Siemens AG © 2011


Online tools,

Configuration and parameterization of the hardware

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 16 Siemens AG © 2011


Online connection via Industrial Ethernet:

IP Address and Subnet Mask

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

Subnet

Host Address

Subnet

Host Address

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 17 Siemens AG © 2011


Addressing S7 - 300 Modules

Slot No.:

Module:

1 2 4 5 6 7

PS CPU DI 32 DO 32 DI8/DO8 AI 2

I0.0

I2.0

Q4.0

Q6.0

I8.0

IB 0

IB 2

QB 4

QB 6

IB 8

Byte and

bit addresses:

I0.7

I1.0

I2.7

I3.0

Q4.7

Q5.0

Q6.7

Q7.0

I8.7

Q8.0

IB 1

IB 3

QB 5

QB 7

QB 8

I1.7

I3.7

Q5.7

Q7.7

Q8.7

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 18 Siemens AG © 2011


Symbolic and absolute addressing

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 19 Siemens AG © 2011


Program Structuring Possibilities

Linear Program

Program Partitioned into Areas

Structured Program

Recipe A

OB 1 OB 1

Recipe B

OB 1

Pump

Mixer

Outlet

Outlet

All instructions are

found in one block (usually

in Organization Block OB 1)

The instructions for the individual

functions are found in individual

blocks. OB 1 calls the individual

blocks one after the other.

Reusable functions are loaded into

individual blocks. OB 1 (or other

blocks) call these blocks and pass on

the pertinent data.

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 20 Siemens AG © 2011


Block programming

insert network

display favorites

on / off

add instruction

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 21 Siemens AG © 2011


Monitor a block

Monitor block

activate / deactivate

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 22 Siemens AG © 2011


Displaying the Hardware Diagnostics

1xR

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 23 Siemens AG © 2011


Block Monitoring (Block Status)

Block monitoring

on/off

FBD

LAD

STL

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 24 Siemens AG © 2011


Introduction to PROFIBUS DP

PROFIBUS DP

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 25 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 26 Siemens AG © 2011


Structure of a PROFIBUS DP System

Master

S7-400

PS

10A

S7

400

S7

S7

PS S7-300 S7-300

S7

S7-300

PROFIBUS -DP

CPU

314

CPU

414-

2 DP

CP

342-

5 DP

SIMATIC S7-300

ET 200M

Slaves

S7 S7 S7 S7

CP

342-

5 DP

PS S7-300

CPU

315-

2 DP

Intelligent Slave

STAND.

DP

SLAVE

Compact Slaves

PS IM S7 S7 S7

153

Modular Slave

S7

STAND.

DP

SLAVE

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 27 Siemens AG © 2011


PROFIBUS – DP Terminating Resistor

Master

Slave

Slave

The terminating resistor must

be switched on at the

beginning and at the end of the

segment

Slave

Slave

Resistor On

Resistor Off

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 28 Siemens AG © 2011


Segment Length Depending on the Baud Rate

Baud Rate

9.6 to 187.5

500

1.5

3 to 12

kBaud

kBaud

kBaud

MBaud

Segment Length

1,000 meters

400 meters

200 meters

100 meters

Master Slave Slave Slave

Segment Length

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 29 Siemens AG © 2011


PROFIBUS Connector

Standard connector

with screw terminal

Plug for

Fast Connect

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 30 Siemens AG © 2011


Preparing a Fast Connect Cable

1. Measure 2. Strip 3. Remove

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 31 Siemens AG © 2011


MM420 as Conveyor Drive

I 0.0

I 0.1

I 0.2

I 0.3

DI

T_On

T_Off

T_Right

T_Left

L_Operation

DQ

Q4.1

Actual number

”QW_DigDisp" (QW6)

0 2 4 8

V

0 8 1 5

I1.0

T_Ackn L_Fault Q5.0

MM420

DI

DQ

DI / DQ

AI

PROFIBUS DP

Industrial Ethernet / PROFINET

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 32 Siemens AG © 2011


Overview: Standard Drives

Application example:

Controlled pumps and

fans in an air

conditioner

MICROMASTER 4 Inverter

(here the different sizes with a

performance of about 0.1 to 250 kW)

Application example:

Conveyor belt

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 33 Siemens AG © 2011


Principle of an Inverter

Infeed

(Rectifier)

DC

link

Power module

(Inverter)

Three-phase mains system

such as 3 AC, 400V, 50 Hz

Induction

motor

Inverter

Variable

speed

Voltage

U

Voltage

U

Voltage

U

t t t

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 34 Siemens AG © 2011


Communication: PROFIBUS - DP

PROFIBUS - Module

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 35 Siemens AG © 2011


Structure of a PROFIBUS DP System

Master

S7-400

PS

10A

S7

400

S7

S7

PS S7-300 S7-300

S7

S7-300

CPU

414-

2 DP

CPU

314

CP

342-

5 DP

PROFIBUS -DP

Slaves

SIMATIC S7-300

PS

S7-300

CPU

315-

2 DP

S7

S7

S7

CP

342-

5 DP

S7

STAND.

DP

SLAVE

PS

IM

153

S7

S7

ET 200M

S7

S7

Intelligent Slave

Compact Slaves

Modular Slave

STAND.

DP

SLAVE

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 36 Siemens AG © 2011


Standard Telegrams

(2 IW, 2 QW)

(2 IW)

(2 QW)

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

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 37 Siemens AG © 2011


Structure of the Control Word

W # 16 #

W # 16 #

0 4 7 F

1 1 1 1

0 4 7 E

1 1 1 0

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

= Motor ON

Rising edge for switching on !

= Motor OFF

Reverse

- - -

Motor-Poti up

Motor-Poti down

Command Data Set Bit 0

Setpoint-Enable

Fault-Acknowledge

JOG right

JOG left

Control from PLC

ON/OFF 1

OFF 2

OFF 3

Pulse-Enable

Ramp-function Generator-Enable

Ramp-function Generator-Startup

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 38 Siemens AG © 2011


Structure of the Status Word

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1

0

Drive running

Drive fault active

OFF2 active

OFF3 active

Switch on inhibit active

Drive warning active

Deviation Setpoint / Actual

PCD control (PLC)

Maximum frequency reached

Warning motor current max.

Motor holding brake active

Motor overload

Motor running direction right

Inverter overload

Drive ready

Drive ready to run

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 39 Siemens AG © 2011


S7 Program for Controlling the Drive

Hex

F

7

4

0

Bit

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Control word for Motor ON:

Function

ON/OFF 1

OFF 2

OFF 3

Pulse enable

RFG enable

RFG start

Setpoint enable

Fault acknowledge

JOG right

JOG left

Control from PLC)

Reverse (setpoint inversion)

- - -

Motorpoti (MOP) up

Motorpoti (MOP) down

Command data set Bit 0

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 40 Siemens AG © 2011


Integrating a Drive in the HW-Config

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 41 Siemens AG © 2011


MM420 Speed Control

Control Word

Main Setpoint

CPU

T QW 42

T QW 44

QD 42

PROFIBUS-DP

Status Word

Main Actual Value

L IW 42

L IW 44

ID 42

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 42 Siemens AG © 2011


Controlling the MM420 with Monitor/Modify

Variables

Switch off: W#16#047E

Rising edge

for switching on !

Switch on: W#16#047F

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 43 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 44 Siemens AG © 2011


PROFIBUS Communications Module:

Setting the Address

Switch number

Add to address

1 2 3 4 5 6 7

1 2 4 8 16 32 64

Example 1: Address = 9 on off off on off off off

Example 1: Address = 88 off off off on on off on

Some addresses have a “particular“ meaning

Address

0

Meaning

PROFIBUS address is specified

by Parameter P0918

1 to 125 valid PROFIBUS address

126, 127 invalid PROFIBUS address

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 45 Siemens AG © 2011


Setting the MM420 Parameters with the BOP

If the PROFIBUS

address was set from the

hardware side,

P0918 can only display

Parameter number Value

P0003 2

P0700 6

P0918

9

P1000

2

P1120

2.00

P1121

2.00

Comment

Expanded parameter access

Control signals from PROFIBUS

PROFIBUS address of the MM420

Frequency setpoint from Potentiometer

Ramp-up time 2 seconds

Ramp-down time 2 seconds

Setpoint before ramp-function generator:

Setpoint after ramp-function generator:

50 Hz

Setpoint frequency

50 Hz

Setpoint frequency

Internally generated

ramp-function

t

P1120

P1121

t

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 46 Siemens AG © 2011


From PROFIBUS to PROFINET

What is PROFINET?

PROFIBUS

Industrial

Ethernet

PROFIBUS + Industrial Ethernet

PROFINET

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 47 Siemens AG © 2011


From PROFIBUS to PROFINET

Topology comparison in a line

PLC

Ω Terminator

PLC

HMI

Line

HMI

Line

ET

200

Robot

Ω

ET

200

Robot

Same Topology – same components

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 48 Siemens AG © 2011


From PROFIBUS to PROFINET

Topology comparison with a spur line

PLC

PLC

Ω

Ω

Spur

HMI

Line

Star

HMI

Line

DP

Repeater

PN Switch

ET

200

Robot

Ω

ET

200

Robot

Same Topology – same components

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 49 Siemens AG © 2011


From PROFIBUS to PROFINET

Topology on PROFIBUS– with wireless?

PLC

HMI

Spur

DP

Repeater

ET

200

Robot

Wireless

Mobile Panel

Not possible with PROFIBUS

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 50 Siemens AG © 2011


From PROFIBUS to PROFINET

Topology on PROFINET – with wireless!

PLC

HMI

Robot

Star

Ring

PN Switch

Robot

Mobile Panel

IWLAN

ET

200

Robot

Wireless LAN is only possible with

PROFINET

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 51 Siemens AG © 2011


Customer Statement:

When I switch off a PN-Device for maintenance then all

downstream devices are also offline!

PLC

Ω Terminator

PLC

ET

200

HMI

x

1. Remove

robot

Robot

Ω

ET

200

HMI

1. Remove

robot

Robot

That’s true, but what happens, if I remove the last device

on PB?

x

x

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!

PLC

Ω Terminator

PLC

ET

200

x

x

HMI

x

2. Remove last device

x

Robot

Ω

ET

200

HMI

When I remove on PB the last device, the whole PB-

Segment does not work!

2. Remove last

device

x

Robot

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 53 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 54 Siemens AG © 2011


Customer statement:

With PROFINET I only have short distances between

two devices

max. 100 meters

max. 100 meters

More then

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

Optical connection

More then 100 meters

With optical cables, distances up to 120 km between two switches are p

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 56 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 57 Siemens AG © 2011


Thank you

SITRAIN

TIA-PRO1 / Introduction TIA Portal Page 58 Siemens AG © 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!