You are on page 1of 69

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

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

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Update procedure Perform firmware update


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Siemens Customer&Support

Unzip & Copy

SIMATIC MEMORY CARD (12 or 24MB)

Firmware V2.2

Step 1 Download the firmware V2.2 from the Siemens Customer&Support site

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

Step 3 Plug the SIMATIC MEMORY CARD in the S7-1200 and power cycle

Step 4 Unplug card + power cycle

Page 3

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Update procedure Firmware update - advantages


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Firmware V2.2

STEP 7 Basic V11 SP2

New functionality

Page 4

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Programming User Data Types - UDTs


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Define your own PLC data types (User Data Types) Own data types can be defined For frequently used structures Usable in OB, FB, FC, DB

UDT: Motor_settings
Name
Active RPM Temperature

Type
Bool Int Real

Initialwert
FALSE 0 0.0

Example: Tag_1: Bool Tag_2: Motor_settings FC Tag_3: Bool

Page 6

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming Multi instances


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Multi instances can be used for FBs and SFBs Multi instances save internal load memory

OB Available for: User FBs SystemFunctionBlocks (SFBs)

Local IDB FB1 IDB FB2

FB1
Local

IEC_Timer

FB2
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 7

2012-02-10

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

Programming Slice Access


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Examplary operand names Operands in blocks and I/Q/M


My_DW_Variable

My_B_Variable

BYTE

My_W_Variable

WORD

DWORD
My_W_Variable.X0 XX X 2 1 0

Examples:
Slice Access: No definition necessary High programming efficiency
X 31

My_DW_Variable.B1

Bit-wise

B3

B1

B0

Byte-wise

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

W0

Word-wise

Page 8

2012-02-10

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming AT-Construct (1)


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Initial situation: Solution:

Variable is defined in the interface of a block (created with standard access) A part of this variable should be accessed symbolically Using the AT-construct, the variable can be overlayed with a symbolic template This data view does not occupy any memory resources Example: DWORD-Variable My_DW_Variable

Operands of any data type in OB/FC/FB The AT-Construct: Any structure possible High flexibility

My_Sight.Mid_Byte

My_Sight.Bit_Field[0]

AT-construct My_Sight with following structure .Upper_Word .Mid_Byte .Bit_Field[0..7]

Page 9

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming AT-Construct (2)


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Data view with the AT-Construct Definition in the interface of OB / FC / FB Defined in the row after the affected variable Must not be bigger than the variable MainByte
Bit 0 Bit 1 =True ..... Bit 6 Bit 7

BoolSicht[0] BoolSicht[1]

BoolSicht[6] BoolSicht[7]

Example: Set Bit 1 of variable MainByte to True :

Page 10

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming Global constants


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

User program
OB FC FB
Local

Can be used in user program

Global

Can be used in DBs and block interface as initial value

Page 11

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming CALCULATE
Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Complex calculations with one instruction One call instead of numerous mathematical functions Configuration time-saving

Enter the formula

Start formula assistant


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

Programming Implicit type conversion


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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 ADD
Real

SInt

Implicit conversion

Int

INT Real

DInt Real LReal

Page 13

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming Indirect addressing


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Indirect addressing by FieldRead and FieldWrite Read and write access to an array: FieldRead FieldWrite

Example:
Field_Data. Numbers[0]

Page 14

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming Indirect addressing


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Indirect addressing directly in LAD and FBD Direct read and write access to an array in LAD and FBD Variable [Control variable]

Example:
Field_Data. Numbers[i] i := INT

Page 15

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Programming New programming language SCL


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Structured Control Language as text-based, structured high-level language Corresponds to IEC 61131-3 (ST) Data operations, e.g. sort data Complex calculations & algorithms Program code exchangeable between S7-300, S7-400, S7-1200 and WinAC Language elements from high-level language programming + language extensions typical for PLCs Assignment LAD: Assignment SCL:

Page 16

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

