Tải bản đầy đủ (.pdf) (320 trang)

SIEMENS WINCC CONFIGURATION MANUAL VOLUME 1

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.03 MB, 320 trang )

WinCC
Configuration Manual
Manual
Volume 1

C79000-G8276-C139-01

Edition February 1999


WinCC, SIMATIC, SINEC, STEP are Siemens registered trademarks.
All other product and system names in this manual are (registered) trademarks of their respective owners and
must be treated accordingly.

(The reproduction, transmission or use of this document or its
contents is not permitted without express written authority.
Offenders will be liable for damages. All rights, including rights
created by patent grant or registration of a utility model or
design, are reserved.)

(We have checked the contents of this manual for agreement
with the hardware and software described. Since deviations
cannot be precluded entirely, we cannot guarantee full
agreement. However, the data in this manual are reviewed
regularly and any necessary corrections included in subsequent
editions. Suggestions for improvement are welcomed.)

© Siemens AG 1994 - 1999 All rights reserved

Technical data subject to change


C79000-G8276-C139-01
Printed in the Federal Republic of Germany

Siemens Aktiengesellschaft


Table of Contents
1

Configuration Manual................................................................
1.1

2

1-1

Configuration Manual - Information about Structure and
Application ...................................................................................

1-2

WinCC - General Information ...................................................

2-1

2.1
2.1.1
2.2

2-2

2-3
2-6

Configuration - General Subjects ............................................

3-1

3.1

Before beginning the project ........................................................

3-2

3.2
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.2.6
3.2.7
3.2.8
3.2.9
3.2.10
3.2.11

Specifications in detail..................................................................
Specification: WinCC project name ..............................................
Specification: tag names ..............................................................
Specification: picture names ........................................................

Specification: scripts and actions .................................................
Specification: the user interface ...................................................
the control concept ......................................................................
Specification: color definition........................................................
Specification: the update cycles ...................................................
Specification: the user rights ........................................................
Specification: alarm message reporting........................................
Specification: implementation.......................................................

3-3
3-4
3-5
3-7
3-10
3-11
3-17
3-19
3-20
3-21
3-22
3-23

3.3
3.3.1
3.3.1.1
3.3.1.2
3.3.1.3
3.3.1.4
3.3.1.5
3.3.2

3.3.2.1
3.3.2.2
3.3.2.3
3.3.3
3.3.3.1
3.3.4
3.3.4.1
3.3.5
3.3.6
3.3.7
3.3.8

3

WinCC - The Concept ..................................................................
The Interfaces of WinCC..............................................................
WinCC - Terms and Abbreviations ...............................................

Peculiarities of configuration using WinCC ...................................
Update cycles - how and where you set them...............................
Updating in the picture .................................................................
Types of update cycle ..................................................................
What the update cycles mean ......................................................
Instructions on how to use the update cycles ...............................
Executing background scripts (Global Script) ...............................
Dynamization in WinCC ...............................................................
Dynamizing the properties............................................................
Dynamizing the events.................................................................
Types of dynamization for objects ................................................
WinCC system environment.........................................................

Folder structure of the WinCC system..........................................
WinCC project environment .........................................................
WinCC project folder structure .....................................................
Automatic WinCC project startup .................................................
Coordinated exiting of WinCC ......................................................
Data backup ................................................................................
Copying a backed-up WinCC project to a new destination
computer .....................................................................................

3-24
3-25
3-25
3-27
3-28
3-30
3-35
3-39
3-39
3-40
3-41
3-43
3-43
3-47
3-47
3-50
3-53
3-54

WinCC Configuration Manual
C79000-G8276-C139-01


3-56

i


UhiyrÂsÃ8‚‡r‡†

3.3.9
3.3.9.1
3.3.9.2
3.3.9.3

