60 tia portal v11 s71200 rela8 en

69
For internal use only / © Siemens AG 2012. All Rights Reserved. STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Upload: marlus-silva

Post on 14-Apr-2015

305 views

Category:

Documents


15 download

TRANSCRIPT

Page 1: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 2: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 3: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 3 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

Update procedurePerform firmware update

Firmware V2.2SIMATIC MEMORY CARD (12 or 24MB)

Download the firmware V2.2

from the Siemens Customer&Support site

Step 1

Unzip .Zip archive to the SIMATIC MEMORY CARD (12 or 24MB)

Step 2Unplug card

+ power cycle

Step 4Plug the SIMATIC

MEMORY CARD in the S7-1200 and power cycle

Step 3

Unzip & CopySiemensCustomer&Support

Page 4: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 4 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

Update procedureFirmware update - advantages

+ =

STEP 7 Basic V11 SP2 New functionalityFirmware V2.2

Page 5: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 6: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 6 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingUser Data Types - UDTs

Define your own PLC data types (User Data Types)

RealInt

Bool

Type

0.0TemperatureRPM

Active

Name InitialwertFALSE

0

UDT: Motor_settings

Own data types can be defined

For frequently used structures

Usable in OB, FB, FC, DB

FCTag_2: Motor_settings

Tag_1: Bool Tag_3: Bool

Example:

Page 7: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 7 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

Programming Multi instances

OB

FB1

Local

IDB FB1IDB FB2

Multi instances save internal load memory

Available for:

User FBs

SystemFunctionBlocks (SFBs)

FB2

Local

IEC_Timer

Multi instances – can be used for FBs and SFBs

Page 8: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 8 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingSlice Access

BYTE

WORD

DWORD

Operands in blocks and

I/Q/M

„My_DW_Variable“

„My_W_Variable“

„My_B_Variable“

„Slice“ Access:No definition necessaryHigh programming efficiency

Bit-wise

Byte-wise

Word-wise

Examplary operand names

W0W1

B0B1B3

X0

X1

X2

X31

„My_W_Variable.X0“„My_DW_Variable.B1“Examples:

Page 9: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 9 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

„My_DW_Variable“

ProgrammingAT-Construct (1)

„My_Sight.Bit_Field[0]“„My_Sight.Mid_Byte“

Operands of any data type in OB/FC/FB

The AT-Construct:

Any structure possible

High flexibility

Initial situation:

Variable is defined in the interface of a block (created with standard access)A part of this variable should be accessed symbolically

AT-construct „My_Sight” with following structure

Solution: Using the AT-construct, the variable can be overlayed with a symbolic templateThis data view does not occupy any memory resources

Example: DWORD-Variable

.Upper_Word“ .Mid_Byte“ .Bit_Field[0..7]“

Page 10: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 10 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingAT-Construct (2)

The data view does not appear as parameter when calling the block

Data view with the AT-ConstructDefinition in the interface of OB / FC / FBDefined in the row after the affected variableMust not be bigger than the variable

Example:

Set Bit 1 of variable MainByte to True :

BoolSicht[0] BoolSicht[1] …. BoolSicht[6] BoolSicht[7]

Bit 0 Bit 6..... Bit 7Bit 1

MainByte

=True

Page 11: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 11 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingGlobal constants

Global constants

Advantages: Defined one-time and can easily be changed if necessary

Global

Can be used in DB’s and block interface as initial value

Can be used in user program

User program

OBFC

FBLocal

Page 12: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 12 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingCALCULATE

Start formula assistant

Enter the formula

Complex calculations with one instruction

One call instead of numerous mathematical functions

Configuration time-saving

Page 13: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 13 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingImplicit type conversion

Implicit conversion

Automatic conversion of data types

Automatic conversion of data types to match the biggest one

No explicit conversion necessary

Implicit conversion is shown for supervision

INT RealReal

ADDReal

DInt

Int

SInt

LReal

Page 14: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 14 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingIndirect addressing

Indirect addressing by FieldRead and FieldWrite

Example:

“Field_Data”.Numbers[0]

Read and write access to an array:

FieldRead

FieldWrite

Page 15: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 15 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingIndirect addressing

Indirect addressing directly in LAD and FBD

Variable [„Control variable“]

Example:

“Field_Data”.Numbers[“i”]

i := INT

Direct read and write access to an array in LAD and FBD

Page 16: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 16 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

ProgrammingNew programming language SCL

Corresponds to IEC 61131-3 (ST) Data operations, e.g. sort dataComplex calculations & algorithmsProgram code exchangeable between S7-300, S7-400, S7-1200 and WinACLanguage elements from high-level language programming + language extensions typical for PLCs