New instructions Indirect addressing with SCL


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Access to addresses with pointer reading with PEEK The pointer has following parameter: Area: Input Output Bit memory Standard DB (compatible with S7-300/400) DB Number Offset
Var_B Var_C Bool Int %M0.0 %MW4 False 123

pointer

PEEK

value
sample: value False

sample: pointer to address M0.0

E / A / M / DB
Name Data type Address Var_A Bool %I0.0 Monitor value True

Page 17

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

New instructions Indirect addressing with SCL


Update procedure Programming All editors LAD/FBD SCL New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Access to addresses with pointer writing with POKE The pointer has following parameter: Area: Input Output Bit memory Standard DB (compatible with S7-300/400) DB Number Offset
Var_B Var_C Bool Int %M0.0 %MW4 False 123

pointer value
sample: pointer to address M0.0

POKE

sample: value False

E / A / M / DB
Name Var_A Data typ Bool Address %I0.0 Monitor value True

Page 18

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

New functions Time functions (1)


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

Runtimemeter RTM User program Operating hours


OB

Store: T# 1d 3h 20m 10s SIMATIC Memory Card

RTM

T# 2d 4h 21m 11s Up to 10 counters

Combine times T_COMBINE Date D# 2011-12-31 Time_Of_Day TOD# 05:04:03.00


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

T_COMBINE

DTL# 2011-12-31-05:04:03.00 DTL

Page 20

New functions Time functions (2)


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

Set local time SET_TIMEZONE


System time

UTC Time (Null Meridian Greenwich, U.K.)

Local time

e.g. UTC + 1 local time Germany

+
System time
2012-02-10

SET_TIMEZONE
Timezone / winter-/summertime

=
Local time
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 21

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

New functions String functions


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

Conversion of strings Conversion from and to strings:


Example
Chars_To_Strg VAL_STRG ATH

Type Array of [CHAR] digit hex

Type String String ASC II

Example `ABC` `+23.45` `123AF010`


Strg_To_Chars STRG_VAL HTA

`A`, `B`, `C` 23.45 16#123AF010

VAL_STRG and STRG_VAL additionally support conversion to and from LReal with firmware V2.0
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 22

2012-02-10

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

New functions Interrupt functions


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging

Set and read parameters of OBs


User program

Call
OB
FC FB
Local

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

Firmware

Communication Know-how protection Webserver SCADA Communication Technology Online

Read OB parameter
SET_CINT QRY_CINT

Set OB parameter CycleTime) Call

(e.g.

OB Cyclic interrupt Parameter

Also available for Time delay interrupt-OBs:


QRY_DINT
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 23

2012-02-10

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

New functions Offline DBs


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

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)

SIMATIC Memory Card

Interner load memory


DB L

User program
READ_DBL DB

or
2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

WRIT_DBL

Page 24

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

New functions Data logging (1)


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

Data Logging Record process data

DataLogWrite

Process data
SFB142

Selection out of process data

Internal load memory

Read via: Webserver Directly from MC or

SIMATIC Memory Card

Page 25

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

New functions Data logging (2)


Data structure
Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online n For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

copy
DataLogWrite

Archive

DB
Structure

SFB142

ID: #1
No. TimeStamp

Name: `xyz`
Count (INT) Temperature (REAL) Pressure (REAL)

Struktur
Name Count Temperature Pressure Type INT
REAL REAL

Wert

1 2 3 3 .

10 27.5
4.3

12.03.11 14:00 12.03.11 14:15 12.03.11 14:30

2 5 10

20.8 30.2 27.5

2.4 6.7 4.3

Page 26

2012-02-10

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

New functions Data logging (3)


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

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

Functions:

DataLogCreate

Create new log Write entry in log Create log (new name, with same data like specified in ID) Open log Close log
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

DataLogWrite

DataLogNewFile

DataLogOpen

DataLogClose

Page 27

2012-02-10

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

New functions Data logging (4)


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

