Cours WinCC (3).pptx

239

Click here to load reader

Transcript of Cours WinCC (3).pptx

Page 1: Cours WinCC (3).pptx

System Overview

Page 2: Cours WinCC (3).pptx

Objectives

- Application Possibilities

- Forms of Delivery

- Core Functions

- Architecture

Page 3: Cours WinCC (3).pptx

Application Possibilities of WinCC

Page 4: Cours WinCC (3).pptx

Customer Benefits

Page 5: Cours WinCC (3).pptx

The Basic Functions

anzahl () float zae beginif wert > 0 begomzae = zae + 1end end

Programming Interfaces

PLCCommunication

Report Designer (Report System)

Tag Logging (Archiving)

Protokolle

Motor ein Ventil geschlossen Klappe zu

Alarm Logging (Message System)

Standard Interfaces

Process Visualization

Page 6: Cours WinCC (3).pptx

Basic Process Control 1/2

➢OS-Projecteditor➢Group Display➢Picture Tree Manager➢Time Synchronization➢Horn Editor➢Lifebeat Monitoring➢Graphic Object Update Wizard*➢Block List Editor*

➢Chipcard (Option)

As of Version 6.0, there is no longer a license check for the Basic Process Control package. * Function can only be used in PCS7.

Page 7: Cours WinCC (3).pptx

Basic Process Control 2/2

Subnavigation WindowWindow Technique

Overview Area

Work Area

Toolbar Area

Page 8: Cours WinCC (3).pptx

Licenses and Options

Licenses

RC 128

Power Tags

RC 256

Power Tags

RC 1024

Power Tags

RC 8000

Power Tags

RC 64,000

Power Tags

256Power Pack (128)

1024PowerPack (256)

8.000Power Pack(1024)

64,000PowerPack

(8000)

Runtime + Configuration (RC)

Runtime 128

Power Tags

Runtime 256

Power Tags

Runtime 1024

Power Tags

Runtime 8000

Power Tags

256Power Pack (128)

1024Power Pack (256)

8.000Power Pack (1024)

Runtime 64,00064,000 Power

Power Tags

Pack (8000)

Options

WinCC

Dat@Monitor (Web_Client)

WinCC

ODK

WinCC

Allen Bradly DF1 serial

WinCC

ProAgent

WinCC Chip card reading

functionWinCC Web

Navigator

WinCC

User Archives

WinCC

Server

WinCC

Redundancy

Runtime (RT) Software512 archive tags are included in the basic system.

Page 9: Cours WinCC (3).pptx

SIMATICIndustry PC

SIE MEN S

SI C OM P

IP C RI

20

WinCC

SIMATICOffice PC

WinCC

System Software and Systems

CD-ROM with system software, options,tools and documentation

Authorization diskette

SIMATICPanel PC

PC 670 PC 870

Page 10: Cours WinCC (3).pptx

WinCC Software Protection

WinCC

Installation

Option nS IE M E N S

SI C O M P

IP C R I 2 0

Option1

De-Installation

WinCC and Multi authorization

No DEFRAG can be performed after the licenses have been installed, since the licenses could thereby be lost. Each WinCC Version has its own authorization.

Page 11: Cours WinCC (3).pptx

System Configurations

Management Level and Production Level

Corporate Management Level

Process Supervision Level and Production Management Level

Automation Level

PC Network

LAN-Netz

SIMATIC NET

MPI(not with S5)

Single-user system

with PC and OP

Multi-user system with Server and Client

Distributed Peripherals S5/S7 S505 S5 S7 S505 S5/S7

...

ServerClientClient

Server / R.-ServerClientClient

Client Client

SIMATIC WinAC MP

Server 1 ... Server 12

Distributed

systems with

Server and Client

Page 12: Cours WinCC (3).pptx

Configurations for Single-user Systems

MPI (only S7) ,SIMATIC NET PROFIBUSSIMATIC NET Industrial Ethernet

SIMATIC S5 / S7 / 505or

PLCs from other manufacturers

SIMATIC S5 / S7 / 505or

PLCs from other manufacturers

WinCC

Example 2

Coupling via Network

Example 1

Serial coupling

Point to Point serial V.24 / TTY

DK3964R + RK512

COROS OP45

Page 13: Cours WinCC (3).pptx

Multi-user System

SIMATIC NET

SIMATIC S7-400

Terminal bus (PC Network)

(S7), S5:

SIMATIC NETIndustrial Ethernet:TF (Technological Functions)

S7: S7 Protocol

SIMATIC NETProfibus:

(S7), S5: FMS (PROFIBUS)S7: S7 Protocol

SIMATIC 505

all WinCC applications

Server

Client 1 Client 32...

Red. Server

all WinCC applications

SIMATIC S5

Note: This WinCC configuration is also used for multi-configuration.

Page 14: Cours WinCC (3).pptx

all WinCC applications

Red. Server

Distributed Systems / Web Technology

SIMATIC S5

SIMATIC S7-400SIMATIC 505

all WinCC applications

Server 1all WinCC applications

Server12

Terminal bus (PC Network)

all WinCC applications

M Client 1

all WinCC applications

M Client 32

...

WinCC Web Client

WinCC Web Server

-Technological distribution-Functional distribution-Load distribution

SIMATIC NET

Page 15: Cours WinCC (3).pptx

The Architecture

WinCC Explorer

Syst

em C

ontr

olle

r

. . .

Data Manager

Text- Libaray

RTRT AccessProtection

S7S5

CS

RT Tag Management Process Data

CS RTAlar

m Logging

Option

CS CS

CS

RT

CS RT

Graphics

CS RTRepo

rt Designer

CS RTGlob

al Scripting

CS RTTag

Logging

.mdfMS 2000SQL-Server

RT .mdf

Page 16: Cours WinCC (3).pptx

Openness

OPC Server

GraphicsTrend

Alarm

User Programs

ManagementAnalysis

Optimization...

API

Report

Data Manager

OPC ClientNetwork

Windows Applications

Excel Word

PowerBuilder...

ODBC/SQLOLE DB(ADO) Access

DDE

OLEOCX

Active X

OPCOPC Net Server

SIMATIC NET

Page 17: Cours WinCC (3).pptx

Hardware and Software Requirements

Page 18: Cours WinCC (3).pptx

Installation

●Hardware●According to the Installation Guidelines (InstallNotes.pdf)