Structured Control Language as text-based, structured high-level language

Assignment LAD: Assignment SCL:

Page 17: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 17 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

sample: value „False“

New instructionsIndirect addressing with SCL

Access to addresses with pointer – reading with PEEK

PEEK valuepointer

%MW4

%M0.0

%I0.0

Address

123

Monitor value

True

False

Int

Bool

Bool

Data type

Var_C

Var_B

Var_A

Name

E / A / M / DB

sample: pointer to address M0.0

The pointer has following parameter:

Area:InputOutputBit memoryStandard DB (compatible with S7-300/400)

DB NumberOffset

Page 18: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 18 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

SCLLAD/FBDAll editors

Programming

Update procedure

New instructionsIndirect addressing with SCL

Access to addresses with pointer – writing with POKE

POKEpointer

%MW4

%M0.0

%I0.0

Address

123

Monitor value

True

False

Int

Bool

Bool

Data typ

Var_C

Var_B

Var_A

Name

E / A / M / DB

sample: pointer to address M0.0

The pointer has following parameter:

Area:InputOutputBit memoryStandard DB (compatible with S7-300/400)

DB NumberOffset

value

sample: value „False“

Page 19: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 20: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 20 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functionsTime functions (1)

Runtimemeter – RTM

OB

User program

RTM

SIMATIC Memory Card

Store:

T# 2d 4h 21m 11s

T# 1d 3h 20m 10s

Operating hours

Combine times – T_COMBINE

Date D# 2011-12-31

Time_Of_Day TOD# 05:04:03.00DTL# 2011-12-31-05:04:03.00 DTLT_COMBINE

Up to 10 counters

Page 21: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 21 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functionsTime functions (2)

Set local time – SET_TIMEZONE

System time

Local time

UTC Time(Null Meridian -

Greenwich, U.K.)

e.g. UTC + 1 local time Germany

Local timeSystem time Timezone / winter-/summertime

+ =SET_TIMEZONE

Page 22: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 22 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functionsString functions

Conversion from and to strings:

Conversion of strings

VAL_STRG and STRG_VAL additionally support conversion to and from LReal with firmware V2.0

ExampleTypeTypeExample

`123AF010`ASC IIhex16#123AF010

`+23.45`Stringdigit23.45

`ABC`StringArray of [CHAR]`A`, `B`, `C`Chars_To_Strg Strg_To_Chars

VAL_STRG STRG_VAL

ATH HTA

Page 23: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 23 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functionsInterrupt functions

Set and read parameters of OBs

OB Cyclic interrupt

User program

FCFB

Local

Firm

war

e

Call

Call

Parameter

OB

Set OB parameter (e.g. CycleTime)

SET_CINT

Status of the OB (e.g. CycleTime, OB active,…)

Read OB parameter

QRY_CINT

Also available for „Time delay interrupt“-OBs:

QRY_DINT

Page 24: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 24 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functionsOffline DBs

Load data to the work memory only if they are needed

READ_DBL Read data from an „unlinked“ DB in the internal load memory

WRIT_DBL Write data to an „unlinked“ DB in the internal load memory

Advantage: offline DBs are only stored in load memory – they can be used to host a large amount of data, which not used frequently (e.g. recipes)

User program

DB

SIMATIC Memory Card READ_DBL

WRIT_DBL

DB L

Internerload memory

or

Page 25: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 25 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functionsData logging (1)

Data Logging – Record process data

SIMATIC Memory Card

Internal load memory

or

Read via:

Webserver

Directly from MC

Process data

DataLogWrite

SFB142

Selection out of process data

Page 26: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 26 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functionsData logging (2)

DB

Data structure copy Archive

Structure

REAL

REAL

INT

Type

Pressure

Temperature

Count

Name Wert

Struktur

10

27.5

4.3

DataLogWrite

SFB142

5

2

Count(INT)

30.2

20.8

Temperature(REAL)

3

.

n

2

1

No.

12.03.1114:15

12.03.1114:00

TimeStamp Pressure(REAL)

2.4

6.7

ID: #1 Name: `xyz`

10 27.5 4.312.03.1114:303

Page 27: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 27 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functions Data logging (3)

Max. 10 logs can be opened simultaneously

In ‘Header’ (optional), captions can be defined for logged data (separated by comma)

500 000 guaranteed write cycles on SD-card

DataLogCreate

DataLogNewFile

DataLogOpen

DataLogClose

DataLogWrite

Create new log

Write entry in log