Create storage 1 LogData as Struct / UDT Storage e.g. in DB Name ID Header LogData 4

One-time: Create/open the log by Name, Header (optional) and LogData ID is returned
DataLogCreate DataLogOpen

Collect by: Webserver 5 SIMATIC Memory Card

2
Name: MyFirstLog ID: DW#16#0001
Temperature Pressure (REAL) (REAL) 20.8 30.2 2.4 6.7

Write an entry by ID
DataLogWrite

No.

TimeStamp

Count (INT) 2 5

1 2

12.03.11 14:00 12.03.11 14:15

3
Page 28 2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Timestamp is automatically generated by the PLC

New functions Data logging (4) Memory requirement


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online No. TimeStamp Count (INT) 2 5 Temperature (REAL) 20.8 30.2 Pressure (REAL) 2.4 6.7

Memory requirements per dataset:


Name: MyFirstLog ID: DW#16#0001

Overhead Timestamp INT REAL

12 Bytes 20 Bytes 7 Bytes 16 Bytes

1 2 n

12.03.11 14:00 12.03.11 14:15

Example MyFirstLog:
max. capacity in byte max. recommended numbers of datasets *) 14768 177223

71 Bytes / Dataset

record time *) (by 15 min record cycle) 153 days 1846 days

SIMATIC MC (2 MB) SIMATIC MC (24 MB)

2097152 25165824

*) SIMATIC MC is also used as load memory - suggestion: use maximum half of the size for data logging
Page 29 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2 For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

B2

Data Logging Function: DataLogCreate


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication No. Know-how protection Webserver SCADA Communication Technology Online

Memory Card
DataLogCreate

Create data log file: in the internal load memory or on the SIMATIC Memory Card

FB1

ID: #1
Time Stamp

Name: `xyz`
A (Real) B (String) C (INT)

In: In: In:

Name `xyz` Records n (Amount of entries in the ring buffer) Format 1 (.csv)

1 . . . n For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

In: TimeStamp 1 (date+time) Out: ID ID#1 number


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

Page 30

2012-02-10

Slide 30 B2 HIDE
Bernd, 5/6/2011

B3

Data Logging Function: DataLogWrite


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication No. Know-how protection Webserver SCADA Communication Technology Online A B C Page 31 2012-02-10 REAL String INT 5.678 World 92534 . n For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Memory Card
DataLogWrite

Write data to the ring buffer

FB1

ID: #1
Time Stamp yesterday today tomorrow

Name: `xyz`
A (Real) 1.234 5.678 9.012 B (String) Hello World Siemens C (INT) 53425 92534 32634

In: ID ID# number

DB
UDT

UDT
Name Type Value

2 3

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

Slide 31 B3 HIDE
Bernd, 5/6/2011

B4

Data Logging Function: DataLogCreateNewFile


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication No. Know-how protection Webserver SCADA Communication Technology FB1 Online . n For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA 1 2 . 3 .

Memory Card DB
UDT

Create new file with same structure

ID: #2
Time Stamp 15:00 16:00 17:00

Name: `fgh`
A (Real) 1.234 5.678 9.012 B (String) Up White Down C (INT) 53425 92534 32634

DataLogCreateNewFile

In: ID
Page 32 2012-02-10

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

Slide 32 B4 HIDE
Bernd, 5/6/2011

Data Logging Standard Website


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

Download and delete archives

For ability to delete the log, you must be logged in as the administrator

Page 33

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Data Logging Automatic collecting


Update procedure Programming New functions Time functions String functions Interrupt functions Offline DBs Data logging Communication Know-how protection Webserver SCADA Communication Technology Online

CSV-files have fixed address, e.g. https://192.168.0.1/DataLog.html?FileName=Datalog.csv They can thus be collected automatically a Time interval and download location is configured in Download manager, e.g. Orbit Downloader

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 For internal use only / Siemens AG 2012. All Rights Reserved. STEP 7 V11 SP2 and S7-1200 with firmware V2.2 I IA AS S SUP FA

