You are on page 1of 103

 

1
___________________

2
___________________
WinCC
3
___________________

SIMATIC HMI
WinCC V7.0 SP3

4
___________________

5
___________________

6
___________________

12/2011

7
___________________

/
/

Siemens

Siemens
Siemens

Siemens AG
Industry Sector
Postfach 48 48
90026 NRNBERG

11/2011

Siemens AG 2011.

........................................................................................................................................5

WinCC .....................................................................................................................7

.............................................................................................................................9

3.1

................................................................................................................. 9

3.2

......................................................................................... 11

3.3
3.3.1
3.3.2
3.3.3
3.3.4
3.3.5

.................................................................................................................. 13
.................................................................................................................. 13
............................................................................................................... 14
......................................................................................................................... 15
...................................................................................... 16
...................................................................................... 19

3.4
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
3.4.6
3.4.7
3.4.8

............................................................................................................................. 20
............................................................................................................................. 20
......................................................................................................................... 21
.................................................................................................... 23
....................................................................................................... 24
........................................................................................................... 25
........................................................................................................... 26
......................................................................................... 27
............................................................................................................................. 30

3.5

......................................................................................................................... 32

3.6

......................................................................................................................... 34

3.7

............................................................................................................... 36

...............................................................................................................................39
4.1

.................................................................................................................. 39

4.2

......................................................................................................................... 40

4.3
4.3.1
4.3.2
4.3.3

............................................................................................................................. 42
............................................................................................................................. 42
........................................................................................................... 43
............................................................................................................... 46

4.4
4.4.1
4.4.2
4.4.3

.................................................................................................................. 49
.................................................................................................................. 49
........................................................................................................... 50
................................................................................................ 51

12/2011,

4.4.4
4.4.5
4.4.6

.....................................................................................................57
.....................................................................................................65
............................................................................................................67

4.5

..............................................................................................70

4.6

.......................................................................................................................71

4.7

..........................................................................................74

4.8

........................................................................................................76

4.9

........................................................................................................79

4.10

........................................................................................................81

..................................................................................................................................... 83
5.1

..........................................................................................................................83

5.2
5.2.1

.................................................................................................84
.................................................................................................84

5.3
5.3.1

........................................................................................................86
........................................................................................................86

5.4
5.4.1

WinCC V7 .........................................................................................88
WinCC V7 ....................................................................88

....................................................................................................................... 91

.............................................................................................................................. 93
7.1

...................................................................................................................93

7.2

........................................................................................................94

7.3

...............................................................................................................95

7.4

...................................................................................................................96

7.5

...................................................................................................................97

7.6
7.6.1
7.6.2
7.6.3

.....................................................................................................................................98
..........................................................................................................................98
.......................................................................................................................99
.......................................................................................................................99

.............................................................................................................................................. 101

12/2011,

WinCC

[]

12/2011,

12/2011,

WinCC

WinCC

(AS) WinCC

(DM)

()

(DB)

12/2011,

WinCC

WinCC

WinCC

[]
[]

12/2011,


3.1

[]

WinCC []

[]

12/2011,


3.1

OnlineTableControl OnlineTrendControl
OnlineTableControl
OnlineTrendControl

10

12/2011,


3.2

3.2

/
1
(2) (1)

2
(3)
(2) () (1)

12/2011,

11


3.2

3
(3) (3)
- (2) (1)

12

12/2011,


3.3

3.3

3.3.1


() WinCC

WinCC

12/2011,

13


3.3

3.3.2

WinCC

WinCC

()

14

12/2011,


3.3

3.3.3

WinCC [] [
]

WinCC

DLL
DLL ()

SIMATIC S7 DLL WinCC

12/2011,

15


3.3

3.3.4

10
( = 1)

16

12/2011,


3.3

1
+

12/2011,

17


3.3
2
n +

3
n

4
n

18

12/2011,


3.3
5
n

3.3.5

[]
WinCC Explorer
[TagLoggingRT]

@TLGRT_TAGS_PER_SECOND
[]

@TLGRT_AVARAGE_TAGS_PER_SECOND
[]

@TLGRT_SIZEOF_NOTIFY_QUEUE
ClientNotify

@TLGRT_SIZEOF_NLL_INPUT_QUEUE
DLL

12/2011,

19


3.4

3.4

3.4.1

()

(
)

(
)

20

12/2011,


3.4

3.4.2

500
[WinCC ]


[WinCC ]