Create log (new name, withsame data like specified in ID)

Open log

Close log

Functions:

Page 28: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 28 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functions Data logging (4)

1

Create storage

LogData as Struct / UDT

DataLogCreateDataLogOpen

2

One-time:Create/open the log by Name, Header (optional) and LogDataID is returned

5

Collect by:WebserverSIMATIC Memory Card

Count(INT)

Temperature(REAL)

2

1

No. TimeStamp Pressure(REAL)

5

2

30.2

20.8

2

1

12.03.1114:15

12.03.1114:00 2.4

6.7

Name: ‚MyFirstLog‘ ID: DW#16#0001

Write an entry by ID

DataLogWrite4

Storage e.g. in DB

NameID

HeaderLogData

Timestamp is automatically generated by the PLC

RefreshLogData

3

Page 29: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 29 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

New functions Data logging (4) – Memory requirement

6.730.2512.03.1114:152

2

Count(INT)

20.8

Temperature(REAL)

n

1

No.

12.03.1114:00

TimeStamp Pressure(REAL)

2.4

Name: ‚MyFirstLog‘ ID: DW#16#0001Memory requirements per dataset:

Overhead 12 BytesTimestamp 20 BytesINT 7 BytesREAL 16 Bytes

Example „MyFirstLog“: Σ 71 Bytes / Dataset

177223

14768

max. recommended numbers of datasets *)

25165824

2097152

max. capacity in byte

1846 daysSIMATIC MC (24 MB)

153 days

record time *) (by 15 min record cycle)

SIMATIC MC (2 MB)

*) SIMATIC MC is also used as load memory - suggestion: use maximum half of the size for data logging

Page 30: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 30 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

Data LoggingFunction: DataLogCreate

DataLogCreate

FB1

Memory Card

1 (date+time)TimeStampIn:

Out:

In:

In:

In:

ID#1 numberID

1 (.csv)Format

n (Amount of entries in the ring buffer)Records

`xyz`Name

Create data log file:

in the internal load memory or

on the SIMATIC Memory Card

A(Real)

B(String)

.

.

n

.

1

No. TimeStamp

C(INT)

ID: #1 Name: `xyz`

B2

Page 31: 60 Tia Portal v11 s71200 Rela8 En

Slide 30

B2 HIDEBernd, 5/6/2011

Page 32: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 31 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

Data LoggingFunction: DataLogWrite

Memory Card

In: ID# numberID

Write data to the ring buffer

A(Real)

B(String)

3

.

n

2

1

No. TimeStamp

C(INT)

ID: #1 Name: `xyz`

INT

String

REAL

Type

C

B

A

Name Value

UDTUDT

DB

92534

5.678

World

9.012

5.678

1.234

Siemens

World

Hello

32634tomorrow3

.

n

2

1

today

yesterday 53425

92534

DataLogWrite

FB1

B3

Page 33: 60 Tia Portal v11 s71200 Rela8 En

Slide 31

B3 HIDEBernd, 5/6/2011

Page 34: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 32 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure Memory Card

Data LoggingFunction: DataLogCreateNewFile

In: ID# numberID

DataLogCreateNewFile

FB1

Create new file with same structure

A(Real)

B(String)

.

.

n

.

1

No. TimeStamp

C(INT)

ID: #2 Name: `fgh`

UDT

DB

9.012

5.678

1.234

Down

White

Up

3263417:003

.

n

2

1

16:00

15:00 53425

92534

B4

Page 35: 60 Tia Portal v11 s71200 Rela8 En

Slide 32

B4 HIDEBernd, 5/6/2011

Page 36: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 33 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

Data LoggingStandard Website

Download and delete archives

For ability to delete the log, you must be

logged in as the administrator

Page 37: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 34 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

Data loggingOffline DBsInterrupt functionsString functionsTime functions

New functions

Programming

Update procedure

Data LoggingAutomatic collecting

CSV-files have fixed address, e.g. https://192.168.0.1/DataLog.html?FileName=Datalog.csvThey can thus be collected automatically

a Time interval and download location is configured in Download manager, e.g. Orbit Downloader

b Time interval is configured in ‘Scheduled task’Download location is defined when calling task to download, e.g. Firefox or cURL

Scheduled task of OS

e.g. Call:‘"C:\Program Files\Mozilla Firefox\firefox.exe" "https://192.168.0.1/DataLog.html?FileName=Datalog.csv”’

Page 38: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 39: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 36 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationOverview

16 slave connections

PROFIBUSPROFINET

8 Open Ethernet Komm. (T-Blocks)

8 PROFINET IO devices

