Professional Documents
Culture Documents
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online
Siemens Customer&Support
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
Page 3
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Firmware V2.2
New functionality
Page 4
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Update procedure Programming 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
Page 6
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Multi instances can be used for FBs and SFBs Multi instances save internal load memory
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
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
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]
Page 9
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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]
Page 10
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Global constants Advantages: Defined one-time and can easily be changed if necessary
User program
OB FC FB
Local
Global
Page 11
2012-02-10
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
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
Page 13
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
E / A / M / DB
Name Data type Address Var_A Bool %I0.0 Monitor value True
Page 17
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
E / A / M / DB
Name Var_A Data typ Bool Address %I0.0 Monitor value True
Page 18
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online
RTM
T_COMBINE
Page 20
Local time
+
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
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
Call
OB
FC FB
Local
Firmware
Read OB parameter
SET_CINT QRY_CINT
(e.g.
Page 23
2012-02-10
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
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
DataLogWrite
Process data
SFB142
Page 25
2012-02-10
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
2 5 10
Page 26
2012-02-10
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
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
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
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
1 2 n
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
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
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)
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
Page 30
2012-02-10
Slide 30 B2 HIDE
Bernd, 5/6/2011
B3
Memory Card
DataLogWrite
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
DB
UDT
UDT
Name Type Value
2 3
Slide 31 B3 HIDE
Bernd, 5/6/2011
B4
Memory Card DB
UDT
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
For ability to delete the log, you must be logged in as the administrator
Page 33
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online
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
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
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
T_CONFIG
Page 38
2012-02-10
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
B5
Read data from peripheral devices / write data to peripheral devices Read data
S7-1200
Write data
ET200S ET200S ET200S ET200S
DPRD_DAT DPWR_DAT
RDREC WRREC
Page 40
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Slide 40 B5 HIDE
Bernd, 5/6/2011
Put data
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
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
Communication Diagnose
Update procedure Programming New functions Communication PROFINET PROFIBUS Modbus TCP AS-i Know-how protection Webserver SCADA Communication Technology Online
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
Page 43
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
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
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
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
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
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
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online
Page 50
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Possibility to create user-defined web pages Display process variables Change process variables
Page 51
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online
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
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online
On
50C -
Pot
50C
Sensor: temperature
Off
off
heat
Page 55
2012-02-10
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Umax
Open Off
50C -
Pot
C 70
20 C
Sensor: temperature
0 1 -1
Close
-Umax
50C
Page 56
2012-02-10
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
MC_Command Table
Local
Command
4. 2. 3.
1.
5.
5 MoveAbsolute 0.0
Page 57 2012-02-10
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
t
Page 58 2012-02-10
Update procedure Programming New functions Communication Know-how protection Webserver SCADA Communication Technology Online
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
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
Working memory
OB FC FB
Data_Block_1
compared to V10.5
Retentivity memory
For internal use only / Siemens AG 2012. All Rights Reserved. I IA AS S SUP FA
Page 61
2012-02-10
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
current value
current value
Page 63
2012-02-10
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
Only usable by accessing the peripheries of the inputs and outputs (%Q0.0:P)
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
I IA AS S SUP FA Gleiwitzer Str.555 90475 Nuremberg Phone: +49 (911) 895 - 4646 E-Mail: sss.simatic@siemens.com