●Software●Microsoft operating system Win2000 or WinXP●Windows 2000 SP3 or Windows XP SP1 (included in delivery)●Microsoft Message Queuing services (from Windows Installation CD)●Internet Explorer V6.0 SP 1 (included in delivery)●Microsoft SQL Server 2000 SP3 (included in delivery)●WinCC V6.0●SIMATIC NET, V6.0 SP5 (November 2002) for Windows 2000 and Windows XP●Installation of the authorizations

Page 19: Cours WinCC (3).pptx

Migration of Configuration from V5 to V6 1/2

● Requirements● WinCC V5.0 SP2 or V5.1 Project● Sybase 7 installed

● from existing WinCC V5 installation● from WinCC V5 CD (WinCC\setup\Products\Sybase_7)

Tools: “Project Migrator“ Wizard from Storage

●Steps●Parameterize Migration Tool for the migration of Configurationand Runtime databases (also Storage)

●Convert Screens, Libraries, etc.

Page 20: Cours WinCC (3).pptx

Migration of Configuration from V5 to V6 2/2

TCP/IP

1... n

SIMATIC NET

●Standard Client/Server●Migration Tool automatically converts the Server project including the computer list●Sybase Installation must still exist on the WinCC computer for conversion to MS SQL.

●Multi-Client/Server●Separate migration of the Server and ALL Client projects●Sybase must be present on ALL WinCC computers for the migration●Initial Export and Import (create new) of the Server packages is necessary – after that it runs automatically.

Page 21: Cours WinCC (3).pptx

Your regional partner in the region/worldwidehttp://www3.ad.siemens.de/partner/

Product Support

Using aSIMATIC AV Card(if “in a hurry“)

Guaranteed response time< 2 hours24h support on weekdays

0180 5050 222Fax - 223Basic Support (Free Connect)

0911-895-7777Fax -7001Premium Support (Fast Connect)

More than 70 specialists are handling your inquiries

A&D on the Internet: http://www.ad.siemens.de/support then link to Product Support

Questions about authorizationof software products: 0911-895-7200

Automation & Drives -Technical SupportYour specialists for SIMATIC, SINUMERIK, Drives, ....

DispatcherReceives your inquiry and passes it on to the specialistsE-mail: [email protected]

No guaranteed response time Principle of “first in - first

out“Weekdays (Mo. - Fr.) from 8:00

- 17:00

Customer SupportQuestions on Questions on

selection handling handlingproducts and systems ?

of products and systems ?

Page 22: Cours WinCC (3).pptx

Training Center Information

TC Nürnberg-Moorenbrunn

Page 23: Cours WinCC (3).pptx

Basic and Advanced WinCC Courses 1/2

Project design/Programming/Commissioning engineers

Experience with graphic interfaces,such as Windows

SIMATIC WinCCOperating and Monitoring, System TrainingST-BWINCCS 5 Days

SIMATIC WinCCAdvanced Course

ST-BWINCCV 5 Days

Page 24: Cours WinCC (3).pptx

Basic and Advanced WinCC Courses 2/2

1) Programming engineer, Project design engineer, Commissioning engineer possibly Decision makers Maintenance

.

.

.

1)

SIMATIC WinCCAdvanced CourseST-BWINCCV 5 Days

1)

SIMATIC WinCCOperating and Monitoring, System TrainingST-BWINCCS 5 Days

Page 25: Cours WinCC (3).pptx

Creating a Project, Coupling a PLC, and Tag Simulation 1

Page 26: Cours WinCC (3).pptx

Creating a Project, Coupling a PLC, Variable Simulation 2

Page 27: Cours WinCC (3).pptx

Objectives

- Creating a Project

- Installing Communication Drivers

- Configuring Tags

- Tag Simulation

- Cross Reference

Page 28: Cours WinCC (3).pptx

Configuration Preparation

- Programmable Logic Controllers

- Type of Coupling

- Process Tags

Page 29: Cours WinCC (3).pptx

Creating a Project

SIMATIC NET

PLC

Office PC or Industrial PC -one Single-User

-one Server, several Clients without their own project

-Distributed Systems, several Clients with their ownproject

Page 30: Cours WinCC (3).pptx

WinCC Project Structure and Files

-Configured Screens (.pdl, .sav)-Screen Files (.bmp, .emf, .wmf)-Action Lists (.act)

-Project Functions (.fct)-Projekt Library (.pxl)-Funktion Declarations (.h)

-Function Library (.dll)

-Cross Reference List (.xfc)

-Report Layouts (.rpl)

-Master-DB with link to the RT-Files +User Archive-Database

-Log File to Database

-Main File of the Project

-Database Logfile

-Database with Configuration Data

-Computer Name

-Project Actions (.pas)

-Cross Reference Main File

-Tag Logging RT-Data-Alarm Logging RT-Data see Text

-Imported RT-Data

Page 31: Cours WinCC (3).pptx

Interchanging between Projects

Project name. MCP

Page 32: Cours WinCC (3).pptx

Specifying Project Properties

Page 33: Cours WinCC (3).pptx

Computer Properties (1/2)

Page 34: Cours WinCC (3).pptx

Computer Properties (2/2)

.cur

.ani

Page 35: Cours WinCC (3).pptx

Function Modules within WinCC 1/2

Project(name) with

- Computer- Tag Management- Structure Types

WinCC hierarchical tree structure

Editors

- Graphics system- Message system- Measured value acquisition

and archiving- Report system- C-Programs, VBS and actions- Text library- Password protection- Cross Reference

Transfer edited data to the Operator Station

Page 36: Cours WinCC (3).pptx

- Graphics system- Message system- Measured value acquisition

and archiving- Report system- C-Programs, VBS and actions- Text library- Password protection- Cross Reference

-Option

Function Modules within WinCC 2/2Deactivate Activate

Editors

Page 37: Cours WinCC (3).pptx

Task Definition

17.02.96 11:15:45

SIMATIC WinCC Start picture

Motor picture Bottling plant TrendsAlarm Logging - Messages

Setpoint speed Actual speed

M

Data Management

Reports

Page 38: Cours WinCC (3).pptx

Tags for the Process Connection

M

Motor 1 defectiveValve 3 sticks...

Process FunctionSetpoint speed Actual speed

Coupling Process Imagesuch as, DB,DW for SIMATIC

10111213.0