Max. 16 connections with mixed configurations

PROFIBUS Master/Slave

ET200S

S7-1200

ET200S

S7-1200PROFINETController

3 HMI connections for Basic Panels, or up to 2 Comfort Panels3 connections for S7 communication (PUT/GET) as Server, and 8 connections as Client 8 S7-connections for Open User communication (with T-Blocks like e.g. TSEND_C)

Page 40: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 37 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationPROFINET IO

ET200eco PNET200SET200pro

PROFINET IO

PROFINET I/O ControllerMax. 8 PROFINET devices

Support of all devices on thePROFINET header module, e.g.:

Standard I/O

Drives

Etc.

Page 41: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 38 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationPROFINET IO functions

Change IP-address and device name from user program

Change the IP-address or the device name

e.g. by a panel while putting a serial machine into service

Change IP-address

Change device name

User program

OBFC

FBLocal

T_CONFIG

Page 42: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 39 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationPROFIBUS DP

Connecting to PROFIBUS DP network as master or slave

PROFIBUS Slave

S7-1200

S7-300

ET200S

PROFIBUS Master

ET200S ET200S

S7-1200Download via PROFIBUS

Max. 16 PROFIBUS slaves

Routing

Max. Module:

Max. 1 PROFIBUS master

Max. 3 PROFIBUS slaves

Mixed conf. with RS232, RS422/RS485 possible

Page 43: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 40 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationOverview functions

Write

data

Read

data

Read data from peripheral devices / write data to peripheral devices

ET200S ET200S

S7-1200

ET200S ET200S

Consistently read data:

Consistently write data: DPWR_DAT

DPRD_DAT Read data record:

Write data record: WRREC

RDREC

B5

Page 44: 60 Tia Portal v11 s71200 Rela8 En

Slide 40

B5 HIDEBernd, 5/6/2011

Page 45: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 41 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationOverview functions

S7-communication

DBDB

DB

Connection with a fixed partner

Put data to DB in server: PUT

Get data from DB in server: GET

DB

Client (active) Server (passive)

Put dataPUT

Get dataGET

Page 46: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 42 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationOverview functions

UDP-communication

TUSENDLocal

TURCVLocal

Send data

by UDP

No data link layer in UDP-protocoll

Small data packets

No preconfiguration of connection necessary

Fast communication

Page 47: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 43 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationDiagnose

different instructions for overall diagnose

ET200S ET200S

S7-1200

Diagnose data can also be read by function „RDREC“.

S7-connection Central unit

LED-statusLED

Module-diagnoseModulStates

Channel-diagnose

GET_DIAG

DPNRM_DG

DeviceStates

RALRM

Page 48: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 44 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

S7-1200: MODBUS TCP instructions

MODBUS TCP supports Server and Client functionality over the integrated PROFINET interface

Maximum 8 connections possible.Per connection is one MB_CLIENT or MB_SERVER instruction neccesarry.Each connection can be disconnected or connected with an new Modbus Server

Page 49: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 45 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

AS-iModbus TCPPROFIBUSPROFINET

Communication

New functions

Programming

Update procedure

CommunicationAS-i

AS-i Master connection with CM 1243-2

Supports AS-i specification V3.0 (include Power24V)Up to 62 AS-i Slaves can be connectedDigital and analogue value direct to the process imageIntegrated AS-i Power Fail detectionAutomatic address programmingAddress selection of connected AS-i SlavesData interface like IE/AS-i LinkFirmware update is supportedTechnological parameterization of M200D Motorstarter

Page 50: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 51: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 47 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

Know-How-ProtectionHiding the program

Lock user blocks with the know-how protection:

Only interface is readable

Know-how protection – Hiding the program

GlobalOB FC FB

Local

Know-how protection

Page 52: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 48 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

Know-How-ProtectionBinding the program

Know-how protection by binding the user blocks to the serial no. of the hardware:

SIMATIC Memory Card

S7-1200 PLC

Know-how protection

Binding serial no.

Copy protection – Binding the program

Anwenderprogramm

Upload

Anwenderprogramm

Download

PLC 1 PLC 2

Page 53: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 54: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 50 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

WebserverPreconfigured websites

Preconfigured websitesDiagnose information availableMonitoring of variables

Graphical information also without HMI

Page 55: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 51 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

WebserverUser-defined web pages

Possibility to create user-defined web pages

Display process variables

Change process variables

Page 56: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 57: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 53 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

SCADA Communication to SIMATIC S7-1200

Easy time synchronization, no pointer necessary

Communication channel for SCADA

