Wincc 画面模板
WinCC Motor ON_OFF SetValue ActualValue WinCC
1
1
WinCC
“ ” “Structure2.” TagPrefix “ ” “WinCC ” “WinCC ” TagPrefix
1.1
1.1.1
PID
2
PID1 PID2 PID3 WinCC
1.1.2
PicModule.pdl IO
1.1.
2.1 IO
IO IO PID1.EntityName
3 IO
EntityName 4
4
IO EntityName ActValue SetValue
1.1.
2.2
C C ”OnOff”
#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) {
#pragma option(mbcs)
BOOL a;
a=GetTagBit("OnOff"); //Return-Type: BOOL
SetTagBit("OnOff",1-a); //Return-Type: BOOL
}
“ ”
5
5 —
”OnOff”
6 —
“ ” ”OnOff” 7
7
“ ”
WinCC V7 “ ” “ ” “ ” 8
8
9
9
/
1.1.
2.3
10 ”OnOff”
10
1.1.
2.4
“WinCC ” “WinCC ” TagPrefix
11 “ ” ”SetValue” “ ”
11
12 “ ” ”ActValue” “ ”
12
“ — ”
“ ” ”ActValue” 13
13
1.1.
2.5
TagPrefix TagPrefix
1 TagPrefix TrendTagName TagPrefix
”TrendTagName” C 14
14 ---
“ ”
GetTagPrefix (GetParentPicture(lpszPictureName), GetParentPictureWindow (lpszPictureName)) TagPrefix sprintf TagPrefix
”ActValue”
2 ProcessValueArchive sprintf (TrendTag, "ProcessValueArchive\\%s" apc_tag, GetTagPrefix
(GetParentPicture(lpszPictureName), GetParentPictureWindow(lpszPictureName))); 15
15 ---
“ ”
1.2
1.2.1 TagPrefix
“ ” ”PID1.” PID1. ”PID1.***” 16
16
17
17
1.2.2 TagPrefix
“ ” Prefix 18 Prefix
18
“ ”
19
19
20
20
1.2.3 TagPrefix
C SetPropChar(lpszPictureName, “ 2”, “TagPrefix”, “PID2.”)
C SetPictureName (lpszPictureName, “ 2”, “PicModule.pdl”) ”PID2” C 21
21 C 1
PID2 PID2 22
22 1
SetTagPrefix (lpszPictureName,” 2”, ”PID3.”)
C SetPropChar (lpszPictureName, ” 2”, “PictureName”, “PicModule.pdl”) ”PID3” C 23
23 C 2
PID3 PID3 24
24 2
WinCC V7
WinCC V7 “@NOTP”
“@NOSP”
“@NOP”
“TagPrefix” “ServerPrefix”
PicModule.pdl IO @NOTP::SetValue 25
25
IO SetValue
26
2
2.1
DynPicModule.pdl
27
2.2
2.2.1
Picture-Modules Picture-Module template - V1.14
2.2.2
28
28
2.2.3
“ ” Index ”OnOff” 29
29
2.2.4
WinCC @Type_DynPicModule.pdl IO InstanceName C 30
30 IO ---InstanceName
IO --- C 31
31 IO C
IO
WinCC Picture-Module template - V1.14
IO ”InstanceName” IO ” ” IO ”InstanceName”
template @Type_***.pdl
InstanceName “ ” C /
2.3
2.3.1
Picture-Modules Picture-Module instances-
V1.14 fixed
module in picture 32
32
2.3.2
PID1 33
33
2.3.3
1 fixed module in picture @Type_DynPicModule.pdl PID1
34
2.3.4
WinCC PID1
35
2.3.5
2.3.1