20

30

35

Message40.040.1

events

SIMATIC S5

SIMATIC S7

SIMATIC 505Archive

Other drivers

Page 39: Cours WinCC (3).pptx

Data Exchange with SIMATIC S7

DB20

DBW 6 Int=190DBW 8 Int=95

Programmable Logic Controller WinCC Station

Actual value 190

Setpoint value 95

Actual speed DB20.DBW6 Setpoint speed

DB20.DBW8

Digital output

Digital input

Image

LAN

MPI

Page 40: Cours WinCC (3).pptx

Data Exchange with SIMATIC 505

=190=95

Programmable Logic Controller WinCC Station

Actual value 190

Setpoint value 95V010

Actual speed V010, Setpoint speed V010,

Digital output

Digital input

Image

LAN

MPI

Page 41: Cours WinCC (3).pptx

Installation of the SIMATIC Device Drivers (S7-DOS)

Page 42: Cours WinCC (3).pptx

Communication Structure

PLC(e.g. SIMATIC S7-300 withCP 342)

Communication processor (e.g. CP 5613)

Hardware driver (e.g. S7-CP 5613)

Channel unit (e.g. PROFIBUS)

WinCC communication drivers (e.g. SIMATIC S/-Protocol Suite)

WinCC Data Manager

WinCC Application (Graphics RT, Alarm Logging RT, Tag Logging RT, etc.)

S7-DOS Driver

CP5611

S7-300

MPI

Lab Station:

Page 43: Cours WinCC (3).pptx

SIMATIC HMI© Siemens AG 2003. All rights reserved.

Exercise 3: Motor Operation and Motor Color Change

Motor operation

setpoint speed operation

Motor symbol with color animation

Page 44: Cours WinCC (3).pptx

SIMATIC HMI© Siemens AG 2003. All rights reserved.

Exercise 4: Calculation of an Output Value with C

In Object Properties ->Miscellaneous set the attribute Sizeable to yes.

Aktionen.pdl

Page 45: Cours WinCC (3).pptx

Exercise 5: Calculation of an Output Value with VBS and TroubleshootingAktionen.pdl

Page 46: Cours WinCC (3).pptx

Exercise 6: Bar Graphs for Setpoints and Actual Values

Bar graph for setpoint speed

Bar graph for actual speed

Page 47: Cours WinCC (3).pptx

Exercise 7: Status Display

Zustandsanzeige.pdlclose

open

Page 48: Cours WinCC (3).pptx

Exercise 8: Two-Step Operation

Operating picture: Mot1.pdl

Configuration with Direct Connection:-Source: Constant 0-Target: Current Window-> Display

Configuration with Dynamic Wizard:-Picture Function-Display WinCC Dialog Box with Mot1.pdl

Motor.pdl

Page 49: Cours WinCC (3).pptx

Exercise 9: Setting a Bit in a Byte

Conveyer 2

Q0.1

Bandanlage.pdl

Page 50: Cours WinCC (3).pptx

Exercise 10: Help Function

Press right mouse button: display help text

Release right mouse button: hide help text

Tooltip text

Object name: Help TextH

Page 51: Cours WinCC (3).pptx

Exercise 11: Customized Object

Customized object

Page 52: Cours WinCC (3).pptx

Exercise 12: Indirect Addressing

textvariable with indirect addressing

Page 53: Cours WinCC (3).pptx

Message System 1/3

Binary tag

Prepare message

Ring buffer main memory

old / new

Message frame

Inter- pre- tation

Process

Message sequence

- Shift reporting- Daily reporting- Monthy reporting

Selection in archive

New page

report

Internal tag

Limit values

Central WinCC Archive Server

Integrated backup function

User applications -SIMATIC IT PPA-Dat@Monitor (Web-Client for Historian display and analysis )

OptionsAdd-On ODK

Main Memory

Message system API.mdf

SICOMP IPC RI 20

SIEMENS

WinCC Control

Page 54: Cours WinCC (3).pptx

Message System 2/3

ALG Master Database

RT Database (cyclic archive)

RT Master database

Swap in/swap out Depends on the Requirement->Backup Archives (.mdb)

Analysis / Evaluation• WinCC Standard Tool (Control)• Protocols (Report Designer)• WinBDE (recording operating data)

• Dat@Monitor + Excel• Connectivity Pack + External Appl.• IndustrialDataBridge + Ext. Appl.

Data acquistion• WinCC Data Manager• OPC Server• WinCC Server-Server

Communication

Long-term archiving• High performance archiving• Swap data in - swap data out

Note: ES=Single segment

Page 55: Cours WinCC (3).pptx

Message System 3/3

Runtime-Data Alarm Logging Segment:COMPUTER_PROJECT_ALG_<Time_from>_<Time_to>.LDFCOMPUTER_PROJECT_ALG_<Time_from>_<Time_to>.MDF COMPUTER_PROJECT_ALG_YYYYMMDDHHMM.LDFExample: DOZENT_Generatorhaus_ALG_200304300901.mdf

Message listLong-term archive

Short-term archive

Data acquisition+WinCC Data Manager+OPC Server+WinCC Server-Server

Communication(max.11)

Page 56: Cours WinCC (3).pptx

Message Blocks and Message Line

Message line

System blocks

Clock time

Date

Number

User blocks

Error cause

Error location

max. 10

Process value blocks

Process value 2

Process value 1

max. 10

Page 57: Cours WinCC (3).pptx

Message System Call-Up

1. Call the shortcut menu.

2. Click on the mouse to select “Open.” Result: Alarm Logging starts.

3. Maximize the window and set up the interface as you want it.

Page 58: Cours WinCC (3).pptx

Message System Configuration Interface

Editing window

Table window

Analog AlarmMenu Bar: Options, drop-down menu: Add Ins ...

Select Wizard

Navigation window

Page 59: Cours WinCC (3).pptx

Wizard Overview

Wizard

Configuration dialogs

Page 60: Cours WinCC (3).pptx

Editing Message Blocks

Shortcut menu

Shortcut menu

Page 61: Cours WinCC (3).pptx

Structure of Messages with Message Classes and Message Types1) Technological Division

Message Classes

2) Priority Division1...

16

1...

Types1... 16

1... 16 Message Classes

Types 1... 16

Page 62: Cours WinCC (3).pptx

- Status textsfor the message