S7-1200 communication driver for panels and SCADA

New communication channel for HMIAccess data via symbolic addressing in the runtimeEasy time synchronization for Comfort Panel to S7-1200

Page 58: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 59: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 55 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

MotionPID-control

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

TechnologyPID-controller (1)

On

Off

heatoff

2-step controller – PID_Compact

50°C

Sensor: temperature

Actuator: heating (On / Off)

Set point: temperature

Pot- +

50°C

Page 60: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 56 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

MotionPID-control

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

TechnologyPID-controller (2)

Umax

-Umax

Open

Off

moreoffless

forwardsoffbackwards

Close

3-step controller – PID_3Step

1

0

-1

70°C20°C50°C

Set point: temperature

Pot- +

Sensor: temperature

Sensor: lower and upper limit

Actuator: Open and Close 50°C

Page 61: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 57 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

MotionPID-control

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

TechnologyMotion

5

4

3

2

1

-250.00.0MoveAbsolute

-10.0110.0MoveAbsolute

-250.0100.0MoveAbsolute

0.5s

-

Duration

0

0.0

Position

0Wait

100.0MoveAbsolute

Velocity Command

CommandTable – operate axis by traversing profile

CommandTable

MC_CommandTable

Local

+ =

Motion sequence

1.

2. 3.4.

5.

Page 62: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 58 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

MotionPID-control

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

TechnologyMotion

Change dynamic settings for motors

Enable / disablejerk limit

Change value ofjerk limit

Change acceleration value

Change deceleration value

Change emergency stop deceleration value

Dynamic settings can be changed with new block „MC_ChangeDynamic“

Jerk limitdisabled enabled

t

v

t

v

Page 63: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Page 64: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 60 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

OnlineDownload / Upload

- Monitoring and upload only with TIA Portal version, the download to S7-1200 was performed with

- Monitoring and upload of S7-1200 includes complete symbolic which was parameterized

- TIA Portal V11 supports using global constants in S7-1200 with FW V1 and V2

TIA Portal

V10.5

TIA Portal

V11

S7-1200 with FW V1 or V2S7-1200 with FW V1 (V2 not recommended)

Page 65: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 61 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Loading behavior S7-1200 with STEP 7 V11 and STOP/RUN change

Loading DB into controllerInitialization of DB after DownloadLoading program blocks in Mode STOP (DB not affected because not modified)Retentivity behavior

With STOP/RUN transition after loading program blocks (DB not affected)

With warm restart

S7-1200Offline project

„Data_Block_1“

Load memory

„Data_Block_1“

„Data_Block_1“

Retentivity memory

„Data_Block_1“

not RetainRetain

Start value

Workingmemory

not RetainRetain

Current value

OB

FB

FC

** Improvement compared to V10.5

not RetainRetain

Start value

ActionMode

Page 66: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 62 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

S7-1200 Firmware V2.2 Download while Run

RequirementsSTEP 7 V11 SP2S7-1200 Firmware V2.2

Changes on OB, FB, FC and DB’s supported:Code - changeschanges on tag namesRewiring of tags (I/O-address-changes)

Limitations of Download while RunThe reloading while Run is restricted of 3 blocks, thedownload will be consistent!No structure changes on DB’s allowed No changes on device configuration

Page 67: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 63 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

DB – Editor: current value and upload behave for S7-1200 with STEP 7 V11.0

load to controllerInitializing

StartAfter DownloadSFC 83 („READ_DBL“)

Current valueLoad to PG(inclusive. Symbolic)Write to load memory

SFC 84 („WRIT_DBL“)

S7-1200Offline Project

„Data_Block_1“

Load memory

work memory

„Data_Block_1“

„Data_Block_1“

„Data_Block_1“

Start value

current value

Default value(only reading)

Start value

current value

„Data_Block_1“

Default value (only reading)

S7-1200

Page 68: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.I IA AS S SUP FAPage 64 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

Online

Technology

SCADA Communication

Webserver

Know-how protection

Communication

New functions

Programming

Update procedure

OnlineForcing

Forcing – the LED “MAINT” is flashing while forcing

MAINT LED is flashing, while inputs or outputs are forced

The force table can be found in the program tree under watch tables

Only usable by accessing the peripheries of the inputs and outputs (%Q0.0:P)

Page 69: 60 Tia Portal v11 s71200 Rela8 En

For internal use only / © Siemens AG 2012. All Rights Reserved.

I IA AS S SUP FA

Gleiwitzer Str.55590475 Nuremberg

Phone: +49 (911) 895 - 4646

E-Mail: [email protected]

Thank you for your attention!