15
30 45


[10 ] 0 5

12/2011,

21


3.4

[]

/
(CVBS)
WinCC /


2%

22

12/2011,


3.4

3.4.3

WinCC (A)
(1)
(C)


(2)

(3) ()

(4) (D)


[]
[] []

12/2011,

23


3.4

3.4.4

[]

[]
[]

WinCC (A)
[] (1) (2)

(C)


(3)

(4) ()

[] (6) (5) (D)

24

12/2011,


3.4

3.4.5

"1" "0"

"TRUE"

WinCC (A)

[1] [0]
[TRUE] [FALSE] (1)
(2)
"1" "TRUE" [ 0 -> 1]
(C)
(D) (3)

12/2011,

25


3.4

3.4.6

WinCC (A)
(1)

(C)

DLL (2)

(D) (3)

26

12/2011,


3.4

3.4.7

[WinCC ]

(t) (v)

12/2011,

27


3.4




W
(1)
(2)
(3)
(4)
(5)

(1)
(2)
(3)
(4)
(5)
(6)

28

12/2011,


3.4

()

()

()

()

[]

12/2011,

29


3.4

3.4.8

30

12/2011,


3.4

60
60
60

60 40
[50]20 [60]
60 40x50 + 20x60 / 60 = 53.33

12/2011,

31


3.5

3.5

[]

(AB)
MB
()

(1)
(2)
(3) ()
A

B

32

12/2011,


3.5

12/2011,

33


3.6

3.6

[] []

[]
[]

OnlineTableControl

34

12/2011,


3.6

[] []

OLE-DB

DataMonitor Web

WinCC [Fileserver ]
WinCC ADO/OLE DB
MS SQL

12/2011,

35


3.7

3.7

[]
2

WinCC

36

0x0

WinCC

0x1

12/2011,


3.7

PDE_RT_DAYLIGHT

0x001

PDE_RT_SUBSTITUTION

0x002

PDE_RT_TIME_BEVOR_JUMP 0x004

PDE_RT_TIME_BEHIND_JUMP 0x008

PDE_RT_TIME_OVERLAPPED 0x010

PDE_RT_LOAD_SYSTEM

0x020

PDE_RT_RELOAD_SYSTEM

0x040

RT

PDE_RT_CMPCOPY

0x080

PDE_RT_TIME_CHANGED

0x100

PDE_RT_HAND

0x200

16842753

0101 0001

0: WinCC

001:

WinCC

0101:

266242

0004 1002

1:

002:

0004:

12/2011,

37


3.7

38

12/2011,


4.1

[] WinCC

1. [] []

2.

12/2011,

39


4.2

4.2

[]
[]
[] WinCC WinCC
Explorer

[]

(1)

(2)

40

12/2011,


4.2
(3)

12/2011,

41


4.3

4.3

4.3.1

42

12/2011,


4.3

4.3.2

1.
2.

1. [] [] [
...] []
2. [] [] []
3. []

4. [] []

12/2011,

43


4.3

1. [] []

2. []

44

12/2011,


4.3
3. []

4. []

[]

[] [] > []

12/2011,

45


4.3

4.3.3

1.
2.
3.

1. [] [] [
...] []
2. [] [] []
[]

46

12/2011,


4.3

1. [] []

2. []

3. []

12/2011,

47


4.3
4. [] 1
[]

5. []

[]

[] [] > []

48

12/2011,


4.4

4.4

4.4.1

()

[]

ID ID

12/2011,

49


4.4

4.4.2


(1 )

1. [] [] [
...] []

2.
3. []
( 7 0 )

4. []

50

12/2011,


4.4

4.4.3

1.

2.



[] []
[]
[]

[]

[] [] > []

-
1. []
[]
2. []

3. [] []

12/2011,

51


4.4
-
1. []
[] []

2. []
3.
4. []
(CAS) []
5.
[]

52

12/2011,


4.4
-
1. []




2. [] []
[
]

3. [] [...]
[] [] [C ]
[1] [0] [TRUE] [FALSE] TRUE

12/2011,

53


4.4
4. [] [...] [
] [] [C ]
[1] [0] [TRUE] [FALSE] [1] [0]
[TRUE] [FALSE]

5. [] []
WinCC

[]

54

12/2011,


4.4

[] [1 ]

(
)

12/2011,

55


4.4
-
1. [] [] [
0 -> 1] [0] [1]
[]
2. []
3. [] []
[]