Page 34

2012-02-10

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Communication Overview
Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

PROFINET Controller

S7-1200

PROFIBUS Master/Slave

S7-1200

ET200S

ET200S

PROFINET 8 Open Ethernet Komm. 8 PROFINET IO devices Max. 16 connections with mixed configurations (T-Blocks)

PROFIBUS

16 slave connections

3 HMI connections for Basic Panels, or up to 2 Comfort Panels 3 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)
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 36

2012-02-10

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

Communication PROFINET IO
Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

PROFINET IO PROFINET I/O Controller Max. 8 PROFINET devices Support of all devices on the PROFINET header module, e.g.: Standard I/O Drives Etc.

ET200pro

ET200S

ET200eco PN

Page 37

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Communication PROFINET IO functions


Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

Change IP-address and device name from user program


User program

Change the IP-address or the device name


OB FC FB
Local

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

T_CONFIG

Change IP-address Change device name

Page 38

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Communication PROFIBUS DP
Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

Connecting to PROFIBUS DP network as master or slave Download via PROFIBUS Max. 16 PROFIBUS slaves PROFIBUS Master
S7-1200

Routing
S7-300 ET200S ET200S

Max. Module: Max. 1 PROFIBUS master Max. 3 PROFIBUS slaves Mixed conf. with RS232, RS422/RS485 possible PROFIBUS Slave
ET200S
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

S7-1200

Page 39

2012-02-10

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

B5

Communication Overview functions


Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

Read data from peripheral devices / write data to peripheral devices Read data

S7-1200

Write data
ET200S ET200S ET200S ET200S

Consistently read data: Consistently write data:

DPRD_DAT DPWR_DAT

Read data record: Write data record:

RDREC WRREC

Page 40

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Slide 40 B5 HIDE
Bernd, 5/6/2011

Communication Overview functions


Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

S7-communication Client (active) Server (passive) Connection with a fixed partner


DB DB

Put data to DB in server: PUT


PUT

Put data

Get data from DB in server: GET

DB

DB

GET
Page 41 2012-02-10

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

Communication Overview functions


Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

UDP-communication

TUSEND
Local

Small data packets Send data by UDP Fast communication No preconfiguration of connection necessary No data link layer in UDP-protocoll TURCV
Local For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 42

2012-02-10

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

Communication Diagnose
Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

different instructions for overall diagnose


S7-connection Central unit

LED-status
DeviceStates LED

Module-diagnose
S7-1200
RALRM ModulStates

Channel-diagnose
GET_DIAG DPNRM_DG

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

ET200S

Diagnose data can also be read by function RDREC.

Page 43

2012-02-10

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

S7-1200: MODBUS TCP instructions


Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

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 44

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Communication AS-i
Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online

AS-i Master connection with CM 1243-2 Supports AS-i specification V3.0 (include Power24V) Up to 62 AS-i Slaves can be connected Digital and analogue value direct to the process image Integrated AS-i Power Fail detection Automatic address programming Address selection of connected AS-i Slaves Data interface like IE/AS-i Link Firmware update is supported Technological parameterization of M200D Motorstarter

Page 45

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Know-How-Protection Hiding the program


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Know-how protection Hiding the program Lock user blocks with the know-how protection: Only interface is readable
OB FC FB Local Global

Know-how protection
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 47

2012-02-10

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

Know-How-Protection Binding the program


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Copy protection Binding 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 Anwenderprogramm Anwenderprogramm

Download

Upload

Binding serial no.

PLC 1
Page 48 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2

PLC 2

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Webserver Preconfigured websites


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Preconfigured websites Diagnose information available Monitoring of variables

Graphical information also without HMI

Page 50

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Webserver User-defined web pages


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Possibility to create user-defined web pages Display process variables Change process variables

Page 51

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

SCADA Communication to SIMATIC S7-1200


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