Editing and Configuring Message Classes- Acknowledgement theory- Acknowledgement of central signaling devices

Max. 16

Page 63: Cours WinCC (3).pptx

Editing the Message Types

Page 64: Cours WinCC (3).pptx

Setting Up a Message Archive

Shortcut menu

OR OR

Ring buffer archive

Page 65: Cours WinCC (3).pptx

Setting Up Messages for Reloading

Shortcut menu

Page 66: Cours WinCC (3).pptx

Backup Configuration

Shortcut menu

RT Data

Page 67: Cours WinCC (3).pptx

Resetting the Archive and Evaluating Old Archives

Shortcut menu for WinCC in RT mode

Connect:Necessary when old archive files are to be evaluated

Disconnect: “Opposite” of Connect

Shortcut menu for WinCC in CS mode

Reset:All Database files in thelong-term archive are deleted after check back.In the first RT mode, DB files are automatically recreated.

Page 68: Cours WinCC (3).pptx

Editing a Single Message

- Infotext- Text for user

blocks

- Tags forprocess value blocks

- Loop in Alarmpicture

Shortcut menu"Properties"

Page 69: Cours WinCC (3).pptx

WinCC Alarm Control in Graphics Designer

Page 70: Cours WinCC (3).pptx

Window Properties for WinCC Alarm Control

Toolbar

Double-click

Preview Message line

Status bar

- Separation lines- Selection- Auto Scrolling- Line properties- Column properties- Shorten Title

- Edit Message blocks

- Edit

Message line

- Toolbar on/off- Keyboard functions- Alignment- Hotkeys

- Status bar on/off- Elements of status bar

enabled- Alignment

Page 71: Cours WinCC (3).pptx

Double-click

Page 72: Cours WinCC (3).pptx

Configuration Notes

Bit Message Procedure

- WinCC polls the message bits every 500ms

+ easy to configure

- “central acknowledgement“ through acknowledgement tags

“Reporting in the Correct Chronological Order“

+ message telegrams are only sent when events occur+ exact time-stamp for messages (length of the CPU cycle;

e.g. 50ms)- with PMC “central acknowledgement“ without additional work- S5-PMC: higher capital expenditure (PMC channel; PMCPRO and special

FBs)

- S5-PMC: higher CPU scan cycle time and higher memory usage

+ Advantage with S5 communication: S5-PMC does ‘Blocking‘

+ S7 blocks integrated in the operating system

Page 73: Cours WinCC (3).pptx

User blocks

Message Blocks Exercise

-4 charactersProperties

-10 characters -14 charactersProperties -12 characters

System blocks

-Sequence-Two-digit year

-Time format -Length -6 digits8 characters -With leading

zeros

Properties -Length -Length8 characters 15 characters

Process value blocks

Page 74: Cours WinCC (3).pptx

Message Class, Message Types, and Archives Exercise

Configuring message classes

General - Name: blast furnace- Message types Alarm,

error

Status texts - ARR- DEP- ACK- A/D

-See screenshot in text

Blast furnace

Message types

Alarm Failure

- Arrived: red Properties- Departed: green- Acknowledged: yellow

Acknowledgement -Acknowledgementcame in

Archive

-100 messages for reloading

Properties

Page 75: Cours WinCC (3).pptx

Single Message Exercise

Table window

Or process tag IB0

Page 76: Cours WinCC (3).pptx

WinCC Alarm Control Exercise

-Date-Time-Number-Status-Message text-Point of error-Cause-Class-Type

General Window Title: Blast furnace-W. Window Type: Message Window

Message Line

Parameters Status

Bar

-Display-Alignment down-Select all elementsof the status bar

Toolbar -Display-Alignment up-All key functions

Copy (if present) the picture melden.pdl into your project from the catalog ab_uebung.

-Separation lines horizontal and vertical "activated"-Selection: Cell "activated"-Auto Scrolling not activated(for Window Type: Message Window)-Line Title "activated"-Column Title "activated"-Change Column Width "activated"

Page 77: Cours WinCC (3).pptx

Message Screen Exercise

WinCC Alarm Control

Page 78: Cours WinCC (3).pptx

Group Messages

1) From message classes:Message class A Message class B ..... ...

Message class P

Message type 1 ....message type 16 ...... ... ..... Mess. type 1 .... mess. type 16

2) From user-defined messages:Message numbers x to (x+2n) ...........

Message numbers y to (y+2m)

Messages .... ....messagesx to x+n .... .... x to x+2n

Messages .... ....messagesy to y+m .... .... y to y+2m

Page 79: Cours WinCC (3).pptx

Creating the Tag for a Group Message

Page 80: Cours WinCC (3).pptx

Connect Tag with the Group Message (Message Class)

in Alarm - Logging

Page 81: Cours WinCC (3).pptx

incoming not ackn.

incoming ackn.

outgoing not ackn.

outgoing ackn. (finished)

15... 8... 0

00000001 0000000100000000 0000000100000001 0000000000000000 00000000

Evaluating the Status Tag for a Text ObjectBit 0: 0- there is no malfunction 1- there is a malfunction

Bit 8: 0- message is acknowledged1- message is not acknowledged

Incoming not acknowledged Outgoing not acknowledged

Page 82: Cours WinCC (3).pptx

incoming not ackn.

incoming ackn.

outgoing not ackn.

outgoing ackn. (finished)

15... 8... 0

00000001 0000000100000000 0000000100000001 0000000000000000 00000000

Evaluating the Status Tag for a Text Object

Bit 0: 0- there is no malfunction 1- there is a malfunction

Bit 8: 0- message is acknowledged1- message is not acknowledged

Page 83: Cours WinCC (3).pptx

Exercise: Group Messages

Loading blast furnace

Alarm AlarmError Error

Group message with message classes

Blast furnace

Incoming

IncomingIncoming

Incoming Incoming Incoming

Page 84: Cours WinCC (3).pptx

New: Database Tools 1/2

Display only in RT

Page 85: Cours WinCC (3).pptx

New: Database Tools 2/2

Open Table->Return all rows

Archive segments

Page 86: Cours WinCC (3).pptx

Trend Display and Measured Value Archiving

Page 87: Cours WinCC (3).pptx

Objectives

- Measurement Point

- Trend Display

- Trend Archive

Page 88: Cours WinCC (3).pptx

- Archive Description

- Archiving Time Period

- Trend Analysis