4. []

56

12/2011,


4.4

4.4.4

1.
2.




[] []
[]
[]

[]

[] [] > []

-
1. []
[]
2. []
3. [] []

12/2011,

57


4.4
-
1. []
[] []

2. []
3.
4. []
(CAS) []
5.
[]

58

12/2011,


4.4
-
1. []




2. [] [] []

([abs]) ([%])

3. [] [...]
[] [] [C ]
[1] [0] [TRUE] [FALSE] TRUE

4. [] []
[] [] [...] []

12/2011,

59


4.4
[] [C ]
[1] [0] [TRUE] [FALSE] [1] [0] [TRUE]
[FALSE]

5. [] []
WinCC

([abs]) ([%])

[
]

60

12/2011,


4.4

[] [1 ]

(
)

12/2011,

61


4.4
-
1. [] []
[] []
[]
2. [] []
[]

3. []

62

12/2011,


4.4
- /
1. [] [
]

2. []

12/2011,

63


4.4
-
1. [] []
2.
3.

4. ()

64

12/2011,


4.4

4.4.5

AS WinCC

WinCC [
] []
WinCC

DLL "nrms7pmc.nll" #<raw_tag_name>#m#pppppppp#ssss

DLL ( "S5STD.NLL") #xxxxxxxxx#yyyy

<raw_tag_name>

24
( 52 )

"A" []

pppppppp

"AR_ID"8

ssss

AR_ID 4

xxxxxxxx

ID8
( 25 )

yyyy

12/2011,

65


4.4

1. []
[
] []

2. [ DLL]
3. []
ID ID DLL

4. []
WinCC
5. (CAS) [
]
6. [] []

66

12/2011,


4.4

4.4.6

1.
2. ()

1. []
[] []

2. >
>>
3. []

12/2011,

67


4.4

1. []
[] []

2.
3. []
(CAS) [
]

68

12/2011,


4.4
4. [] []

5. []

12/2011,

69


4.5

4.5

1. []

2. []
3. []
4. []

70

12/2011,


4.6

4.6

[] [
]

[] []

12/2011,

71


4.6

1. WinCC Explorer []
2. [] [] [
] [] []

3.


[]

4. []

5. []

()

72

12/2011,


4.6

1 17 23 59
[]
()


[] [] []
[]


[] []

[]

12/2011,

73


4.7

4.7

( [] [])

WinCC

1. WinCC Explorer []
2. [] [] [
] []

74

12/2011,


4.7
3. []

4. []




5.

[]
[]

12/2011,

75


4.8

4.8

15

1. WinCC Explorer []
2. [] [] [
] [] []

76

12/2011,


4.8
3. []

4. [] WinCC

5. []
[] [] []

6.

7. []

12/2011,

77


4.8

LDF MDF
LDF MDF [<>_<
>_<>_<>_<>]

TLG_F ([])

TLG_S ([])

yyyymmddhhmm 200212021118 2002 12


2 11:18 (_) #


WinCC
200 MB
[] []
[]

/ ([])

1.000

()

5.000

/ ([])

5001)

()

5001)

1)

[] []

78

12/2011,


4.9

4.9

[] [WinCC ]

LDF MDF


(Logging )

OLE-DB DataMonitor Web

1. WinCC Explorer []
2. [] []
[] [] [
]
3. []

WinCC []
Windows

12/2011,

79


4.9
[] [
]

WinCC
1. WinCC

2. "..."
3. [] []

1. [\CommonArchiving]
2.
WinCC
[] Windows

DataLogsVBS WinCC
"Restore"
DataLogs VBS VBS "Restore"

80

12/2011,


4.10

4.10

[] WinCC
"Project name\CommonArchiving" DataLogsVBS


(Logging )

[]
1. WinCC Explorer []
2. [] []
[] [] [
]
3. []

WinCC
1. WinCC

2. []

12/2011,

81


4.10

82

12/2011,


5.1


[]

--

12/2011,

83


5.2

5.2

5.2.1

WinCC ActiveX

WinCC OnlineTableControl

84

12/2011,


5.2

WinCC OnlineTrendControl

12/2011,

85


5.3

5.3

5.3.1


[]

[] []

86

12/2011,


5.3
WinCC V7 WinCC
WinCC V7 [WinCC ]

@Online Table Control - Picture.RPL @Online Table Control - Table.RPL


WinCC

@Online Trend Control - Picture.RPL WinCC OnlineTrendControl