!((

Reuse - reusing parts of a project in a new or existing project ......
Taking over pictures ....................................................................
Taking over symbols and bit maps ...............................................
Taking over a project library (with preconfigured symbols and
user objects)................................................................................
Taking over global actions ...........................................................
Taking over tags..........................................................................
Taking over multilingual texts (from pictures, in messages) ..........
Taking over messages.................................................................
Taking over measured values ......................................................
Taking over print layouts..............................................................
Taking over global actions ...........................................................
Taking over project functions .......................................................
Using standard functions .............................................................
Taking over user administration ...................................................


3-59
3-60
3-62

3-81
3-81

3.3.10.3
3.3.10.4
3.3.10.5
3.3.10.6
3.3.10.7

Working without a mouse.............................................................
Working with a keyboard..............................................................
Moving around by means of control objects (input fields and
control fields) ...............................................................................
Alarm Logging function keys for the toolbar buttons .....................
Alarm Logging - toolbar buttons designed specifically for a plant ..
Tag Logging function keys for the toolbar buttons ........................
Starting a print job .......................................................................
Logging in or out..........................................................................

3-86
3-89
3-92
3-93
3-95
3-97


3.3.11
3.3.11.1
3.3.11.2
3.3.11.3
3.3.11.4
3.3.11.5
3.3.11.6

Module technology.......................................................................
Process box as a picture module .................................................
Picture module with indirect addressing .......................................
User objects ................................................................................
Dynamic instance (linking prototype to a structure) ......................
Prototype pictures........................................................................
OCX objects ................................................................................

3-98
3-99
3-101
3-103
3-104
3-105
3-110

3.3.12

Online configuration (runtime) - notes and restrictions..................

3-111


WinCC - C Course .....................................................................

4-1

4.1
4.1.1
4.1.2
4.1.3
4.1.4
4.1.5

The development environment for scripts in WinCC .....................
Functions and actions in WinCC ..................................................
The editors for functions and actions............................................
Creating functions and actions.....................................................
Testing functions and actions.......................................................
Importing/exporting functions and actions ....................................

4-3
4-4
4-9
4-12
4-14
4-16

4.2
4.2.1
4.2.2
4.2.3


Tags in C.....................................................................................
Example 1 - Using tag types ........................................................
Example 2 - C tags in connection with WinCC tags ......................
Example 3 - Using tags................................................................

4-17
4-21
4-23
4-25

4.3

Operators and mathematical functions in C..................................

4-27

3.3.9.4
3.3.9.5
3.3.9.6
3.3.9.7
3.3.9.8
3.3.9.9
3.3.9.10
3.3.9.11
3.3.9.12
3.3.9.13
3.3.10
3.3.10.1
3.3.10.2


4

ii

3-63
3-65
3-66
3-75
3-76
3-79
3-80
3-80
3-80
3-80
3-80

WinCC Configuration Manual
C79000-G8276-C139-01


!((

UhiyrÂsÃ8‚‡r‡†

4.3.1
4.3.1.1
4.3.2
4.3.3
4.3.4


Boolean algebra...........................................................................
Basic logic functions ....................................................................
Example 1 - Using operators of the basic arithmetic operations ....
Example 2 - Mathematical functions.............................................
Example 3 - Operators for bit operations ......................................

4-29
4-29
4-31
4-33
4-35

4.4
4.4.1
4.4.2
4.4.3

Pointers in C................................................................................
Example 1 - Pointers....................................................................
Example 2 - Pointers in connection with WinCC tags....................
Example 3 - Pointers in connection with string processing............

4-37
4-39
4-41
4-43

4.5
4.5.1

4.5.2
4.5.3
4.5.4
4.5.5
4.5.6

Loops and conditional statements in C.........................................
Example 1 - while loop .................................................................
Example 2 - do - while loop ..........................................................
Example 3 - for loop.....................................................................
Example 4 - Conditional statement with if.....................................
Example 5 - Conditional statement with switch and case..............
Example 6 - Using static tags with conditional statement and
return value..................................................................................
Example 7 - Using static tags with conditional statement and
return value..................................................................................

4-44
4-47
4-49
4-51
4-53
4-55

4.6
4.6.1
4.6.2
4.6.3
4.6.4


File operations in C.....................................................................
Example 1 - Opening, writing to and closing a file.........................
Example 2 - Opening, appending to and closing a file ..................
Example 3 - Opening, reading and closing a file...........................
Example 4 - Deleting a file ...........................................................

4-59
4-61
4-63
4-65
4-67

4.7
4.7.1
4.7.2

Structures in C.............................................................................
Example 1 - Structures in C .........................................................
Example 2 - C structures in connection with WinCC .....................

4-68
4-70
4-72

4.8
4.8.1
4.8.2
4.9
4.10


Global Scripts ..............................................................................
Example 1 - Using a project function ............................................
Example 2 - Using project functions, further examples .................
Project as an example .................................................................
Displaying the source code by clicking the right mouse button......

4-74
4-75
4-77
4-79
4-80

Appendix ....................................................................................

5-1

4.5.7

5

4-57
4-58

5.1
5.1.1
5.1.2
5.1.3

Tips and tricks .............................................................................
Standard input/output at I/O field..................................................

Object-specific actions upon Open Picture ...................................
WinCC Scope ..............................................................................

5-2
5-3
5-4
5-5

5.1.4
5.1.4.1
5.1.4.2
5.1.4.3
5.1.4.4
5.1.4.5

Accessing the database ...............................................................
Accessing the database from Excel/MSQuery ..............................
Accessing the database from Access...........................................
Accessing the database from ISQL ..............................................
Accessing the database from WinCC Scope ................................
Exporting from a database using C actions ..................................

5-6
5-6
5-9
5-10
5-11
5-12

WinCC Configura

×