- Displaying Measured Values

Page 89: Cours WinCC (3).pptx

Tag Logging 1/3

lation

Trend and table display

- Shift report- Daily report- Monthly report

SICOMP IPC RI 20

SIEMENS

Process

0 n<HD

Measured Value Calcu-

Int. Tag

Measured va frame

luesInter-pre-

tation

Ring buffer RAMMeasured Value(s)

Fast Archive<=1min

Slow Archive>1min

Integrated backup function

Archive system API.ldf.mdf

Central WinCCArchive Server

User applications, such as diagnostics

ODK OptionsPMAnalysis

AddOn-SIMATIC IT PPA-Dat@Monitor

(Web-Clientsfor display

and analysis )

Page 90: Cours WinCC (3).pptx

Tag Logging 2/3

TLG Master Database

RT Master Database

Data acquistion• WinCC Data Manager• OPC Server• WinCC Server-Server

Communication

Long-term archiving• High performance archiving• Swap data in and swap data out

Note: ES=Single segment

RT-DB (Fast cyclic archives with compressed data)

RT-DB (Slow cyclic archives with uncompressed data)

Analysis / Evaluation• WinCC Standard Tool (Control)• Protocols (Report Designer)• WinBDE (recording operating data)

• Dat@Monitor + Excel• Connectivity Pack + External Appl.• IndustrialDataBridge + Ext. Appl.

Swap out Depends on the Request->Backup Archives (.mdb)

Page 91: Cours WinCC (3).pptx

Tag Logging 3/3

Data acquisition+WinCC Data Manager+OPC Server+WinCC Server-Server

Communication(max.11)

Runtime Data Tag Logging Fast Segment:COMPUTER_PROJECT_TLG_Fast_<Time_from>_<Time_to>.LDFCOMPUTER_PROJECT_TLG_Fast_<Time_from>_<Time_to>.MDF COMPUTER_PROJECT_TLG_Fast_YYYYMMDDHHMM.MDFExample: DOZENT_ab#graf#V5.1_TLG_F_200306020629.mdf DOZENT_ab#graf#V5.1_TLG_F_200306020901_200306021000.mdf

Runtime Data Tag Logging Slow Segment:COMPUTER_PROJECT_TLG_Slow_<Time_from>_<Time_to>.LDFCOMPUTER_PROJECT_TLG_Slow_<Time_from>_<Time_to>.MDF COMPUTER_PROJECT_TLG_Slow_YYYYMMDDHHMM.MDFExample: DOZENT_ab#graf#V5.1_TLG_S_200306020629.mdf DOZENT_ab#graf#V5.1_TLG_S_200306020901_200306021000.mdf

Page 92: Cours WinCC (3).pptx

Acquisiton Cycle

Archiving/Display Cycle

Time

Measured Value Archiving and ProcessingCalculations

SumArchiving 1)

Mean Value

Minimum

Maximum

Action

Last acquired value

1) 1)

Page 93: Cours WinCC (3).pptx

Tag Logging Call-Up

1. Call the shortcut menu.2. Use the mouse to click on “Open.”

Result: Tag Logging starts.3. Maximize the window and set up the interface as

you want it.

Page 94: Cours WinCC (3).pptx

Tag Logging Configuration Interface

(1)

Data windowNavigation window

Table window

Page 95: Cours WinCC (3).pptx

Archive Wizard

(1) Shortcut menu

Page 96: Cours WinCC (3).pptx

Process Value Archive Properties-Main memory or hard disk memory location-For main memory, size in data records

Shortcut menu:-Properties

Page 97: Cours WinCC (3).pptx

Shortcut menu:-Properties

Editing Measurement Points-Editing mean value, max…etc.-Unit (currently not usable)-Saving during an error-Archive only upon change

-Configured directly-No display limitation

-Start Event-Stop Event

Page 98: Cours WinCC (3).pptx

Archive Configuration

OR OR

Cyclic archive

Cyclic archive

Page 99: Cours WinCC (3).pptx

Backup Configuration Fast and Slow Archive

RT Data

Page 100: Cours WinCC (3).pptx

Resetting the Archive and Evaluating Old Archives

Shortcut menu for WinCC in RT mode

Connect:Necessary when old archive files are to be evaluated

Disconnect: “Opposite” of Connect

Shortcut menu for WinCC in CS mode

Reset:All Database files in thelong-term archive are deleted after check back.In the first RT mode, DB filesare automatically recreated.

Page 101: Cours WinCC (3).pptx

WinCC Online Trend Control in the Graphics Designer

Page 102: Cours WinCC (3).pptx

Window Properties for WinCC Online Trend Control-Label-Coarse/Fine Scaling

-Time selection-Time range

-Window Title-Background Color-Display Status/Toolbar-Writer Orientation-Staggered trends-Common Axis-Print job-Data supply

Toolbar:

-Keyboard functions-Hotkeys

Double-click

-Label

-Coarse/Fine Scaling

-Update (factor, range) -Range Selection

- Limit Values-Time Overlap-Time Jump automatic or

fixed -Value with un-certain

status

Page 103: Cours WinCC (3).pptx

Configuration Notes 1/2

Acquisition: 5 secArchiving/Display: 5 sec

This setting results in an optimized communication load

Acquisition: 1 secArchiving/Display: 5 sec

This setting results in an unnecessary communication load

Acquisition: 1 secArchiving/Display: 1 sec

Archive becomes very large, unnecessary communication load

Acquisition: Archiving/Display:

2 sec10 sec

Makes sense for arithmetic, e.g. mean value

Note: You have to take into consideration that the acquisition cycle is a permanent load in the background (communication)

Page 104: Cours WinCC (3).pptx

Configuration Notes 2/2

Start Events and Stop Events are functions that are called every 500 ms for every trend! Better: Global Script Action (*.pas) with TLGLockArchiv

Page 105: Cours WinCC (3).pptx

Exercise Step 1/5 Archive Wizard

(1) Shortcut menu

Page 106: Cours WinCC (3).pptx

Exercise Step 2/5 Archive Configuration

Page 107: Cours WinCC (3).pptx

Exercise Step 3/5 WinCC Online Trend Control in the Graphics Designer

.

Page 108: Cours WinCC (3).pptx

Exercise Step 4/5 Window Properties for WinCC Online Trend Control

Double-click

Page 109: Cours WinCC (3).pptx