@Function Trend Control - Picture.RPL WinCC FunctionTrendControl

WinCC V7 WinCC
WinCC V7
WinCC

@CCOnlineTableCtrl-CP.RPL WinCC

@CCOnlineTrendCtrl-Curves-CP.RPL WinCC

@CCFunctionTrendCtrl-CP.RPL WinCC

1.

2.

12/2011,

87


5.4 WinCC V7

5.4

WinCC V7

5.4.1

WinCC V7

WinCC
ActiveX

[WinCC ]

88

12/2011,


5.4 WinCC V7

[WinCC ]

[WinCC ]

12/2011,

89


5.4 WinCC V7

90

12/2011,


WinCC

ADO/OLE DB
WinCC OLE DB Provider
Visual Basic Visual C++

ADO/OLE DB WinCC

Microsoft MSDN Library [Win32 and COM


Development] > [Data Access and Storage] > [Windows Data Access Components
SDK]

http://msdn.microsoft.com/en-us/library/default.aspx (http://msdn.microsoft.com/enus/library/default.aspx)

OPC
OPC (OLE for Process Control OLE)
OPC
WinCC OPC OPC WinCC
OPC

[WinCC ] [] > [OPC]

[WinCC ] [] > []

"http://www.opcfoundation.org"

12/2011,

91

C-API/ODK
[WinCC Open Development Kit]
WinCC

92

WinCC Open Development Kit

12/2011,


7.1

[]
[]
WinCC

12/2011,

93


7.2

7.2

void function name (Boolean fFlag);

[] [] []

fFlag
TRUE
FALSE

94

12/2011,


7.3

7.3

double function name (double doLmtValue,


double doValue,
int dwCount,
int archiving);

( doValue)
[]
[] [/]

dLmtValue ()
doValue
dwCount
TRUE

10

double Norm_PDE(double doLmtValue, double doValue, int dwCount,


int Archiving)
{
return (doValue/10);
}

[]

12/2011,

95


7.4

7.4

int function name ( );

0 ( FALSE) 1 ( TRUE)

1

1
[] [] []

96

12/2011,


7.5

7.5

int function name ( );

0 (FALSE) 1 (TRUE) 1

[] [] []

12/2011,

97


7.6

7.6

7.6.1

void function name (


LPTSTR lpszArchivName
LPTSTR lpszVariablenName,
DWORD dwNumberOfRecords);

[] []

lpszArchivName

lpszVariablenName

dwNumberOfRecords

98

12/2011,


7.6

7.6.2

void function name (


bool fFlag);

[] []

fFlag
[FALSE]

7.6.3

void function name (


bool fFlag);

[] []

fFlag
[FALSE]

12/2011,

99


7.6

100

12/2011,


, 11

ActiveX , 84

, 84

, 40

LDF , 76, 79

, 34

MDF , 76, 79

, 15, 26, 65
, 16
, 16

, 15

ODK
, 91
OLE DB Provider
, 91

, 27

OPC
, 91

, 34

TagLogging
, 93, 94, 95, 96, 97, 98, 99

, 86

, 14
, 15

, 15

, 19

, 91

, 14, 15, 49, 65


, 14

, 34

12/2011,

, 14, 30, 49, 67


, 49
, 32, 39, 40

101

, 50

, 26

, 71, 74, 76, 79, 81

, 24

, 19

, 20, 74

, 70

, 14

, 36

, 13, 14

, 7, 9, 43

, 23, 24, 25, 26

, 9, 46

, 51

, 34
, 49

, 40
, 27

, 13

, 27
, 9, 30, 42
, 46, 67, 74
, 76
, 32, 70

, 84

, 34

, 86

, 7

, 83, 84

, 88
, 88
, 88
, 5, 7, 9, 32, 42
, 11
, 21
, 25
, 7
, 39, 43, 74
, 23
, 76
, 20, 21
, 40
, 32, 70

102

, 21
, 50
, 23
, 21
, 24
, 42
, 34
, 32
, 32, 70
, 36
, 7
, 9
, 20, 23, 24, 25, 26
, 7
, 32, 91
, 34

12/2011,

, 34
, 76, 79, 81
, 76
, 7
, 21
, 50
, 23
, 21
, 24
, 14, 49
, 51
, 49, 51, 57, 65, 71
, 50
, 30, 67
, 57
, 91

, 40
DLL, 15, 26, 65

12/2011,

103