1
1
WinCC
“”“Structure2.”TagPrefix“”“WinCC ”“WinCC ” TagPrefix
1.1 1.1.1
PID
2
PID1PID2PID3WinCC 1.1.2
PicModule.pdlIO 1.1.2.1 IO
IOIOPID1.EntityName
3IO
EntityName4
4
IOEntityNameActValueSetValue 1.1.2.2
CC”OnOff” #include \"apdefap.h\"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) {
#pragma option(mbcs) BOOL a;
a=GetTagBit(\"OnOff\"); }
“” 5
//Return-Type: BOOL
SetTagBit(\"OnOff\//Return-Type: BOOL
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
TagPrefixTagPrefix
1TagPrefixTrendTagNameTagPrefix”TrendTagName”C14
14---
“”
GetTagPrefix (GetParentPicture(lpszPictureName), GetParentPictureWindow (lpszPictureName)) TagPrefixsprintfTagPrefix”ActValue”
2ProcessValueArchivesprintf (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
“”Prefix18Prefix
18
“”19
19
20
20
1.2.3 TagPrefix
CSetPropChar(lpszPictureName, “2”, “TagPrefix”, “PID2.”)CSetPictureName (lpszPictureName, “2”, “PicModule.pdl”)”PID2”C21
21C1
PID2PID222
221
SetTagPrefix (lpszPictureName,”2”, ”PID3.”)CSetPropChar (lpszPictureName, ”2”, “PictureName”, “PicModule.pdl”)”PID3”C23
23C2
PID3PID324
242
WinCC V7WinCC V7
“@NOTP” “@NOSP”
“@NOP”
“TagPrefix”“ServerPrefix”
PicModule.pdlIO@NOTP::SetValue25
25
IOSetValue
26
2
2.1
DynPicModule.pdl
27
2.2 2.2.1
Picture-ModulesPicture-Module template - V1.14 2.2.2
28
28
2.2.3
“”Index”OnOff”29
29
2.2.4
WinCC@Type_DynPicModule.pdlIOInstanceNameC30
30IO---InstanceName
IO---C31
31IOC
IO
WinCCPicture-Module template - V1.14IO”InstanceName”IO””IO”InstanceName”
template@Type_***.pdlInstanceName“”C/ 2.3 2.3.1
Picture-ModulesPicture-Module instances- V1.14fixed module in picture32
32
2.3.2
PID133
33
2.3.3
1fixed module in picture@Type_DynPicModule.pdlPID1
34
2.3.4
WinCCPID1
35
2.3.5
2.3.1
3
CVBS
CGetLinkedVariable (lpszPictureName, “IOField1”, “OutputValue”) ”IOField1”
因篇幅问题不能全部显示,请点此查看更多更全内容