Exercise Step 5/5 Function Test

Page 110: Cours WinCC (3).pptx
Page 111: Cours WinCC (3).pptx

New: Database Tools 2/3

Archive segments

Open Table->Return all rows

Page 112: Cours WinCC (3).pptx

New: Database Tools 3/3

Archive segmentsOpen Table->Return all rows

Page 113: Cours WinCC (3).pptx

User Archives

Page 114: Cours WinCC (3).pptx

Objectives

- Creating a User Archive

- Creating a Table View

- Creating a Form View

- Accessing a User Archive

- Data Transfer to a Controller

Page 115: Cours WinCC (3).pptx

User Archives

Advantages of user archives for:• Recipes• Batch data• Production data• Data storage for data from the controller• Tool management••

Access to user archives through:• Table window• Internal functions• API functions (described in the WinCC Help, among others)• ODBC / SQL• MS Query• Communication with the controller using tags• Communication with the controller using raw data

Page 116: Cours WinCC (3).pptx

WinCC Help (System)WinCC Help

Page 117: Cours WinCC (3).pptx

Navigation windowData window

Archive name: H1_Heating H1_Heater

_Actual

_Setpoint

Table window for editing online data records

Creating a User ArchiveToggle for Table window or Wizard enabling

Page 118: Cours WinCC (3).pptx

Exporting/Importing a User Archive

ArchiveFields

Note:You can copy Fields and Archives with Ctrl+C, and insert them with Ctrl+V

Page 119: Cours WinCC (3).pptx

Table View of the User Archive Control

Switchover

Delete record

Create new record Change

current field

Scroll in table window

Read and Write tags

Import/Export archives (.CSV)

Define filter condition

Define sort condition

Note: The ID number is an internal reference of the database. The numbering does not have to be consecutive. It should not be used for selections.

Floor/Room

Actual room temp.

Setpoint room temp. LastUser

Last data record change

Help

Time Base

Print

Page 120: Cours WinCC (3).pptx

Form View of the User Archive Control

Operation outside of the Control

Page 121: Cours WinCC (3).pptx

Communication with the Controller using Tags, Operator Controlled

Runtime

Select

Interface tags

Page 122: Cours WinCC (3).pptx

Communication with the Controller using Tags, PLC Controlled

Runtime

Control tags Interface tags

Are supplied by the controller

Page 123: Cours WinCC (3).pptx

Sort

Runtime

Page 124: Cours WinCC (3).pptx
Page 125: Cours WinCC (3).pptx
Page 126: Cours WinCC (3).pptx

Exercise 1: Creating an Archive

User Archive Editor

• Creating an Archive

• Creating Archive Fields

• Editing Table Windows

Archive fields

Page 127: Cours WinCC (3).pptx

Exercise 1: Integrating a Control

You can activate the editing mode for the form window by pressing Ctrl+double-click!

Form window call

You can change the column width after you press Ctrl+double-click.

Page 128: Cours WinCC (3).pptx

Exercise 1: Setting Control Parameters

Double-click

Note: Every time you make a change to the archive structure, you have to reselect the source (archive).

Page 129: Cours WinCC (3).pptx

Exercise 2: Form View• Expanding the exercise picture with the form view of the

User Archive- Table Element

Switch over

Shortcut menu

Configuration

Runtime

Page 130: Cours WinCC (3).pptx

Exercise 3: A Second User Archive• Expanding the exercise picture

Views Archives

Page 131: Cours WinCC (3).pptx

Exercise 4: Views of the Two Databases• Expanding the exercise picture

Page 132: Cours WinCC (3).pptx

Exercise 4: Integrating a Control

Double-click

for views

Page 133: Cours WinCC (3).pptx

Report System (Report Designer)

Page 134: Cours WinCC (3).pptx

Objectives

- Message sequence report

- Message archive report

- Measured value report

- Screenshot picture area (x,y)

- CSV Provider

- Feedback documentation

- User report

Page 135: Cours WinCC (3).pptx

Object Palette of the Report Designer

Page 136: Cours WinCC (3).pptx

Message sequence report print job

Report DesignerName of print job

Name of layout

F=File P=Print RP=Report

Page 137: Cours WinCC (3).pptx
Page 138: Cours WinCC (3).pptx

Double-click

Online Messages (Message List) using Page LayoutReport Designer Page Layout

Report

-Here you definethe message format, for example

Page 139: Cours WinCC (3).pptx

Double-click

Online Messages (Message List) using Page LayoutReport Designer Page Layout

Report

-Here you definethe message format, for example

Page 140: Cours WinCC (3).pptx

Message Archive Report 1/2

Page 141: Cours WinCC (3).pptx

Message Archive Report 2/2

100\ means that the last 100 messages will be printed.

Page 142: Cours WinCC (3).pptx

Measured Value Report (Trends) 2/4

Page 143: Cours WinCC (3).pptx

Layout

Measured Value Report (Trends) 3/4

Shortcut menu

Page 144: Cours WinCC (3).pptx

Measured Value Report (Trends) 4/4

-Trend color-Scaling of y axis

Shortcut menu

Page 145: Cours WinCC (3).pptx

Measured Value Report (Trends) 4/4

-Trend color-Scaling of y axis

Shortcut menu

Page 146: Cours WinCC (3).pptx

Measured Value Report (Tables)

Page 147: Cours WinCC (3).pptx

Screenshot of a Picture Area

{#pragma code("prtscrn.dll")BOOL PrtScreenPart (ULONG left, ULONG top, ULONG width, ULONG height);#pragma code()

ULONG ObenX,ObenY,Breite,Hoehe;

ObenX=GetLeft(lpszPictureName,"Control1"); ObenY=GetTop(lpszPictureName,"Control1"); Breite=GetWidth(lpszPictureName,"Control1"); Hoehe=GetHeight(lpszPictureName,"Control1");

PrtScreenPart (ObenX,ObenY,Breite,Hoehe+80);}

80

Page 148: Cours WinCC (3).pptx

CSV Provider

.CSV files created with ExcelRuntime

Page 149: Cours WinCC (3).pptx

Feedback Documentation of the Configuration Data 1/2

Page 150: Cours WinCC (3).pptx

Feedback Documentation of the Configuration Data 2/2

Page 151: Cours WinCC (3).pptx

User Report - Print Preview

.emf

Object Hardcopy