S7-1200 communication driver for panels and SCADA

Communication channel for SCADA

New communication channel for HMI Access data via symbolic addressing in the runtime Easy time synchronization for Comfort Panel to S7-1200
Easy time synchronization, no pointer necessary

Page 53

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Technology PID-controller (1)


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology PID-control Motion Online

2-step controller PID_Compact


Set point: temperature

On

50C -

Pot

50C
Sensor: temperature

Off

off

heat

Actuator: heating (On / Off)

Page 55

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Technology PID-controller (2)


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology PID-control Motion Online less backwards off off more forwards

3-step controller PID_3Step


Set point: temperature

Umax

Open Off

50C -

Pot

Sensor: lower and upper limit

C 70

20 C

Sensor: temperature

0 1 -1

Close

-Umax

Actuator: Open and Close

50C

Page 56

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Technology Motion
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology PID-control Motion Online

CommandTable operate axis by traversing profile CommandTable Motion sequence

MC_Command Table
Local

Command

Position Velocity Duration


100.0 250.0 10.0 0 250.0 0.5s -

4. 2. 3.

1 MoveAbsolute 0.0 2 MoveAbsolute 100.0 3 MoveAbsolute 110.0 4 Wait


0

1.

5.

5 MoveAbsolute 0.0
Page 57 2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Technology Motion
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology PID-control Motion Online

Change dynamic settings for motors Dynamic settings can be changed with new block MC_ChangeDynamic
Enable / disable

jerk limit
Change value of

Change deceleration value

jerk limit Jerk limit disabled


v v

Change emergency stop

deceleration value enabled


Change acceleration value
t
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

t
Page 58 2012-02-10

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

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

Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

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

Online Download / Upload


Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

TIA Portal V10.5

TIA Portal V11

S7-1200 with FW V1 (V2 not recommended)

S7-1200 with FW V1 or V2

- 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
Page 60 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2 For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

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


Offline project Mode Action
Data_Block_1

S7-1200
Load memory Data_Block_1 Data_Block_1

Loading DB into controller Initialization of DB after Download Loading program blocks in Mode STOP (DB not affected because not modified) Retentivity behavior With STOP/RUN transition after loading program blocks (DB not affected)
* Improvement

Start value Retain not Retain

Start value Retain not Retain

Working memory

OB FC FB

Data_Block_1

Current value Retain not Retain

compared to V10.5

With warm restart

Retentivity memory
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 61

2012-02-10

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

S7-1200 Firmware V2.2 Download while Run


Requirements STEP 7 V11 SP2 S7-1200 Firmware V2.2 Changes on OB, FB, FC and DBs supported: Code - changes changes on tag names Rewiring of tags (I/O-address-changes) Limitations of Download while Run The reloading while Run is restricted of 3 blocks, the download will be consistent! No structure changes on DBs allowed No changes on device configuration
Page 62 2012-02-10 STEP 7 V11 SP2 and S7-1200 with firmware V2.2 For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

DB Editor: current value and upload behave for S7-1200 with STEP 7 V11.0
S7-1200
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

load to controller Initializing Start After Download SFC 83 (READ_DBL) Current value Load to PG (inclusive. Symbolic) Write to load memory SFC 84 (WRIT_DBL)

Offline Project
Data_Block_1

S7-1200
Load memory Data_Block_1 Data_Block_1

Default value (only reading) Start value

Default value (only reading) Start value

work memory Data_Block_1

current value

current value

Page 63

2012-02-10

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

For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Online Forcing
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online

Forcing the LED MAINT is flashing while forcing

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

MAINT LED is flashing, while inputs or outputs are forced

The force table can be found in the program tree under watch tables
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA

Page 64

2012-02-10

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

Thank you for your attention!

I IA AS S SUP FA Gleiwitzer Str.555 90475 Nuremberg Phone: +49 (911) 895 - 4646 E-Mail: sss.simatic@siemens.com

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

You might also like