Page 152: Cours WinCC (3).pptx

Background Processing (Global Script)

Page 153: Cours WinCC (3).pptx

Objectives

- Project Functions

- Standard Functions

- Internal Functions

- Project-wide Actions

Page 154: Cours WinCC (3).pptx

Output field for:-Search files-Compile All Functions

Global Script C Actions and Functions

Project functions Standard functions Internal functions

Actions

Page 155: Cours WinCC (3).pptx

// Read process tags// Create bit mask// Reset bit ?// Reset bit

// Set bit

// Rewrite process tag

int iscreen = 1;

winput = GetTagWord ( lpszWordtag ) ; iscreen <<= ( wbitnumber );if (OnOff == 0 ) {

winput = (WORD) ( winput & (~iscreen) );}

else {winput = (WORD) ( winput | iscreen );}

SetTagWord ( lpszWordtag, winput);}

Example of a Project Function and/or Standard Function

Switching on a motor:Events/ Mouse/ Left mouse button/ C function...

BitSet ( 1, "MotorStatus", 2);

/*Bit 2 is set in the “MotorStatus” tag, to reset the bit use: BitSet ( 0, “MotorStatus”, 2)*/

A function defined in the Global Script (Standard Functions:void BitSet(BOOL OnOff, char* lpszWordtag, WORD wbitnumber){

WORD winput = 0; // Create local tags

0

Page 156: Cours WinCC (3).pptx

Internal Functions: Example of Graphics 1/3

Page 157: Cours WinCC (3).pptx

Internal Functions: Example of Graphics 2/320

20

Event/ Button/ Mouse/ Press left/ C-Action...Box_mit_Pos1 (lpszPictureName, lpszObjectName,

"Bildfenster1", ”Motor.pdl");

Activate dialog box

Page 158: Cours WinCC (3).pptx

Activate dialog box

Internal Functions: Example of Graphics 3/3Events/ Button/ Mouse/ Press left/ C action...Box_mit_Pos2 (lpszPictureName, lpszObjectName,

”Bildfenster1", ”Motor.pdl");

You can place dialog screen windows where you want them on the screen. To establish a reference to the operated object, it is advantageous if the dialog box appears where itis used. You can attain this positioning with the following steps:

- Scanning the properties of the operated object and the entire screen- Scanning the size and stretching the dialog window- Specifying the appearance location of the dialog window (to the right or left next

to the operated object)

These functions are combined in a standard function that can then be used from any location (each screen and operating object).

Page 159: Cours WinCC (3).pptx

Background Processing (Actions) with Global Script

Operating hours.PAS

WORD HOUR, MINUTE; BYTE Z_ON;

Z_ON = GetTagByte ("Z_On");

if (Z_ON) {MINUTE = GetTagWord ("Minutes");MINUTE = MINUTE + 1;SetTagWord ("Minutes", MINUTE);

HOUR = MINUTE / 60;SetTagWord ("operating hours", HOUR);}

return(HOUR);

Note: Global Script must be activated in the computer startup list

Page 160: Cours WinCC (3).pptx

Example with Functions from DLLs

Events/ Button/ Mouse/ Press left/ C action...#pragma code("c:\a_WinCC_Kurs_Prj_301_00\ab_pas\library\demo_dll.dll") int CountingDll(int start, int end);#pragma code()

int result, start, end, partial step;

partial step = GetTagDWord("partial step"); printf("\r\n\r\noutput of 10 partial steps with DLL function "); printf("to max. value: %d",partial step*10);for (start=0;start<10;start++) {end = start * partial step + partial step; result = countingDll(start*partial step,end);printf("\r\nReturn value DLL function: (%d) %d",start,result);

}

Counting with the DLL function

Page 161: Cours WinCC (3).pptx

Global Script VBS Actions and Procedures 1/2

Procedures (Function)

To be created by the user (empty)

Output window for compiling

Page 162: Cours WinCC (3).pptx

Global Script VBS Actions and Procedures 2/2

In the project

Module

Procedure A

Procedure

BProcedure C

Instruction a Instruction b

Procedure D

Procedure E

ActionInstruction 1Instruction 2

Procedure C…. Instruction n

Trigger

Page 163: Cours WinCC (3).pptx

Example of a VBS Project Function.pdl

Call

Page 164: Cours WinCC (3).pptx

Using the Windows Standard Interfaces

OLE

ODBCOCX

SQLOPC

ActiveXDDE

Page 165: Cours WinCC (3).pptx

Objectives

- Open Architecture

- OLE Automation

- ODBC

- DDE

- OCX

- ActiveX

- OPC

- VBS

Page 166: Cours WinCC (3).pptx

An Overview of the WinCC Open Architecture

ActiveX(1)*OPC(1)*

Connec- tivity (4)

CHN (3)

OLL (3)

API (2)

Action (2)

ODBC (1)

DDE (1)*

OLE (1)*

COM

(1)

SQL (1) (1) WindowsOCX (1)* (2) WinCC

(3) WinCC Objects(4) SYBASE

Page 167: Cours WinCC (3).pptx

OLE Automation (1/2)(Access to WinCC Tags through Excel, for Example)

Page 168: Cours WinCC (3).pptx

OLE Automation (2/2)(Access to WinCC Tags through Excel, for Example)

WinCC Excel Data Exchange

OLE Test Application

Page 169: Cours WinCC (3).pptx

Valve 1: 3xValve 2: 3x...

ODBC Application with Data from WinCC 1/3

WinCC Database

Evaluation

Page 170: Cours WinCC (3).pptx

ODBC Application with Data from WinCC 2/3

Page 171: Cours WinCC (3).pptx

ODBC Application with Data from WinCC 3/3

Page 172: Cours WinCC (3).pptx

Integrating OLE Objects in WinCC with MS WordArt 2.0, for Example

Page 173: Cours WinCC (3).pptx

Using OCX and ActiveX, Standard Market Objects 1/3VB Object Palette with OCX Objects

WinCC OCX

Page 174: Cours WinCC (3).pptx

Using OCX and ActiveX, Standard Market Objects 2/3

Type O

Page 175: Cours WinCC (3).pptx

Using OCX and ActiveX, Standard Market Objects 3/3

collective noun

Page 176: Cours WinCC (3).pptx

DDE Linking 1/3(Accessing WinCC Tags through Excel, for Example)

Page 177: Cours WinCC (3).pptx

Linking using DDE Server 2/3 (Accessing WinCC Tags through Excel, for Example)

WinCC Excel Data Exchange

DDE Test Application

Page 178: Cours WinCC (3).pptx

Linking using WinCC DDE Channel 3/3 (Accessing WinCC Tags through Excel, for Example))

Page 179: Cours WinCC (3).pptx

Linking using OPC according to the COM Model

OPC client OPC server

COM library

Windows operating system

Computer A

Computer A Computer B

COMlibrary

Windows

COMlibrary

Windowsnetwork

OPC client OPC server

DCOM

Siemens OPC DAAutomation 2.0

Page 180: Cours WinCC (3).pptx

Direct Access to the Complete MS Excel Functionality under WinCC

Page 181: Cours WinCC (3).pptx

Direct Access to the Complete MS Word Functionality under WinCC

Page 182: Cours WinCC (3).pptx
Page 183: Cours WinCC (3).pptx

Objectives

- API

(Application Programming Interface)

- ODK (Open Development Kit)

- CDK (Channel Development Kit)

Page 184: Cours WinCC (3).pptx

WinCC Software Architecture

WinCC ExplorerC

onto

rl Pa

nel

. . .Data Manager

CS

Text library

RTCS

RT Accessprotection

S7S5

CS

RT Tag management Process data

CS

RT

Signalling

Option

CS

RT

CS

RT

Graphics

CS

RT

Report

CS

RTC

ustom form processing

CS

RTM

easured values user archive

RT .mdf

.mdf

Page 185: Cours WinCC (3).pptx

Application Programming Interface API (1/4)

Q ANSI-C FunctionsQ Access to data

Q in the Tag ManagementQ in the archivesQ configuration data

Q Using system functions (ODK)Q configuration functionsQ Runtime functions

Q Integration of communication channels (CDK)Q Basis for

Q individual functionsQ technological-type optionsQ industry-referenced function modules

API

API

API API

API API

API

API

API

API API

API

API

API

Page 186: Cours WinCC (3).pptx

Application Programming Interface API (2/4)

I

Integrating communication channels

Userapplication Integrating configuration

functions

Userapplication Integrating Runtime

functions

Page 187: Cours WinCC (3).pptx

WinCC API DLL

WinCC Module

Additional application

Using functions

Communication

Application Programming Interface API (3/4)The following is needed for creatingapplications:

QExternal C compiler(for example, Microsoft Visual C++ 5.0 )

QLibrary file for the desired WinCC API ( *.LIB )

QHeader file for the desired WinCC API ( *.H )

Page 188: Cours WinCC (3).pptx

Application Programming Interface API (4/4)

Q Application examples:Q Access to values from the Tag ManagementQ Access to archive dataQ Integrating communications channelsQ Direct display of processing results in GraphicsQ Generic configuration based on API functionsQ Integrating already existing processing programsQ Generating messages from user routinesQ Controlling the measured value recording from user routinesQ Controlling reports from the user programs

Page 189: Cours WinCC (3).pptx

FAQs on the Internet: http://www.siemens.de/hmi

Page 190: Cours WinCC (3).pptx

Diagnosis and System Information with WinCC Scope

Page 191: Cours WinCC (3).pptx
Page 192: Cours WinCC (3).pptx
Page 193: Cours WinCC (3).pptx
Page 194: Cours WinCC (3).pptx
Page 195: Cours WinCC (3).pptx
Page 196: Cours WinCC (3).pptx
Page 197: Cours WinCC (3).pptx
Page 198: Cours WinCC (3).pptx
Page 199: Cours WinCC (3).pptx
Page 200: Cours WinCC (3).pptx
Page 201: Cours WinCC (3).pptx
Page 202: Cours WinCC (3).pptx
Page 203: Cours WinCC (3).pptx
Page 204: Cours WinCC (3).pptx
Page 205: Cours WinCC (3).pptx
Page 206: Cours WinCC (3).pptx

Server

Plant Part1

Plant Part 2

Process bus

TTeerrmiinnaall-

WinCCbus

S

WinCC Client

C

WinCC Client

C

TTCCPP//IIPP

NNeettBEEUUII

S

WinCC Server

Page 207: Cours WinCC (3).pptx

WinCC Data Manager

OPCClient

OPCServer

OPCServer

WinCC and Standard PC communicate with the process via OPC

WinCC - OSStandard PC

Microsoft Excel

(OPC Client)

Page 208: Cours WinCC (3).pptx

Channel DLL(Com.-Driver)

OPCClient

WinCC Server 3

OPC Server

Data Manager

WinCC Server 2WinCC Server 1 Connection 1 Connection 2

e.g.Simatic S5

Connection 3

OPC Server

Data Manager

e.g.Simatic S7

Data Manager

OPC Server

e.g. Channel DLLSimatic S5 (Com.-Driver

cascadable Client/Server configuration

Page 209: Cours WinCC (3).pptx
Page 210: Cours WinCC (3).pptx
Page 211: Cours WinCC (3).pptx
Page 212: Cours WinCC (3).pptx
Page 213: Cours WinCC (3).pptx
Page 214: Cours WinCC (3).pptx
Page 215: Cours WinCC (3).pptx
Page 216: Cours WinCC (3).pptx
Page 217: Cours WinCC (3).pptx
Page 218: Cours WinCC (3).pptx
Page 219: Cours WinCC (3).pptx
Page 220: Cours WinCC (3).pptx
Page 221: Cours WinCC (3).pptx
Page 222: Cours WinCC (3).pptx
Page 223: Cours WinCC (3).pptx
Page 224: Cours WinCC (3).pptx
Page 225: Cours WinCC (3).pptx
Page 226: Cours WinCC (3).pptx
Page 227: Cours WinCC (3).pptx
Page 228: Cours WinCC (3).pptx
Page 229: Cours WinCC (3).pptx
Page 230: Cours WinCC (3).pptx
Page 231: Cours WinCC (3).pptx
Page 232: Cours WinCC (3).pptx
Page 233: Cours WinCC (3).pptx
Page 234: Cours WinCC (3).pptx
Page 235: Cours WinCC (3).pptx
Page 236: Cours WinCC (3).pptx
Page 237: Cours WinCC (3).pptx
Page 238: Cours WinCC (3).pptx
Page 239: Cours WinCC (3).pptx