Home

SIEMENS WinCC Group State Manual 第三册

image

Contents

1. F1 F10 3 73 Properties of WinCC Online Trend Control Curves General Font Toolbar Time Axis walue asis
2. 3 83 as JO C
3. Motor001_ActValue Motor001_SetValue Motor001_Switch Actv_Name Setv_Name Motor001_SetValue IO X YY
4. WinCC WinCC
5. ithis wizard can onlvy be executed on the customized object BEGIN PROPERTY SCHEME Hand VT BOOL 1 SeElection VT BOooD END PROPERTY SCHENME motor 4 121 WinCC C 4 122 5 5 1 WinCC 5 1 5 1 1 IO IO PLC IO
6. we 2 1 O X Y Motor_T01 1 O
7. J OCX WinCC OCX C pe i i ne
8. 2 WinCC jy
9. HMI 3 13 3 2 9 ll Project_C Couwrse Project_TagHandling
10. PLC GetTagWordWait VO 0 Field Configuration 3 21 D TOU selected a dynamic that requires a trigger Please select a trigger Trigger options bvallable Cycles Picture Cycle WwWIndow Cyucle Upaon change lt Back Lancel alae
11. WinCC WinCC
12. 1
13. I 2 3 8 1 3 3 11 4 WinCC
14. TagName ds 1 3 C C
15. FE ES jlDate Time Numlmessagqetext
16. GraCs gif emf GraCS po Mibrary C 3 48 3 9 2
17. WinCC iNumber int int iNumber 1int IJumber 0 define 2147483647 MAX_INT_VALUE
18. WinCC C C DT codet USEGDHMHII DELE 1include PWRT BPI H pragma coder FEVWRTILOSOuULT PURPRTLogin Iagma Code USESDHIH DIEL 1include ENWRT API H Dragma codert FWRILOgin 1 1 0 Tab SHIFT Tab ESC 3 3 11 3 76
19. WinCC ID ID ID For Help press Fl1 3 3 9 7
20. sywceo 4 9 1 WinCC C 3 C 4 92 include apdetap h woOld OnClickichar lpszPicturseHName char lpsz0bjectHame char lpszPropert BOOL brRet FBLSE char Ez2ProjectPath MeN PAaTH 1 ProJect function to get project path LbRet GetProjectPathiszProjectPathi Check return value if rbRet FBLSE 1 printfft r nError in CetProjectPathil r n rEturn dizsplav Project path printfit r nFrojectPath r nie nn szProjectPath BO0OL Fe szProjectPath GetProjectPathl WinCC C 4 9 4 4
21. Library library pxl Library emf emf Template IO 3 3 11 6 3 86
22. 3 2 11 WinCC PC WinCC Word Excel 3 15 3 3 WinCC WinCC
23. SINEC H1 WinCC CPU WinCC 5 31 5 2 5 S5 DB 80 5 32 DB 80 0 pB FIFO 1 DB FIFO 2 o 1 3 1 DB 4 1 1 DB 2 1 DB 5 2 DB 6 3 DB 7 4 DB 8 9 10 DB CPU gt PC 15 PLC 1 255 CPU 1 4 19 20 14 DW 0 DW
24. WinCC C fF 3 2 8 HMI PLC HMI PLC 5000 500 ms 32 HMI WinCC Windows NT 32 HMI WinCC
25. EnableTemplatelnstance Instance Call Button Template nstanceCal Buttons Template WinCC Samples OCX OCX ActiveX WinCC WinCC 1 OCX OLE OCX
26. Sybase SQL Anywphere 5 0 SQL Anywhere ODBC oba D sq9 D Data Source Name Example_01rt Connection Information User ID Password Serwer Name Database Name Example_0lrt Database Startup Database File D HandbuchExample USE MT Browse Liocal CNetwork Custom Options dditional Connection Options Translator Name lt Mo Translator gt Select a Microsoft Applications Keys in SQLStatistics Delay AutoCommit until statement close Access
27. WinCC WinCC DW 12 OB1 OB1 OB1 DW 15 PLC CPU PLC CPU PLC CPU CPU ID WinCC
28. WinCC
29. WinCC UPS WinCC 3 41 3 3 7 WinCC WinCC SOL access Wl
30. C gt ERC DnBtnSinglecknilpszPictureHame lpsz0bhjectHame
31. WinCC 3 3 9 6 EText Librar pictu_00 MLECP File Edt View Dptions 2 s x Benutzerverwaltung Freigabe fur Bereich oystemwechsel Beobachten ProzeBbedienungen Reportsystem Archive bedienen Bildwechsel Runtime beenden Projekt bedienen Hiherwertige Prozefbedienungen Useradministration Authorization for area oystemchange Monitoring Processcontrolling Higher Processcontrolling Reportsystem Archive controlling Picturechange Runtimeend Projectuse ji 16 Texte E
32. 12 DW 10 5 27 5 2 3 12 5 2 3 13 5 2 3 14 5 2 3 15 5 2 3 16 5 2 3 17 5 2 3 18 5 28 15 12 11 B 5 7 ae 6 4 5 2 1 0 1 Dv 2 Ov elu ele ele lfmalrl 3 Dw 4 Ov Dw 5 Dv Ee 1 7 Dw Ba ELE 9 Dv s 10 Dy
33. API 3 87 SIMATI
34. unsigned long unsignedlong char F128 127 ASCI unsignedchar unsigned char 0 255 ASCll float 10 38 0 38 obe hox308S0730 WinCC C 4 2 1 1 C C 1 C include apdetap h voild OnClickichar lpszPictureName char lpsz0bjectHame char lpseProperl char cHumber SlINned 8 bit value long lMNumber ASI1INeEd 32 bit value short sHNumber SlIned lb bit wvalue 1nt iNumber EI1INeEd 32 bit value unszigned char ucHNumber AAUnsigned 8 bit value unsigned long ulNumber Unsligned 32 bit wvalue unszsigned short usHumber Unsigned 16 bit wvalue unsighed int uiNumber AAUnsigned 32 It wvalue cHumber 128 Humber 32768 lHumber 2147483648 iNHumber 21474983647 A Dutput in diagnostics window printft r nExample 1 r n Erintirt char t td r nshort ttad rn ongi t tid r nint t tid r n cH
35. DLL Eg ATESTAUTDOMSaTIDONWwnCC50_Prolect_pictu_D0spictu_D0 1 Select path and file 2 Select export or import 3 Press execute Path ESTAUTDMNMSATIONWwInCC50_Prolect_pictu_0Dy Se Filename fe Export f mport Get from Regional Settings List separator f Import overwrite 5how Var con dex Readme Beady Execute End mcp a Name_cex csv
36. HMI WinCC UPS UPS UPS WinCC Windows NT UPS Windows NT Windows NT APC UPS 600 UPS WinCC UPS PLC UPS
37. PLC C PLC C C alt FETCH WinCC 3 3 1 4 PLC C 2 WHEN BER C
38. DW 4 16 0 15 4 IDW8 DVW12 ex 4 1 16 0 15 1 16 0719 DB DW 16 1 4 16 1 252 1 252 5 21 1 2 5 22 DW 248 7 10000 246 4 a 62 1 716 62 1 16 7 983 10000 983 10953
39. se 4 a i reat
40. XXXxy_z Z_a a_nn x BIN U08 8 508 8 U16 16 516 16 U32 32 gt 32 32 G32 EEE 754 32 G64 I EEE 754 64 108 8 T16 16 RAW TER STU 3 3 r PLC WwW PLC PLC WinCC x _Paint _EU0815V10 0 9 00 99 WinCC
41. WinCC C 4 6 1 1 1F 1 MeanValuel double Meanyvalusrdouble dyYaluel double dyYalue2 double dyYalue3 1 double dMeanvalue dMeanvalue rdyYaluel dvalue2 dVYalued 3 rEturn deanValue MeanVa luel double qowb e aowpbe 3 em 4 57 WinCC C 1 C 1nclude apdefap h Old OnClickichar lpszPictureName ch
42. C WinCCProjectFolder LIBRARY ap_pbib h WinCC WinCClnstallationFolder APLIB ap_glob h
43. MS Excel MS Query Microsoft Exce l 5 1 4 2 MS Access WinCC SR 1 Microsoft Access 97 MS Access MS Access Access ODBC Databases CS WinCC CC 7 WinCC
44. 3 2 6 WinCC tab alpha tab alpha FIFO
45. 4 44 Example 3 startaddress 2bd4f9e8 Index 0 Value 10 Index 1 Value 20 Index 2 Value 30 Index 3 Value 40 Index 4 Value 50 otartaddress 2b4f9ed Index 0 Yalue 10 Index 1 Value 20 Index 2 Value 30 Index 3 Value 40 WinCC C 4 4 4 4 ffF f 4 4 C include apdeftap h vold OnClickichar lpszPictureName char lpszObhjectHNHame char lps2Properl declare and initialize str1ing char szTexst l13 example text lnt 1 Printfrt r nExzample 4 r ncharacters r n ACCEESE E11Nngle Characters for 1i 0 i112 1 Printft c selTerxt 1i printff r n ACCEESE hole str1ing printft String r nie r n selerxt 13
46. n DLL S7PMC S7PMSC DLL WinCC PdeReceive S7PMC DLL PdeRecelve include lt winccnrm h gt BOOL PdeReceilive LFDM VAR_ UFDATE STRUCT lpDmvarUpdate TagLogging_ A amp RCHIVE CALLBACK lpftnCallBack LPVYOID lpUser LPCHMN_ ERROR lpError pinCallBack
47. f AR Dblect Properties Fa Ed Button ButtonF1 Properties Events keyboard hiscellaneous Property Topics Beometry Peleaze right hl Calere F13 S1 F13 SHIFT F1 Fl25 key PC
48. Windows Button Confrguration 3 65 SHIFT CTRL SHIFT F2 Trigger by Keyboard Input rs re re rd el m2 STRG F5 gt 0biect Properties i Dperator Control Enable Yes Es No access protectiony 1 1 es i 5TRG F5 i Configured Languages English United States Mealaneaus Adapt Border No Pictyure Statyus Dn Picture Status Of Windows
49. 2 1 2 2 C 2 PLC WinCC Obiect Properties 1 x Picture Window Picture Window2 Properties Events Picture Window Attribute Static Donamic Curr 2 Sdapt Picture No Miscellaneou Picture Name pictu_ 5_ T16x_Beianc Picture Offset 0 Picture Cycle Picture Diffset 0 2 h Scalng Factol100 2 a 2 ange User Cycle1 User Cycle2 User Cycle 3 User Cy
50. 5 15 5 2 2 S5 II RE PLC 115U CPU 944 CPU 945 PEG T3585U CPU928B PLC 155U CPU 946 947 EP 3 cpu 948 2 PG CPU 944 CPU WinCC SIMATIC S5 CPU SIMATIC S5 FB 86 MESS CLOCK WinCC 5 2 3 S5 SIMATIC S5 5 16 SIMATIC S5 SIMATIC S5 1 WinCCST S5D PLC PLC PLC PLC PLC
51. Courien Cowrier New 8 C 3 2 5 3 6
52. Char lps2String OtrLNgl char szString li0 String2 Ss tr in go WinCC C 4 4 1 1 1 1 C include apdetap h Old OnClickicharx lpszPictureName char lpszibjectHName char lpszProperl 1nt valuel l126b 1nt iValue2 3 declare and initialize poOlnter int pivalue MULL printftit r nExzample 1l r n printfti Address m tYalue undet ined r n piYVYaluel APolint at iValuel plivyalue amp iValuel printftit sddress a tValue Yd r n pliVYalue piValuel polnt at UL DIVESJIUE amp iValuea printftit sddress VBLUEI ZXQTm pliVYalue pi
53. a PID PID_1 PID_1 D PID_1 C C Library fct LinkConnectionTable fct Library WinCC R
54. 0 WinCC C ProjectPath WP SoWwincLCoUO Project Project CG Course 4 9 3 3 ff fF 3 GetProjectPath BOOL GetProjectFathichar lpstrFErojectPath 1 BODL bRet FALSE Char Ez2ProjectF1ile MAR PATH 1 Char Psz MULL CH ERRFROR ErrOT LRet DMostRuntimeProjectiseProjectFile MAX PATH amp Error It rbRet FB amp LSE return FALSOE ps2 strrchriszProjectFile if fpsz HULL 1 return FALSE iDET 1 0 strcpvilpstrFrojectPath seProjectFile return TRUE
55. C gt ta9 o9 toolbarbuttons TlglTrendWyindowPressLinealButtont lpszWindowHame 3 3 10 6 WinCC
56. AN
57. WinCC WinCC WinCC 2 WIinCC 2 1 WinCC WinCC WinCC
58. Windows WnCC_Projects WInCC_ProjectsS Varia_00 WinCC varia 00 mcp varia_00 db varia_00 pin varia_00 log WinCC WinCC General Information Update Cycles HotKeys i General Data of the Current Project Type SingeUserSystem Creator Fe Creation Date 1997 6 29 12 15 51 0 Changed By Last Change Yersion GUID CC_varia_00_97 08 22_1719 55 Comment Project to configuration manual Topic tags
59. ed PC PC 3 8 1 x 1 4
60. S5 32 FIFO WinCC SIMATIC S5 WinCC S5 S5 S5 SINEC H1 WinCC WinCC DB 80
61. 1 1 3 10 2 2 3 3
62. OLE OLE 32 OCX ActiveX WinCC WinCC ee windows DLE OC actiwex iBhP hE ENMF DOLE Excel word windows 2 2 WinCC WinCC Sybase SOL Anywhere WinCC WinCC ODBC C API
63. C fF 4 7 WinCC C D3 4 8 C F C C C fF WinCC C WinCC WinCC WinCC
64. WinCC 3 11 3 2 7 ll HMI WinCC Window WinCC VDE 0199 DIN EN 60073 PC 256 C
65. WinCC C 4 13 2 DLL dynamic h Windows WinCC API DLL include dvnamic h pracma code tf pdlcsapi dl1 include pdlcsapi h pracgma coder EE AChandge onlv this strings to dgenerate wisard Scripts for other landguades include defenu hr Line C COuUEse Make a Motor Dvnamic Select the desired Structure Tadg The motor isa made
66. struct 199CC_RECT tyoedef CC_RECT PCC_RECT 4 67 WinCC C 2 C include apdetap h vold OnClickichar lpszPictureName char lpsz0bhjectHame deftine and initialize CC_ RECT structure Co RECT rect 10 10 20 20 define and initialize Polinter to Co RECT structure FCC FECT prect MULL printft r nExample am aCCESSE struct elements Printfrf Coordinates d d d dd r n rect 1iLeitt rect ilop rect 1i1FRight rect 1Bottom aCCESS struct elements via Polnter Prect amp rect Printfrf Coordinates d d d dd r n Char loszProperl Prect gt 1iLeitt prect 1ilop prect gt 1i1Right prect 1Bottom CC_RECT rect PCC_RECT
67. C C fF C fF 3 3 10 2 Alpha alpha MO tab alpha Tab SHIFT Tab tab alpha tab IO TAB
68. DB DX DB DX WinCC SIMATIC S5 S5 FB 87 EXECUTE S5 SIMATIC S5 S5 5 42 D5 2 7 1 5 2 7 2 SIMATIC S5 55 WinCC WINCC1ST S5D S5 EB 16 512
69. 7 4 4 nt X YY nt CMN_ERROR API PDLRTSetPropExX X API Lefi 7o0 API f
70. C Excel 0 x EXCEL EXCEL WinCC SmartTools CC_TaglmportExport Var_exim exe Excel WinCC 3 4
71. 1 API DMGetRuntimeProjectl API PDLCSGertO leAppPW AP API PDLCSOpemExw for API PDLCSSetPropertyEx vit API PDLCSSave1 Aciwua zeObjects API PDLCSClosel API PDLCSDe O leAppPt APl WinCC C 4 8 5 5 CS API CS 1 My 11
72. Rdef i1ne HER INT VALUE 2147483647 WinCC C C char int float doube char int signed unsigned signed unsigned int long short int short short int 2 long long int int 4 double float double float 4 double 8
73. cc_9_example_14 PDL FY Duynamic wwizard gt D Duynamic Wizard Create edundant connection E st InCC E a WnCE or wwIndows System Fu Standard Impart Fun Picture hta Miscellan Picture FU
74. IpError WinCC FALSE API IpError tvypedef BOOL xMSG _ RECEIVE MSG PROCY I LPMSG_RTCREATE_STRUCT lpMsgCreate DWORD dwNumlMsg LFVYOID lpUser LPFCHN_ERROR lpError lpMsgCreate WinCC IpError WinCC FALSE API IpError 5 3 5 2 WinCC S7PMC PLC DLL PLC S7PMC DLL S7PMC NORM_SEND_PROC PLC
75. DB 100 DW20 DW 30 DW 0 DW 255 DB 80 DW 0 DW 47 DB 100 OB 1 SFA FBS8e MAMAE FELD UHR CPUT KF DEFr KF 0 TYP KF 0 os kv 100 20 UDaT kv 100 31 INT Fat HR kv 80 190 oT EF O 5 54 5 2 13 WinCC WinCC S5 S5 256 S5 PLC DB DB xx DW 0 DB DB 80 DW 90
76. Computer properties Englsh Umited States shartl mara WinCC WinCC 5359 3 40 Windows WinCC General Startup Parameters raphics Runtime P SERYERT Proektierhandbucsh Proect WinCEE ditors Proect WinCCE ditors hiCP Start Pictyre ex_0_startpicture_OD pd Browse Haotkevs indow Dn Top None Tab Origlpha Cursor None Fd Peslze hawimize hiowe hinimize hinimize Full Screen 38ImnIze Runtime Cursor OnOff None Cursor Control Characteristics te ormal Hormal without rollback tf Extended Cursor Control Kevs Up co None al Dowr None LE Shift None Right None Turn on during actiwation screen Navigation Fornward he Backward lore Start Picture lore Recall Picture he Store Picture lore Butter Size hr of Pictures
77. S5STD NLL DLL aa 1 gt 2 59 0 5 3 DLL 5 56 WinCC DLL DLL DLL DLL DLL DLL
78. while i 5 int 1 0 while ti lt 5Y 1 do something 9o while i 5 int 1 0 do do something 1 while TI lt 51 WinCC C for for int 1 0 for i 0 i 5 i do something if else if else else lt 1 1 lt 35 do something E
79. DW 15 S5 KY PLC 1 255 CPU 1 4 KY 10 2 PLC 10 CPU DW 20 S5 DB PAFE PAFE DB 80 DW 20 PAFE FB 81 PAFE 0 PLC PAFE
80. F1 F12 SF10 IO Wndows Windows F1 F12
81. C static C WinCC ii C f C extermn CreateExternalTags 1nt ext iNumber 0 Old CreateErxternallagst nothing to do CreateExterna 17a9s mt cc_0_startbicture_00 PDL BW ext_Wumber C WinCC C 6 C include apdefap h Old OnClickicha
82. MB_OJ4J MB CONS7OD MB 4PPLHAMOD4 LO C Error Xx xX WIREE C Course rased unknown Eweptionlll 4 107 WinCC C 4 11 4 4 Windows 4 4 C include apdefap h VD1I yee pe eh lpszPictureName char lpszObjectName char x lpszProperi1 HWND hWnd NULL int 1IRet hWnd FindWindowt NULL WinCC C Course ilRet MessageBox hWnd Do vou want to do something Question HB_ YESNO MB_ ICoNOUESTION MB APPLMODAL printf r nExample 3 r n if iRet IDYES l printfi User selected YES button r n slse 1f tiRet IDNOI printf User selected NO button r n
83. gt gt 4 WW ENTER ESC 3 69 10 3 3 70 Windows Windows ENTER ENTER WinCC OCX
84. gwAesult WinCC 4 35 WinCC C 4 3 4 4 WinCC 1 76 fF 4 4 C include apdeftap h Old OnClickicharx lpszPictureName char lpszibjectHName char lpszProperl DVDRD dwyYalue DUORD dwtempyYaluel DUORD dwtempYalue2 TEAd tag value dwyalue GetTagWordi Ul6i course op 3 1 rotate bvtes dwtempvaluel dwyalued lt d dwtempyYalue2 dwyalue gt 8 dwyYalue dwtempYaluel dwtempYalue2 rlite result SetTagWyordi Ul course op 3 WORD dw Yalue DWORD WinCC DWORD WinCC owy6we gwl3 we 8
85. OBJECT_ INFO_STRUCT WinCC C 6 C include apdefap h Old OnClickichar lpszPictureName char x lpszo0bjectHame char lpszProperl Dragma coder PDLCSAPI d11 1lnclude pidlcsaplil h Dragma coder Char Ez2ProjectNHame _ MaR PATH char szPictureName cc 3 _ example lO0ex PFDL CH ERROR ETrrOT get Droject name if DHMostRuntimePFrojectisecProjectHame _ MAR PATH T1 amp Error FALSE printfi r nError 1n DGoetRuntimeFrojecti rn tia r n Error STErrorlTerxt returyn A1nlitialize EPI interftace of the graphics des1i1gner IE 1 PDLCSGetOleBppoPtriFaLSE Error FALSE Printfi r nError 1n FDLCOOGetoOleBppEtri TFT Error ZETTDTTEE 1 return OPEN Dicture without displawving 1t 1t 1 FDLCOOpenExtseProjectHame PictureName 1 amp Error FALSEY Printfi r nError 1n PDLCSOpenEst TEST Error SZErrorlTerxty Joto OPEN FBILED nObects in picture cc 9 example lO0ex PFDL r n ENUMmErate objects 1t 1 FDLCOCSEnumObIListiszProjectHName SPictureName ObjectCtallback HULL amp Error FBaLSE Printfi r nError in PDLCSEnumObjectListt ne r n ErrOT ZE ETTDTTEES 1 CLOSE DICtUrEe PDLCSClIosersz
86. Windows PC Laplink MOD CD ROM GraCS sav Prt
87. C OCX WinCC C VB 5 WinCC OCX PCS7 3 77 3 3 11 1 OCX OCX
88. PPz Count 1 4 50 Example 2 Executed loop iCount 0 Executed loop iCount 1 Executed loop iCount 2 Executed loop iCount 3 Executed loop iCount Exit loop iCount 5 WinCC C 4 5 3 3 for for 3 3 C include apdetap h wold OnClickichar lpszPictureName char lpszibjectHName char lpszProperl Al1oOop CoOunt 1nt ICDunt DD Printfi r nExzample 3 r n for loop tor fiCount 0 iCount 5 iCount do something printfti Executed loop iCount Rd r n 1Count printft Exit Loop ICount xxQvrm ICount 1 nt iCount for Count 5
89. m Windows 3 67 3 68 3D Windows 52 8 Fr Properties Events EE Group Mouse Keyboard hiscellaneous Property Topics Geometry Colors
90. printf Example 3 Executed loop iCount 0 Executed loop iCount 1 Executed loop iCount 2 Executed loop iCount 3 Executed loop iCount Exit loop iCount 5 4 51 WinCC C 4 5 4 4 break 1F 4 4 C 4 52 ilnclude apdeftap h Old OnClickichar lpszPicturseHName char lpsz0bjectHame char lpszPropert AM loopP EXECUt1oOns define MR COUNT 1000000 loop count nt icCount 0D nt iFrogressBar 1 char seProgresslTerxt s ENdless loo0p anocther possible loop whiler TRUE 1 1 for t 1 It fitCount gt MAR COUNT break LDOUHt 1t fiCount tiProgressBar M
91. gt CTRL W Set_Focus C gt a gt gt Cet FocustlpszPictureName lpszobjectHame WinCC WinCC Alarm Control Properties Xx Status Bar Mes
92. 0 WinCC DLL API DLL DLL DLL S7PMC 6 S7PMC DLL J EO ng 5 4 3 4 ea 5 82 5 4 3 5 5 82 Sp me CCC 5 83 5 4 3 7 nn 5 83 5 4 3 8 i 5 83 5 4 3 9 Shift 5 83 5 4 4 eo 5 84 5 4 4 1 0 5 84 5 4 4 2 5 85 5 4 4 3 DIN 30600 5 86 0 5 87 5 4 4 5 5 88 BAAE 5 88 we D 88 S22 35 S556 Db 89 BD Db 89 Sd SS S000 Dp 89 SS Db 89 5 4 4 6 6 is a_y32b 5 90 SA A BC OO D5 90 5 4 4 6 8 isa_y32d on 5 90 Gd SY 5 90 5 4 4 6 10 is a_y32T 5 91 Db I SG b 91 5 4 4 6 12 isa_y32h 5 91 5 4 4 6 13 isa_y32i on 5 91 5 4 4 7 0 5 92 5 4 4 8 5 93 BAAO 5 94 5 4 4 10 2 5 95 Vil Vi WinCC
93. WinCC DLL WinCC WinCC API WinCC API SQL CSV WinCC SmartTools CC_VariablenImportExport Windows
94. WinCC OLE WinCC OCX WinCC OCX WinCC 3 3 12 WinCC 500
95. 5 46 2 9 1 5 2 9 2 SIMATIC S5 S5 WinCC WINCC1ST S5D FE 17 WH Ep 1 15U 27 DW 54 j 135UW 155U 172 DW ZA 55 WW 3 DW 6 S5 PLC 115U CPU 944 CPU 945 PLGT35Y GRPY 928Bb PLC 155U CPU 946 947 CPU 948 PG CPU 944 5 2 10 FB 86 MESS CLOCK FB 86 MESS CLOCK iD CPUT ENDBTZDKMKHKYKCKFKTKZKGKF DD DCF7 ENDBTZDKMKHKYKCKPKTKZKGKF GTYFE ID NT A D B TZ D KM KH KY KC KF KT KZ KG KF ZCLOCK A D B TMZ D KM KH KY KC KF KT KZ KG KY ZSYN E A D B T Z D KM KH KY KC KF KT KZ KG KF DD 7 DD ubAT WDBTZDKMKHKYKCKFKTKZKGKY E D 5 47 CPUT DCF7 OTYPE OoSYN UDAT ZINT ZCLOCK ZSYN 5 48 CPU 1 IIcPu943cPU944 2 ICcPU945 3 cus28B 4 ICcPU946 947 5 ICcPu948 0 S5
96. End of workday h m j User Cyuclel variable SOS waria_but_01 5098L wara_but 0D3 3 27 3 28 2 508wara_bul_ A
97. Float a a GetTagFloat DB21_C l returntarl OOY IO Var1 16 fIDat a a GetinputyialueDoublatlpszPictureName lpszObjecthlame SetTagFloati varl a 100 5 1 2 5 cowzzmm 9ummy 5 1 3 WIinCC Scope
98. posObject struct CC_POMNT posObject C x yy SetLeft SetTop WinCC C 4 7 2 2 C 1F fF 2 apdefap h linclude AP_ FBIE H define tructure tagtit Rect tvpedef struct tagtt_ RECT t 1nt 1iLett lnt ITOD 1nt 1i1Right 1nt 1Bottom Co RECT AAdefine twpe CC RECT as truct tagCti_ Rect PCC RECT define twvpe FCC RECT as polnter to struct tagCt Rect define constants for function GetFileNHamer 1 Rdef ine GEN_SAVE 0 Rdef ine GEN_ OPEN 1 t99CC_RECT nt
99. GSC Go Diagnostics Dblect Properties EE Application Wndowy Applcationwindow Properties Events Application WwWIndow Geometry iscellanenus Can Be havirr es Can Be Closer Yes Foreground es WinCC C printf Global Script Diagnose Error in GetQpenFileNamell 129 07 99 1184229 4 M wl 2 wl Kk 1 WinCC C WinCC Project_C_Course cc_9_example_00 PDL Tags
100. WinCC Set7ag Get7ag WinCC WinCC F 5 include apdeftap h Old OnClickichar lpszPictureName char lpszObjectHamse char lpszPropert1 float fiHumber 32 bit double dHumber A bit tHumber 1 0000001 dHumber 1 0000001 EEt wincc tages CetTagFloatt F321 course tag_1 fHumber SetTagDoublet Fd4i course tag_l1 diHumber foat oowbe WinCC WinCC Sel739 WinCC Gex7a9 WinCC C 4 2 6 6 6 C
101. 4 117 WinCC C 4 13 1 bmm opwxzeotexe WIinCC Wscripts Wscripts deu WinCC Wscripts Wscripts enu WIinCC Wscripts Wscripts fra DynMzZ WinCC Project_C_Course
102. DLL DLL C DLL CS DLL pragma code DLL Dragma codet FDLCSAPI d11 1include pdlcsapli h pragma coder RT CS API CS RT WinCC DLL RT RT RT
103. int i prnif or prniWN Example 4 Characters el BLal ml pl l el jt el Bs atring example text 4 45 WinCC C 4 4 5 5 WinCC C WinCC fF 5 5 C include apdefap h TDI Onclickichari lpszPictureName char lpsz0bjectHName char lpszProperti declare and initialize POlnter to str1ing char pszlerxt NHULL get wincc tag value DSEzTEXt CetlTagchart T0981 course point 1 printft r nExample 5 r n AACCESS Str1ing Printfrt String se r nStringlength d r noStartaddress Aa I n p32zText strlentpszText pselerxt
104. 2 DLL S7PMC SCAN 1 ALARM NOTIFY 2 ES ALARM_8 ALARM_8P PMC EV ID 1 16386 SCAN ALARM NOTIFY ALARM 8P ALARM 8 1 7 LTM MidShowDialog 1include lt winccnrm h gt BOOL WINBAPI MldShowDialogi HWND hwnd LPFMSG CSDEATA GENERIC lpmCs LEDM_ PROJECT_INFO lpDMProjectInto LPCHMN_ERROR lpError LpEror WinCC TRUE FALSE API IpError 5 65 5 3 4 3 5 66 DLL API S7PMSC S7PMC CS S7PMC DLL PLC WinCC
105. wscripts deu Wscripts enu ba I 3 WinCC WinCC WinCC binWunload exe W WinCC WinCC STORAGE WbinWWrebuild exe 1 SmartTools CC_GraficTools IEMF metavw exe SmartTools CC_GraficToolsIWMF I OCX SmartTools CC_OCX_REG ocxreg exe Regsvr32 exe 3 3 4 WinCC WinCC WinCC_P
106. DLL DLL WinCC Windows WinCC OLE Windows WORD ClipArts EXCEL OLE Windows OCX ActiveX 3 44 OCX OLE Control ActiveX Windows OCX WinCC SmartTools CC_OCX_REG ocxreg exe WinCC OLE OCX WinCC WinCC
107. Project Emironment C WinCC API Windows APl 4 9 1 WinCC C 1 WinCC fF 1 1 C Xinclude apdeftap h voOld Onclickichari lpszPictureName char lpszibjectHName char lpszProper EOOL bRet char szProjectFile _ MaX PATH 1 CHN ERROR Error get the project file TCD brRet DMoetRuntimeProjectiszProjectFile Ma PaTH amp Error Check return value
108. WinCC WinCC Siemens 49 911 895 7000 7001 SIMATIC CA01 SIMATIC Internet http Wwww ad siemens de ca01online SIMATIC Internet http Wwww aut siemens de support html _O0 index shtml 1 ll WinCC WinCC HMI WinCC WinCC HMI
109. Project_CreatePicture Project_CreatePicture Project_CreatePicture WinCC WinCC WinCC S5
110. brary px orary Library P spictu_O0 X ee 15A_5ymbols I Keyboards a Miscellaneou kiscellaneou Valvel walve2 Motors Motors 3D PC PLC Pipe Pumps 5caling Valve3 Valved Shut_off_de a Shut_off_val SMART Dbie 9 Testfields valve valve 30 Y v AveE JJL windows Prolect Library a emf SSCSCSOSSS65S5 8 2 TO Save
111. f 2 1 lilYalus lCount Dratir liYalus licCount t Dosttir 2 C include apdefap h Old OnClickichar lpszPictureName char x lpszoubjectHame char lpszPropert tatic 1nt ztat iPrafix 0 static int stat_ iFPostfix 0 printft r nExample To EEECUteE Operators printftit Prefix coperator on first tag Yd r n stat iPraftix printfti PFostfix cperator on second tag d r n stat ilPostfist Check values printftit vValue of first tag atter execution d r n stat iPraftix printfi vValues ot second tag atfter execution dd r n stat i1Postft1ix int
112. 16 CE FB 87 EXECUTE FB 87 EXECUTE ro ENWDBTZDKMKRKYKCKFKTKZKG RF ID IDBDX E A D B T Z D KM KH KY KC KF KT KZ KG KF ID IRIMP E AMD B TZ D KM KH KY KC KF KT KZ KG KY DBNR DBDX DB DB DX DX RIMP RIMP 5 43 5 2 8 5 44 FB 87 SIMATIC S5 SIMATIC S5 FB 87 EXECUTE OB 1 DB Op FB 88 OPCODE DW 1 1 1 WinCC S5
113. ID FFFF FB 86 MESS CLOCK 0 DW 1 FFFF DA ED J FF Ra lo eo lo be oR5 6 lo wos eo 0 EEC BUT x wos6 Hz 0 HERO ax zisaa 11 yyxx xx 00 01 yy 00 02 03 5 49 5 2 11 1 CPU 944 CPU 945 UDAT FB 86 MESS CLOCK DB DW 1 1 5 50 5 2 11 2 CPU 928B CPU 948 UDAT FB 86 MESS CLOCK DB DW 3 9 0 10 5 51 5 2 11 3 CPU 946 CPU 947
114. UDAT FB 86 MESS CLOCK DB DW 5 5D2 5 2 11 4 ZCLOCK FB 86 MESS CLOCK DB DW S5 DB 80 DW 190 ZCLOCK FB 86 MESS CLOCK DW3 DW4 DW4 14 5 53 5 2 12 S5 FB 86 MESS CLOCK FB 86 MESS CLOCK PLC PG CPU 944 CPU DCF77 S5 S5 5 SIMATIC S5
115. NULL Gex7acChpa WinCC prntW Se1m1f 4 46 Example 5 otring This is an example text otringlength 24d otartaddress 1682828 WinCC C 4 5 while do while WinCC Project_C_Course cc_9_example_03 PDL Loops
116. FIFO OB OB 20 OB 21 OB 22 SPA HTB SYNCHRON CPU SPA FB 81 STARTUPFB OB 1 SPA FB 80 SYSTEMFB WinCC FB 86 MESS CLOCK DB OB 21 OB 22 CPU sYMNCHRON 5 17 S5 S5 FIFO FIF 2 2 DW
117. pragma code comdlg32 d11 1include commdlg h pragma coder 4 97 WinCC C 4 10 1 1 Windows Windows cc_0_startoicture_00 PDL W WinCC C Course C include apdefap h voOld OndopenPFicturerchar lpszFictureName char x lpszo0bjectNHame char x lpszl get handle of runtime window HWNHD hWnd NULL hWnd FindWindowtHULL WIREC Run tIE SeEt text of runtime window CetHindowTerxt thWynd WILL CC LOurse EEt DOS1tion and ize of runtime window cetWindowPosthWynd HWYND ToOP 0 0 1024 768 07 EEt active the first chapter cetTagBvtert U8 org bar 1 07 A CreateExzternalTagst Windows WinCC Windows DLL HWND NULL Windows Windows PopaoowH
118. 5 2 3 2 5 20 DW 1 1 1008 10000 10000 1008 11008 5 2 3 3
119. CC API PD LCSOopemExf gwFl39s 1 API goto API API PDLCSNewObjectExX JO 2 goto API PDLCSSavel goto ActualizeObjects API PDLCSClosel go
120. mt Couwmt 1 Example 1 Executed loop iCount 0 Executed loop iCount 1 Executed loop iCount 2 Executed loop iCount 3 Executed loop iCount Exit loop iCount 5 4 49 WinCC C 4 5 2 2 do while oo wjje 1F 2 2 C include apdefap h voOld Onclickichar lpszPictureName char lpsz0bjectHNHame char lpszProper LDOoD count int ICount 0 printftt r nExzample 2 r n do while loop do do something printftt Executed loop ICount id r n icounty iCount while fiCount lt 07 Printfr Exit loop iCount Rd r n 1Count nt iCount do while Count 5
121. 5 3 3 3 DLL NormGetDLLName Include winccnrm h LPTSTR NormuetDLLNHamer wold 7 LPTSTR DLL 5 62 5 3 4 DLL DLL DLL NormDLLStop lncCclude wlinccnrn h LPTSTR HormoetDLLNamer woid Y 5 3 4 1 S7PMC MFC WinCC DLL 5 3 4 2 S7PMC
122. DLL NORM MId Pde NmrmDLLSar hh MDRMDLLSop DLL MELD PDE B57 a hidRegitehiiag FPLC NDR SEND_PRODC Mildsendhtg PL BDDLtdFeceiveMl39 SG_RECIE MSG_PROC Se MSG _RECIwE MSG PROC hdFecehe ME SS CS BODLM dShowDid oy HormDLLCS ktdshou 5 58 5 3 2 OEE NDRk SEND_PROC FdeSendhtg nn
123. Windows Windows WinCC SQL ODBC UNIX Oracle Informix lngres WinCC WinCC WinGC C6 API EE DOBC Svbase SH EP Sybase SbL Sybase SQL Svybase SUL sd 2 2 WinCC WinCC HMI PLC CS RT 2 3 WinCC 94 3 a WinCC WinCC 3 1
124. struct ExampleStruct pesVyvalue 100 2 0 peEsyvalue gt liElement peEsvalue gt ftElement WinCC C 4 7 1 1 1 Chick on this field 1 C 4 66 lnclude apdeftap h void OnLButtonDownicharx lpszPictureNHame char lpszObectHame char lpszl deftine stucture CC FoOINT Etruct CC POINT Int iLett int ITOD define ztructure tag POSObPjIEct struct Ce_ FoOINT posdbject SEt structure elements POO0bIEct 1ILEtt 8 DOSsDDJEct ITop ww 8 AACCESS Structure clements cetLeftrtlpszPFictureName coo man POO0bject 1Lett cetTopt lpszPictureName cool man pos0bject 1Top CC_POINT int
125. PAFE PAFE 0 PLC PAFE KY A KY 9 1 9 1 DB DB DB DB DB 80 DB DB DB DB 80 DB DB 6 DB DB 7 1 DB DB 80 8 1 DB 9 1 DB DB 10 2 DB DB 80 11 2 DB 1 DB 12 2
126. printf DCmt Example 2 Prefix operator on first tag 1 Postfix operator on Second tag 0 Value of first tag after execution 1 Value of second tag after execution 1 4 34 4 3 3 3 WinCC C f 3 WinCC B16 WinCC 6 AND OR NAND NOR EXOR WinCC My 8
127. ANSI C C A B SHIFT D R gt gt D R R gt gt
128. 120 7 4A We Pe 0 5 2 3 5 ii DW 16 Incompletelw filled 1ilt messages si19gnal condition block 1t riregqulired messages of this message categorv 16 0 last si1gnal message block 1 1008 63 63 4 252 5 23 DB 1008 16 x Tncompletelwv tilled lb messages si19g9nal condition block 1t FifirFeIuilired messages 1n this message categoryv 1008 16EY 01 last si19gnal message block DW SWUM DW 2 MW 4 1 M 1030 DB SUMAN DB 1M 1008 1030 1008 22
129. 4 5 BIT SHORT PID IO IO
130. MeanValueVector double Meanvaluevectortidouble x dVyvalue DUORD dwSize double dSum 0 0 int 1 forti 0 i1 dwSize 1 dSum dSum dVYalue 1il return dSum QQwSLzET MeanlalwuelVector douwble gowble gowble for yetwm WinCC C 2 C include apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert define and initialize double wector double dyYalue 3 la26 2 23 9 45 7 double dMeanVyValue Calculate mean value of vector dHMeanvalue Meanvaluevectoridyvalue 31 ADOutput into diagnostics window printfit
131. WinCC fF 4 4 C lnclude apdetap h 1I OnClickichar lpszPictureName char lpsz0hjectHame char lpszProperi char szFProjectFile _ MBX PATH 1 DH DIRFECTORY INFO dmDirInto CH ERROR Error char paz MULL get the proect ft1ile mcp it DHMoetRuntimePFrojectiszProjectFile MA PATH TI amp Error FALSE 1 Printftit r nError in DoetRuntimeProjecti r n ET Error SeErrorlerst reEturn AgeEt wincc directories it 1 DMoetFrojectDirectorvi sz2ProjectFile dmDirlnto amp Error FALSEN Printff r nError 1n DMGostProjectDirectoryt rr n AT Error SeErrorlerst PEtHUrI If i fpsz strrchridmDirlnfo seGlobalLibDir I HULL Y xpEz 0 1t 1 fpsz strrchridmDirlinto seulobalLibDir HULL iPEE 1 0 displav linstallation directorw Printftrt r nlnstallationDirectoryv TD dmDirlnto szulobalLibDir szProjectFl e gmDWw nfo DM_DIRECTORY_INFO
132. D 2 3 4 printf WinCC C C C WinCC C ANSI C WinCC C 4 3 WinCC C 4 1 1
133. Name_dex csv Diag txt mcp var EXCEL con EXCEL EXCEL 5 3 56 Fag IIpwopp 1 TEXT 1G 12 15 BLITIEERD S 16 BITFIELD_16 17 BITFIELD_32 18 Protocol RUannnaaaaa AAA ER RAR L3 Boor L4
134. fct Library C WinCC 3 63 3 3 10 3 3 10 1 3 64 WinCC
135. Siemens WinCC syslay WinCC Be mcp pin qb GraCS Library Pas Prt WinCcC Siemens WinCOaplh fct Siemens WinCCapliA ibrary pxl WinCC 3 43 3 3 8 WinCC WinCC WinCC Windows WORD EXCEL
136. WinCC EE TE Ewetactaranlaal New Structure Tuype R fect R Left LONG WinCC C WinCC fect WinCC 4 4 Name U1B course_ op 1 Unagned 16 bit walue U1BL course_ op 2 Unagned 16 bit walue U1B course_ op_3 Unagned 16 bit walue UDBL_eourse_op 1 Unagned 8 bit walue 3 C ilncCclude apdefap h Old OnClickichar lpszPi
137. SZE1rorT7ext API BOCOL API 4 77 WinCC C 4 8 2 2 RT API RT 1 O 111 2 2 C 4 78 include apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert AInclude file with the Linklwvpe deftinitions include trigger h Char sz2PictureName cc 9 _ example liNex char szObjectName 1 OFieldl LINEINED link CHN_ ERROR Error TI link info structure link Linklvpe BUBRT LT VARIABLE DIRECT link dwCiwvwcle 0 strcpyvtlink szLinkName U0 course _ wincc 2 EeEt link and check the return value 1t 1 FDLRISetLiInkEID szPictureName 0bjectHame CutputvValu
138. NULL for ran91 retum 4 63 WinCC C 4 C include apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert def line VECTOR SIZE 5 declare polinter to zave address of int vector lint DIVECtor MULL It 1 printfit r nExzample LT OEt address of filled wector Piector GeEtFilledvectorivECTOR SIZEY It rpivector HULL 1 printftit Error in GetFilledVector r n rEturn printfi Vector Elements Y for 1 0 1 lt VECTOR SIZE 1 printfrt d piVector 1 printff rn Y VECT7OR_SIZE piVector int NULL 1 nt GetFNedVector piVector
139. PLC 5 2 4 5 2 4 1 5 2 4 2 5 2 4 3 5 2 4 4 DB 80 S5 S5 2 4 WinCC 80 DB 80 FIFO DB 80 0 20 S5 S5 2 4
140. Plant_Cont RepartD Repart Trend0 Tremdi User Buthorizationd Dser amp uthorization 5 4 3 4 Next Screen Frewious Screen Start Screen 5 4 3 5 Decrement_ 1 Decrement_ Step Inererment_ 1 nerement_ Step lt 5 82 5 4 3 6 5 4 3 7 5 4 3 9 SIPART DR 21 50 0 9939 3 DUT Y DapT 41 BIEMENE BEgl1 Button Eng U5 LEE Hotken US Englishl Shift SIPART CR 21 Buttom Fr Lang Switch HS kevboard Char On_Off Ee ED Button Ger Lang Switch to Ger or Eng IUs Keyboard Num Cp Hotkey D Germanl Lang Switch to Ger or Fr SF HotkKew F French 5 83 5 4 4 Sumbols Conveyors DIN30600 i E Symbols 5 Symbols a Miscellaneous1 a Miscellaneous2 5 4 4 1 0 Xk 5 84 XRD Xe a Xe sxXo 09 XD 5 4 4 2 WX Oms OX gx aX mx XX PX LXs 5 85 5 4 4 3 DIN 30600 Is 2 3 or AD DD 4 Is el ye VC OO 5 86 os De 8 OO Ds Ds C3 Oi Hi CD DD As Or CN Oi Or i 4 0 Ci a HD
141. WinCC WinCC WinCC WinCC 1 1 WinCC WinCC WinCC WinCC WinCC
142. Varkey WinCC RUE API lpError 5 3 4 4 DLL WinCC PLC MIdRegisterMsg DLL DLL DLL S7PMC MidRegisterMsg linclude lt winccnrm h gt BOOL WINAPI MldRegisterlNsgt LPFDM VARKEY lpDMVarkey LPFPDWORD lpHMsgNumber DWORD DwNumlMsgNumber LPCMHMN_ERROR lpError IPDMVarkey Varkey lpMsgNumber dwNumMsgNumber IpError WinCC
143. 40 255 aaaaa k x x_nn a a z A Z course C dk 0 99 _0 32 3 4 _5 _6 7 a 8 Nm 2 _X a z A Z 30 _chapter C _n 0 9 0 99 35 3 2 4 WinCC
144. DBF DBN archive sql select from PODE HO PFrocessalyeArchnvet snalog outputto DnG Projektarchny tdt tormat ascll pqe aq ProcessValueArchive Analog9g ASCII archiv txt 5 10 5 1 4 6 se ect output select trom POE HO PFrocessvalueAarchvetanalog where T between 1996 5 1 10 10 0 00 and 1996 6 1 10 10 0 00 select trom POE HDO PFrocessYvalueAarchrietanalog where T gt 1996 5 10 100 00 select from PODE HO PFrocessaluyeArchivet snalog where wy gt 100 select trom POE HO PFrocessyalueArchrvesanalog where gt 100 order by T T V select Ty from PDOE HDO ProcessvalueAarchrvetaAnalog where wy 100 order by T 5 1 5
145. IO 2 3 Windows Wi ee 81
146. NORM_SEND_PROC DM S7PMC DLL DLL PdeSendMsg dwFunctionld IlpdwData I DLL PdeReceive mg 7 S7PMC DLL DLL DLL PLC Iabal Library Displays Displavs hieters scaling Tewt Fields Wndows Dperation I Buttons 3D Buttons Language Controller IncrDecr Buttons Kevboards Screen Buttons Screen Navigation Slhders Toggle Buttons PlantElements hotors FL PLL Pipes Pipes Smart Dbjects Pumps Tanks valves walwes Smart Dbjects 2ym
147. WinCC CC_RECT WinCC CC_RECT 4 72 WinCC C 4 C ilnclude apdefap h Old OnClickichar lpszPictureName char lpsz0bjectHNHame char lpszPropert R define and initialize pOlnter to Ce RECT structure FCC RECT prect NULL IEad element walues of wincc structure tag prect fFPCC RECTY GetTagRectt STRI course str 1 1 Printfi r nExample dd r n A Check return walue of GetTaghRecti It rprect NULL printfit r nError 1in GetlTaghRecti rn TeEtur ACCESSE Struct elements Printfi Coordinates dd Rd 2d Rd r n Prect gt 1iLett prect 11Top prect gt 1Right
148. OCX OCX Microsoft Visual C 5 Microsoft Visual Basic 5 OCX WinCC OCX WinCC OCX PCS7 PLC PCS7 OCX WinCC WinCC OCX OCX OCX OCX dll
149. C C _ C 0 Errorts 0 Warnin9 s DErrorlsl Dwwarminalsl D line 2 error 0086 function _maln doess not return a walue roPe Muellcode 576 weichen Gropde FP Code 0 Bvtes a C C 1 Ewent Mame Befaut trigger C C 1F Duwnamic 4 9 WinCC C WinCC 1lnclude apdeftap h long _malnichar x lpszPFictureName char lpsz0bjectHName char lpszPFropertviHa
150. Get7a9Rect WinCC vo ox PCC_RECT prect NULL CC_RECT 4 71 WinCC C Sr D4 WinCC CC_RECT Sys MMa loc s Zeofl NULL Sys Ma locl NULL WinCC
151. gwtemplValue71 owYee 8 owemmovswe2 OR gwla we gwl3 we WinCC WinCC C 4 3 5 5 C fF 5 5 C include apdeftap h Old OnClickicharx lpszPictureName char lpsztibjectHName char lpszProperl double dyYalue 123 6 1nt Value 24 double dhReszsPow double dhResSgrt 1nt 1FRessbs 1nt 1FResRand dReszsPow powidyYalue dl DODYWET Dt 3 dResSgqrt sqrtidyYalus aquare root lhRezssbhs abstiValue absolute 1l1RezsRand randr Tandom ADUutput 1in diagnostics window printfit r nExzample So r n printfi 1lf raliszed to the power of 3 lf r n dVvalue dResPow Printfi Square root of lf vt lf r n dVYalue dResSgqrt printftit sbsolute walue of Yd t d r n iValue 1iFRessbs printfi s peudorandom number t
152. WinCC DLL S7PMC DLL S7PMC DLL DLL S7PMC DLL S7PMC DLL S7PMC 2 DLL DLL D S7PMC OS PLC PLC OS S7PMC DLL DLL WinCC PLC DLL 5 3 1
153. cc_9_example_12 PDL Standard Dialogbowes WinCC WinCC C WinCC Windows WinCC ODK Windows API 4 102 WinCC C 4 11 1 1 WinCC fF 1 1 C jnclude apdefap h VOld OncClickricharx lpszPictureNHame char lpsz0bjectHNHame char lpszProperi HWUND hwndParent NULL DWUORD dwFlags 0 DUORD dwoetLocalelDs 3 UINT ucSetIDArrav le DUORD dwoet LocalelD EBONOL LbRet CHNH ERROR Error Dax0409 0xz0407 0x040C 3 hwndParent FindWindowiHULL Winct CC Course EEt cs language tdwoetLacalelID contains selected language 1ID brRet DMShowLanguageDialogthwndParent dwFlags dwoetLo
154. 2 4 Windows Motor_102 Motort02 PDL
155. C WinCC C C C C C WinCC C Configuration_Manual Project_C_Course 4 1 WinCC C 1 pdefap h void 3 kichar lpszPictureName charx lpszObjectNanme char char cNumber signed 8 bit value Signed 32 bit value signed 16 bit value int iNumber signed 32 bit value unsigned char ucNumber unsigned 8 bit value unsigned long ulNumber unsigned 32 bit value unsigned short usNumber unsigned 16 bit value unsigned int uiNumber unsigned 32 bit value CNHumber 128 Output in diagnostics window printf rnExzample 1 r n printf char t t d r nshort t t d r n i 0 00000000000000000 0 00000000000000000
156. 4 GetFilledVector 1nt wetF1illedVectoritDWoORD WSILzE lnt DIVECtor NULL allocate memorv ior vector PiVeEctor CveMallocisizeot int dwolze Check return value cf SveMallocr It rfpiVvector MULL return HULL EL wector for 1i 0 i dwSize 1 PiVvector i randi return pliVector GetF eqVector C000 Ww piVector Wt NULL 1 nt Sys Malloc nt NULL SysMMallocl
157. CP525 CP525 P3964R RK 01 9600 8 1 PLC CP525 SYNCHRONOUS SEND RECEIVE ALL Connection Parameters Higher z WinCC 5 2 5 1 6 Er GREEN define C 5 13 5 2 S5 S5 5 14 SIMATIC S5 S5 SIMATIC S5 WinCC
158. 5 21 5 23 3 D 2 3 6 O23 D 2 3 8 2 5 2 3 10 Db 23 1 O20 12 59 2 3 13 5 2 3 14 SA bi2 3516 D2 LY 5 2 3 18 B25 19 5 2 3 20 5 2 4 5 2 4 1 5 2 4 2 5 2 4 3 5 2 4 4 5 2 5 5 2 6 D 2 6 1 52 6 2 95 2 0 3 Db 2 7 5 2 7 1 5 2 7 2 D2 13 5 2 8 D2 8 1 SR D 2 9 2 5 2 10 D 2 11 5 2 11 1 B21 2 ER 5 2 11 4 b 2 12 213 ts pe Eo S5 DB S5 0055 DB 30S 20 comm eT SIMATIC S5 2 1 2 FB 87 EXECUTE SS S5 WinCC CO Vi SEE Oe S32 S00 B33 Ee Me Me 5 5 3 4 5 3 4 1 5 3 4 2 D 3 4 3 5 3 4 4 5 3 4 5 5 3 4 6 5 5 5 5 3 0 2 B303 5 3 5 4 B00 D000 B05D 7 5 5 D 4 D 4 1 5D 4 1 1 5 4 1 2 5 4 1 3 5 4 1 4 5 4 1 5 5 4 1 6 5 4 1 7 5 4 1 8 5 4 2 D 4 2 1 5 4 2 2 5 4 2 3 5 4 2 4 5 4 2 5 5 4 3 5 4 3 1 5 4 3 2 5 4 3 3 DLL
159. CMN_ERROR cjpa NULL API DHhMGCexmonptzP7eAmoeclh 4 93 WinCC C API DMGetProjectDirectory 9mDirInto SZG obalLibDIr WinCC strrchr 0 strrchr 0 InstallationDirectory CASiemenst in WinCC C 4 9 5 5 Vf 5
160. GetProjectPath szcaz jpem1l fscanf WinCC 4 114 WinCC C 4 12 3 3 3 LogText include apdefap h BOOL LogTextrichar lpsezLogTerxt FILE pFile NULL char seFile _ MX FEATH 10 OEt project path 1t foetProjectPathiszF1ile FELSEN Printfi r nError 1n CetProjectPathi rr n return FaLSE Create file name strcatrszFile Log taxt ODEn Or Create tile to append pFile fopeniszFlile at Check return value of fopen t It rpFile NULL i Printfi r nError 1n fopent rr n return FaLSE AADPDEnNd data fprintfipFile Rs Re r n LetLocallTimeStringt
161. WinCC gt gt General Information Update Cycles HotKeys Hot keys are key combinations to which you can assign specific actions within winCC ctions Log on assign Log off rT P Previously assigned Press the key combination that you want to use as a shortcut You can use the DEL key to delete the hot key Cancel Help C AHF D C WinCC Fepotob ReportJobipszJobHame pszHMethodHame PRINT PREVIEW 3 75 3 3 10 7 a
162. szComputerName Windows GetComputerNameA 4 95 WinCC C 4 9 6 6 6 C 4 96 include apdefap h Old OnClickichar lpszPictureName char x lpszobjectHame Oragma code advapi32 DLL Y BOOL GetUserNamestLPSTR UserName LEDWORD PdwSLzE def line UNLEN 256 Dragma coderY BOOL LRet FBALSE char zzUserName UNLEN 11 DUORD dwSlze UMNLEN 1 LRet GetUserNamestseUserName amp dw Sice ACheck return walue If tbRet FB amp LSE printfit r nUserName r nDnknown User r n return dizplav project file printftit r nUserHNHame rr nie rr n szUserName Windows DLL advapi32 Wnqows N7 gt f 6 char lpszPropert1 DLL 6EOCO L
163. 1 C 1lnclude apdetap h Old OncClickichar lpszPictureName char lpsz0bjectName char lpszProperi FILE pFile NULL char szFile _ MaX PAaTH 10 int iData tloat fData get project path 1t roetProjectPathiszFile FALSE Printfi nError in GetProjectPathi r n et Create file name strcatiszFile Data tat DPEnN Cr Create file to write pFile topeniszFile w Check return walue ot fopeni It tpFile NULL Printfi nError in topent rr n FeEtUTY get data to write iData GetTagSDW ordi S321 course ftile 1 tData GetlTagFloatt F321 course tile 1 Wrlite data fprinttipFile dd r nift r n iData tData tcloserpFile ADOutput in diagnostics window printfi r nData written in tile r n tid r n tit r n lilData tData FAL GetProjectPath szcalf fopen WinCC
164. WinCC C 4 10 4 4 Windows API cc_0_startbictyre_00 PDL lt 22 01 ProgramExecute Unz1Ined 1int ProgramExecutet char Program Name This function will start anv Windows Programm A 1t return value 31 the programm ztarted successtullvy return WinExect Program Name SW SHOWNORMEL i ProgramExecutel Windows WinExecl WinExec ProgramExecutel 31 C include apdefap h voO1ld OnClickichar lpszPictureName char lpszobjectiName char x lpszPropertl 1 ProgramExecutef calc exe Y ProgramExecute ca c exe Windows Windows 4 101 WinCC C 4 11 WinCC Project_C_Course
165. act Global Script Frolect_winLCLEditors MLP gsccsl pas Edi n CtIont DID CTAGNAME_SECTION_START detine TagNamelnAction DhiTagName CTAGNAME_SECTION_END CPICNAMAE SECTION START Rdefine FichamelnAction PictyreName Ey mpeart Ctrith C 92 3 3 9 5 WinCC S5 S7 S7 PCS7 War_Exim WinCC API SQL WinCC
166. emf gif GraCS Status Display Configuration Browse Bit position Pp dd Cancel raphic oblect confguration Prewiewy Selection of Picture smil bmp Taste_21_18 bmp Find Cancel 3 49 3 3 9 3 GraC5 bmp emf wmf
167. DW 190 PC FIFO 5 2 3 19 5 2320 FIFO FIFO RAM FIFO PC RAM FIFO
168. C 4 11 WinCC C C WinCCProjectFolder PAS WinCCProjectFoldenComputerName PAS ff R Global Script we 5E RwER1 AProiektierhandbu Proi ect fmctions St
169. WinCC 2 C 4 90 1lnclude apdetap h Old OncClickichar lpszPictureName char lpsz0bjectName char lpszProperi1 BODIL brRet FALSE char szProjectFile MAR PATH 1 Char psz NULL CHN ERROR Error get the project file mcp bhet DMGetRuntimeProjectiszProjectFile MAR PAaTH amp Error Check return value 1f DREt FALSE printfi nError 1in DMGetRuntimePFroectii r n TI Error SeErrorlerxt TEtUIN EeEarch for last backslash ps strrchriszProjectFile Cut string atter last backslash It tpse NHULL 1DEEz L1 0 displav Croject path printfi r nProjectPath r ne r n SZProjJectF1ile B00L bhet szProjectFli e cpa NULL CMN_E RROR API DMGetRuntimeProjectW AP DMGetRuntimeProject strrchr
170. WinCC Project_C_Course cc_9_example_01 PDL Dperators WinCC C Ee T 0 0 1 OE rr rr le WinCC C 4 3 1 1 1 1 C include apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert tloat fvaluel 12
171. 5 61 5 61 J 3 10 4 33 3 76 3 81 3 38 3 87 3 70 3 38 3 35 3 32 3 32 4 31 4 31 4 31 3 47 3 64 3 69 3 6 3 69 3 47 3 64 3 73 3 70 3 38 3 59 3 10 3 64 3 64 3 10 3 75 3 26 4 11 4 3 3 32 4 3 4 1 3 26 3 53 APl 3 53 3 10 WIinCC 2 1 WinCC 3 32 WinCC 3 35 3 3 3 3 3 1 4 4 3 76 3 5 3 10 3 83 3 87 3 46 3 60 3 53 3 15 3 15 4 11 3 30 4 11 3 69 WinCC 3 38 3 69 3 38 2 1 3 38 K 2 1 4 3 3 38 3 69 3
172. DB DB DB 2 4 1008 DB DB DB 8 DW 10 WinCC 10 DW 10 DB SIMATIC S5 WinCC DW 11 DW 12 DW 11 0 gt DW 11 1 gt 5 33 5 34 WinCC
173. WinCC C printf printf Printftt l am dd vears old r n 189e printf DAmpt d int char chanr WinCC C printf WinCC
174. WinCC WinCC Var_Exim exe S5 S7 STEP5 STEP7 WinCC STEP ph _zu1 SEQO WinCC JpCC S7 55 f sec WinCC WinCC
175. C C CA R C2 C f Dbiect Properties Buton Propertiss Events Peleasze left Miscellaneous Press right HI Property Topics Releaze right C C C C Edit actio ET Event Name Jeclenchementstanda include apde fap long _maintlchar ee PictureName charx lpszObjectName charx lpszProper L 1 x int iValue 0 iValue GetTagSDWord Test return iValue 4 4 4 C WinCC C C 2 1AF C
176. pliValue amp iValue int E lValue DIVSTLUE 5 int int ivYector 5s 4 39 WinCC C iVvalue iVYector 4 int iVYalues r1VeECctort d C C
177. WinCC fcti WinCC Siemens WinCCaplib 1 3 3 9 WinCC WinCC WinCC
178. forintf 4 113 WinCC C 4 12 2 2 WinCC fF 2 2 C lnclude apdetap h Old OncClickichars lpszPicturseName char lpsz0ObjectName char lpszProperi FILE pFile NULL char szFile _ MaX PAaTH 10 1nt iData float fData get project path 1t reoetProjectPathiszFile FALSE Printfi nError in GetProjectPathi r n Tet Create file name strcatiszFile Data tat DPEn file to read pFile topeniszF1ile r Check return walue ot fopeni It pFile NHULL Printfi nError 1in topent rr n rebtur rEad data tscant rpFile dd r nt r n amp iData amp tData tcloserpFile Set data GetTagoSDWordi S321 course_file 1 iData GetTagFloatrt F321 course_ file 1 tData Dutput in diaghnostics window printfi r nData read from file r n td r n tit r n ilData tData FAL
179. mcp exe WinCC WinCC CTAL SF7 WinCC WinCc Windows WinCC WinCC WinCC WnCC WinCC SQL Sybase SOL Anywhere WinCC WinCC Windows
180. WinCC C 4 4 WinCC Project_C_Course cc_9_example_02 PDL Poainters C int i1nt piVvalue int NULL 1 lint pivalue MULL int int
181. 3 46 WinCC WinCC 3 3 9 1 Windows pdl WinCC GraCS EE File Edt wewmw Tools Help sacs Folders Contents of C Configuration_hlanual Prolect_ EreatoPicturo
182. FILE fopen NULL fopen NULL NULL NULL NULL NULL NULL
183. DLL S7PMC API S7PMC DLL CS S7PMC DLL 5 63 1 5 64 PLC CPU PLC PLC CPU DLL S7PMC 32 rd_nr Sub Nr f10 1 2 PLC CPU S7PMC DLL rd alarm rd_nr rd alarm rd_nr DLL 0 1023 DLL DLL
184. gt R gt gt R gt C gt C C WW C InProc C i le Re C ye 3 3 3 WinCC WinCC CNASiemens WinCC 3 3 3 1 WinCC WinCC Siemens Common Stepr winCC aplib Bin 0 interfaces Dpe setup WnCCProjects
185. 1D C Solectlanguase MM_ Installed Languages Ee Cancel Franzosisch Frankreich 4 104 WinCC C 4 11 2 2 WinCC WO 2 2 C lnclude apdefap h voOld OnClickrchar lpszPictureName char lpsz0bjectHNHame char lpszProperi 1include file with the LinkTvpe definitions lnclude trigger h BODIL DREt char szProjectFile _ MAX PATH 1 CHN ERROR ErroOr HWND hwndPFarent MULL DM VERREEY dmYarFew LINEINFDG link We ee ee et a ed a a a a a a i i i a EEl1ECt tag 1t 1 DMoetRuntimeProjectiszProjectFile MR FAaTH Tl amp ErroOr FaLOE Printfi r nError in DMoetRuntimeProjectt rr n TH Error szErrorlerxt reEturL hwndParent FindWindowitHULL WII DUTSE 1t 1 DMohowvarDatabasetszProjectFile hwhndParent MULL MULL dm yarKewv Errory FALSE 1 Printfi r nError in DMShowvarDatabaser i r n tia r n Error SErrorTerxt TELUPLR a
186. HWND pWna int er Windows 7opaoowW Windows Gre aL MB8_YESNO MB_ ee MB_APPLMODAL Fe DYES DNO C uestion 3 Do you want to do something 4 108 WinCC C 4 11 5 5 fp 5 5 C include apdetap h Old OncClickichars lpszPictureName char lpsz0bjectName char lpszProperi pragma code tf comdlg32 d11 lnclude commdlg h Dragma coder BODIL PREt DOPENFILENANME ofn char szFilter Textfil
187. S 3 2 bs WinCC WinCC 3 2 1 WinCC WinCcC Windows Explorer 0 9 a a_
188. S5 DB DX DX 234 255 0 255 DW 0 1 2 Op 6 4 0p 7 Op 8 1 Op 2 9 1 0p 2 12 4 Op 2 El Op DB Op 1 2 3 4 Dorm ho mw fy DB NI pe pw vy DB ll2 DB pw Wid Sa i 0 CT i 3 8 DB II7 pb pw DB ls p pw Dx lj20 px pw DX jz px pw Dx De Dx 22 px pw a a ir DX DX I28 IDX pw i ee 82 Me js5 Me TT 36 Mw 45 PB SE en 0 a ER sr av BE 5 45
189. 1 11008 2016 2 loo8 3 oo oo 8 DB a DB DB DW 0 DB 1 DB DB od DB 5 2 3 11 WinCC
190. 11 Dh 12 Cy 11 FB 86 MESS CLOCK E 32 ASCIl ASCIl WinCC 4 WinCC FIFO FIFO 80
191. 3 20 3 29 3 20 3 44 3 18 3 30 C 4 19 3 17 3 53 S5 S7 3 53 3 53 3 53 3 42 3 73 3 47 4 19 3 30 4 19 3 78 3 32 3 3 Index 2 3 3 3 3 4 3 C4 WinCC 3 32 3 32 4 11 3 64 3 18 3 20 3 73 C 3 78 3 59 3 83 3 47 3 35 3 41 3 53 3 35 printf 4 11 3 3 3 5 3 6 3 2 3 87 3 13 3 13 3 46 3 63 3 32 3 13 3 16 3 30 3 30 3 64 4 31 3 38 3 44 3 3 3 53 3 32 3 38 3 53 4 31 3 1 3 17 3 17 3 20 3
192. 5 C include apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert Dragma code Kernel32 DLL BOOL GetCtomputerNamesiLFESTR ComputerNHame LEDWORD pdw3Sizce def lne MER COMPUTERNEANME LENGTH 15 Dragma coderY BOOL LRet FALSE Char EzComputerNHame Me COMPUTERNSME LENGTH 11 DWUORD WSILEE MAR COMPUTERNANME LENGTH 1 bhRet GetComputerNamesisz ComputerName amp dw Sice ACheck return walue If tbRet FB amp LSE Printfi r noomputerHName rr nUnknown Computer r n 1 return dizplav Project file printftit r ncomputerName rr ne r n szComputerName Windows DLL Kernel32 DLL BEOCOL Herx szCompuwrterName DWORD Windows GetComputerNameA
193. DW 3 DW 4 1 DB 1 3 1 1008 2016 4 2 1 DW 3 1 1008 DW 4 1 DW 5 DW 6 DW 7 2 3 4 DB DW 3 5 7 DW 5 2 DW 6 DW 7 3 4 DW 0 DW 5 DW 7 DB DB DB DB
194. DW3 12 5 29 DW 0 5 30 13 DW 0 14 0 8 256 255 DL DR DW 0 QLAE WinCC SINEC H1 FOF 0 DW 0 FIFO SEND SINEC H1
195. WinCC CS DLL WinCC CS CS WinCC API APlI WinCC API cc_9_example_10x PDL 4 75 WinCC C 4 8 1 1 RT API RT X Y 1 1 1 C include apdefap h Old OnClickichar lpszPictureName char x lpszo0bjectHame char lpszPropert BOUNL LRet FSBLSE
196. 5 1 4 3 ISOL ISQL WinCC SOL Siemens Common sqglany ISOL EXE SQL qba D s9 WinCC CS D SQL SOL select from systable select from gt gt unload table gt to gt gt gt drop table gt gt 5 1 4 4 WinCC Scope WinCC Sco
197. BYTE B8Y7E C unsigned char tvpedef unsigned char BYTE C C BOOL mr WinCC C 4 2 3 3 WinCC C ff WinCC WinCC WinCC WinCC WinCC gt fF 3 C lnclude apdetap h Old OncClickichar lpszPictureName char lpsz0bjectName char lpszProperi1 CHAR cHumber ElINEd 8 Lit walue SHORT zsNumber ElINEd lb bit walue LONG lHNumber ElINEd 32 bit walue BODL bHumber TRUE or FALSE BYTE LviHNumber AUNnS1Igned 8 bit walue WORD wHumber AUns1igned 1 bit walue DVDRD dwHumber UNnS1gned 32 bit walue cHumber 12
198. MIdSendMsg LInCLudE lt winccnrm h gt BOOIL WINAPI HLdSendMsSI RH_SEND_PROC 1ptnksgcsenad LFMSG SEND DATA STRUCT lprSendData DWORD dwNumData LFVYOID lpUser LPCHMN_ ERROR lpError pinMsgSend DLL PLC DLL ipSendData lpUser IpError WinCC TRUE API IpError DWORD dwNotify MSG_STATE_QUIT MSG_STATE_LOCK MSG STATE_ UNLOCK MSG STATE QUIT EMERGENCY DWORD dwData OUIT LOCK UNLOCK gt EMERGENCY ACK gt B71 5 3 5 3 5 3 5 4 5 3 5 9 5 3 5 6 5 72 DLL MIdReceiveMsg S7PMC DLL
199. S7PMC PLC S7PMC DLL DLL PLC S7PMC DLL S7PMC DLL PLC PLC ID DLL ID MSG _STATE_UPDATE DLL
200. WinCC C fF WinCC o i C He Project functions i i Standard functions nternal functions D C ff 33I9ning Parameters Function Name SetT agS DWiord Iong int Graphic objects Pictures WinCC C C TF
201. 5 61 WinCC 5 61 5 61 WinCC 5 61 WinCC 5 68 INTEL 5 61 5 61 5 61 5 68 5 61 5 68 5 68 5 61 5 61 5 68 5 61 5 61 5 68 Index 7 5 61 3 19 3 19 3 16 3 44 3 20 3 87 3 78 3 32 3 78 3 20 3 20 3 87 3 76 W 3 42 3 49 3 49 4 35 3 6 3 59 3 6 3 53 3 69 3 6 3 35 3 32 3 35 3 32 WinCC 3 53 WinCC 3 15 WinCC 3 32 WinCC 3 35 3 50 3 2 3 38 X 3 38 3 3 3 42
202. C ff 5 C C 1 C include apdefap h long _mainichar x lpszPictureName char lpszObjectName char lpszPropertyName 1l A long lReturnvalue 2 lReturnvyalue GetTagSDwordt S321 course test 1 3A return lReturnvValue 3 C C f long C psz Pictwre Name HpszObeciVamme HpszPropertVarmeh 1 ong 2
203. S7PMC S7PMC 18 re DLL S7PMC NRMS7PMC ID DLL S7PMC ID BSEND AR_SEND A AR_SEND B BSEND ID x 1D S7PMC AR_ID BSEND S7 R_ID S7PMC 00000001 A 0014 PdeSshowDialog include lt winccnrm h gt EQOOL WINAPI PdeShowDialogt LPYOID hwnd LPTSTR lpszarcyVarName DWORD dwarcVyvarNameLength LPFDM VARKEY lpvarkey LPCHMN_ERROR lpError Dh DLL DLL
204. DB 1 DB 13 2 DB 14 2 DB DB 15 3 DB DB 80 16 3 DB 1 DB 17 3 DB 1 DB 18 3 DB 2 DB 19 3 DB 20 3 DB DB 21 4 DB DB 80 22 4 DB 1 DB 23 4 DB 1 DB 24 4 DB 25 4 DB DB 26 4 DB 2 DB 3b 5 36 8 4 DB 30 gt 3 3 PC
205. L double i double Fag pwopp Type ID short Ctype EXCEL 7 0 8 0 prn txt csv 307 DLL DLL DLL DLL gt
206. COROS WinCC COROS COROS 1 coOROS molexte tx WinCC i WinCC WinCC WinCC
207. FUNC_ID_LOCK 0x00000001 FUNC_ID FREE 0x00000002 FUNC_ID_REGISTER Ox00000004 FUNC_ID_UNREGISTER Ox00000008 DLL DLL NormSetLanguage 1include lt winccnrm h gt EOOL NormSetLanguaget DWORD dwLocalelID LPCHMN_ ERROR lpError wLocallD WinCC TRUE FALSE API lpError 5 3 5 PLC DLL PLC DLL DLL DLL
208. Motor_T02 ActValue Motor_T101 ActValue Motor02 PDL gt 2 3 3 11 2
209. PLC DB DB DB DB DB WinCC S5 FIFO ge STEP 5 SINEC H1 mw Ts DW0 DW DW1 KY PLC CPU DW2 KY 0
210. WinCC Scope WinCC Scope Web Internet Explorer TCP IP WinCC Scope Scope WinCCDiagAgentexe SiemenslWinCCIWinCCScopelbin HTTP Scooe WinCC Scope j http Wlocalhost Scope WnCC WinCC WinCC Scope Microsoft Internet Explorer File Edit View Go Favortes Help I Aa ee Back Formwad Stop Refresh Home Search Favorites Mail Edit Welcome to WinCC Scope The WinCC Diacnosis Center Control Center User Bdrministrator Graphics Desiener Database Database Query SOQL Query Storage Authonsation
211. API PDLCSDe O leAppPW AP goto C fF C 1 WinCC C 4 8 4 4 CS API CS XX Y fF 4 4 C include apdeftap h Old Onclickichar lpszPictureName char lpszObjectHName char lpszProper 1 Dragma coder FDLCSAPI d11l include pdlcsapi h Dragma coder char szProjectHame _ MAX PATH char zePictureName cc 9 example lO0ex PDL char szObjectName lOField2 char szPropertvHName 2 5 1 Left Top VERIYEE wt VI_ ld int ivalus 50 130 Lt 1 CHNH ERROR Error get project nam
212. ID CC WinCC tvpedet BOOL t NORM SEND ROC LEDM VAR UPDATE STRUCT lpDmYarUpdate DVORD WW It LEVYOID LpUser LPCMN ERROR lpError 1 5 61 pDmVarUpdate ce es SET_VALUE WAIT_ID_NO SET_VALUE_WAIT WAIT_ID_YES pUser NormDLLStart pError WinCC i 2 FALSE API IpError a DIAL 0 DLL OG DLL NORMCAP_REEN 0x00000002 DLL DLL NORMCAP MSG 0x00000004 i _FREE_LOCK NORMCAP ARC_ 0x00000008 FREE_LOCK NORMCAP MSG 0x00000010 i _GENERIC NORMCAP ARC_ 0x00000020 GENERIC
213. 3 49 3 3 9 3 3 50 3 394 on 3 52 3 3 9 5 i 3 53 3 3 9 6 3 59 3 3 9 7 3 60 3398 000 3 63 33999 OV 3 63 3 3 9 10 3 63 3 3 9 11 3 63 3 3 9 12 3 63 3 3 9 13 3 63 3 3 10 3 64 3 3 10 1 3 64 3 3 10 2 3 69 3 3 10 3 3 70 3 3 10 4 3 73 3 3 10 5 3 73 3 3 10 6 3 75 3310 7 ope 3 76 3 3 11 i 3 76 3 3 11 1 3 78 3 3 11 2 3 80 3 3 11 3 i 3 81 3 3 11 4 3 82 3 3 11 5 3 83 CC 3 86 3 87 4 1 4 1 4 1 1 4 1 2 4 11 4 2 ee 4 19 4 2 1 1 C i 71 4 2 2
214. Demo wnf Mortor wnf WinCC Project_C_Course 1 WinCC C WinCC 708 couwrse_wiz_selected 4 118 7
215. WinCC HMI WinCC C WinCC C WinCC C WinCC Project_TagHandling Project_CreatePicture WinCC WIinCC Project_WinCCEditors _ Project_UserArchive WinCC V5 WinCC
216. prect NULL CC_RECT rect printf rect prect gt prect printf 4 68 Example 2 Coordinates 10 10 20 20 Coordinates 10 10 20 20 WinCC C 4 7 3 3 WinCC WinCC CC_HEC7 fF 3 WinCC WinCC WinCC WinCC R
217. 3 32 3 49 3 32 3 50 3 29 G 2 2 3 10 3 41 3 76 3 19 3 19 3 16 3 13 3 42 OCX 3 44 SOL 3 32 WinCC 3 32 3 53 3 42 3 32 3 59 3 70 3 73 3 73 3 6 3 6 3 53 APl 3 53 3 73 4 11 3 73 4 4 3 32 3 63 4 11 3 38 3 82 4 4 3 14 3 19 3 35 WinCC 4 4 Index 4 3 64 3 69 3 69 3 41 3 10 Alpha 3 10 Tab 3 10 3 69 3 16 3 46 3 13 3 80 3 6 3 10 3 13 3 16 2 2 2 1 H 3 20 3 47 3 6 3 29 3 17 3 83 3 47 3 6 4 11 3 16 3 5 3 76 3 64 3 70 3 70 3 18 5 61
218. WinCC 3 retwym 4 5 WinCC C C 4 6 1include apdefap h vold OnClickichar x lpszPictureName char lpszObjectName char lpszPropertyName lx long lvValue XXX lValue GetTagSDWord S321 course test 1 cetLeftrilpszPictureName lpszObjectName lValue C C f pszPictureName szObectVamel DszPropertyName C bszPropertyName 1 ong 2 WinCC X
219. WinCC 3 3 1 WinCC 3 16 3 351 1
220. WinCC V 1 10 EXECL EXCEL WinCC WinCC WInCC WinCC EXCEL 7 1 EXCEL ID 0
221. bhet szLUserVame DWORD Windows GetUserNameA a Windows NT szUWserName Windows GetUserNameA WinCC C 4 10 Windows API WinCC Project_C_Course cc_0_startpicture_00 PDL cc_2_keyboard_01 PDL Windows WinCC API WinCC Windows API Windows API Windows API Windows API DLL WinCC API DLL WinCC DLL
222. 10983 1 1 12000 710000 DB DU 12000 10000 2000 16 0 16 1 4 2000 16 1 4 504 252 1 504 252 252 0 1 252 0 12000 5 2 3 4 4 4 DW 8 DW 12 5 6 63 1 63 16 63 16 1008 DW 115 14 013 12 01100887 6 5 4 8 2 1 10 1 0 0 0 0 0 0 1 0 0 0 0 0 0 10 0 10 3 0 0 00ooooo pp pp 4
223. 1D 3 3 9 8 3 3 9 9 3 3 9 10 3 3 9 11 3 3 9 12 3 3 9 13 7 m7 PAT7 as Aes
224. DOm1 t1f 4 54 4 5 6 6 switch case switch case 6 6 C include apdefap h Old OnClickichar lpszFictureName BYTE bvyvalue Iet valus to check bvyvalue GetTagBytet U081 course Loop 1 Printft r nExample bP r n swlitch tbvyvalue Case 0 do something printfti bvy yalue break Case 1 do something printfti byv value break CaSeE 2 CaEE 3 Case 4 Ho something printfi byv values break detault do something printfti byv value break I 0 1 2 3 and dr n char lpsz0bjectHName dd BB dep wm WinCC C ffF char lpszProperi 8Y7E bwe WinCC Ger7ag9Bytely WinCC byvBwe switch case be O7mpt1 case
225. s9 SAL Anywhere ODBC Configuration Data Source Name Example_OTrt _ok Connection Information Hel User ID Help Password Server Name lt default gt Database Name Example_OTrt Database Startup Database File D Handbuch Example_ O01 EXAMF Browse Liocal CNetwork Custom Dptions additional Connection Options Translator Name No Translatory tl Microsoft Applications Keys in SQLStatistics Delay AutoCommit until statement close SQL Anywhere Windows Windows ODBC yy 5 6 MSExce MSOuery 4
226. DLL IpError WinCC FALSE API IpError EOOL x PDE ARCHIVE CALLBACKY LPTSTR lpszarcyarNanme double dovVvalue SYSTEMTIMNME lpstTime DWORD dwF lags DWORD dwData LFVYOID lpUser LPCMN_ERROR lpError ji IpszArcVarName 1D doValue ipstTime dwFlags D dwData lpUser IpError WinCC FALSE API IpError 5 73 5 3 5 7 5 3 5 8 5 74 S7PMC S7PMC DLL
227. WI 1006 16 22 16 7 1005172716 227716 6 2 SUMAN 5 2 3 6 5 5 2 3 7 5 5 24 5 2 3 8 5 2 3 9 5 2 3 10 5
228. WinCC Samples Template Templatelnit Templatelnit Connection7a9b e 8 10
229. WinCC DDE OLE ODBC ActiveX Windows WinCC VisualC Visual Basic WinCC HMI WinCc WinCC WinCC Microsoft 32 Windows NT 4 0 PC WinCC WinCC 2 1 2 1 1 WinCC WinCC WinCC WinCC WIinGG Windows Excel wo ACCEeSS WinCC WinCC
230. 3 10 gt HMI 3 13 hnStar 5 59 IF 4 47 Informix 2 2 Ingres 2 2 MS Excel 3 60 MSOuery 5 4 OCX 3 76 3 76 3 32 ODBC 2 1 OLE 3 44 Oracle 2 2 Printf 4 11 Scope 5 9 WinCC 5 9 SmartTools 3 32 SOL 3 38 3 53 3 32 3 38 Sybase 2 2 Tab 3 69 UNIX 2 2 UPS 3 41 VDE 0199 3 12 Visual 2 1 Basic 2 1 C 3 86 While 4 47 WinCC 3 52 APl 3 53 1 10 3 60 3 15 3 3 3 53 3 52 3 29 3 6 3 44 3 17 3 44 3 6 2 2 3 10 3 2 3 32 3 32 3 42 3 35 3 32 3 34 3 2 3 6 3 38 Windows 3 13 Index 1 Windows NT 3 13 Wrebuild 3 32 Wunload 3 32 A 3 32 UPS 3 41 WinCC 3 44 WinCC 3 32 3 32 B 3 15 3 15 3 10 3 41 WinCC 3 42 3 41 2 2 3 18 3 20 3 20
231. 3 12 3 6 5 13 3 6 3 16 3 38 2 2 API 3 53 2 1 3 73 3 75 3 6 3 14 3 63 3 87 2 2 3 18 3 63 3 47 3 63 3 6 3 6 3 64 4 3 3 59 3 59 3 83 4 31 3 35 3 29 3 69 3 1 3 69 3 38 3 35 3 87 Z 3 87 3 87 3 53 Scope 5 3 3 53 3 32 3 53 3 53 3 26 3 78 4 39 C 4 39 3 32 3 32 3 19 S 3 19 3 17 4 4 Index 9 3 19 Z OCX 3 86 OLE OCX 3 44 3 46 3 46 3 15 3 15 3 38 3 6 3 49 4 39 3 3 3 5 3 2 4 39 4 39 3 1 3
232. C vol WinCC C C C WinCC R C Obpect Properties EE Status Display StatusDisplay Properties Ewents 2tatus Display Geometry lt 0 Duynamic Dialog Basic Pictyure Basic Pictyre Yes Basic Picture Tag Flash FIcture No Flash Pictyure Flash Pictyure Tes Flash Picture I Flash FIcture No Flash Pictyure hiedium Flashing Flash No Delete fF C ff C 9pdqefap h C f C ff C 1p C 1PP C
233. ee 3 4 ID 0 ID Ia alee N ba
234. 3 13 Index 8 3 46 3 46 3 32 2 1 2 3 44 3 32 3 20 S38 3 47 3 3 3 5 3 47 3 87 3 60 3 87 Coros 3 60 S5 S7 3 53 3 32 3 30 3 17 3 81 3 38 3 42 3 50 4 11 3 18 3 44 4 11 3 34 3 50 3 2 3 2 3 35 3 32 3 15 3 38 3 12 3 42 3 60 3 60 3 15 3 32 3 15 3 60 3 70 3 70 3 60 3 12 3 47 3 6 3 2 3 6 3 30 3 32 3 73 3 69 3 69 3 49 3 3 3 17 3 15 3 49 3 3 3 3 4 47 Do while 4 47 For 4 47 While 4 47 Y 3 6
235. 5 2 8 1 5 S5 56 4 DX 237 PLC DX 237 DW 0 DW 255 WinCC OB 1 oPAa FBBY NAlE EECUTE DBNR kkF e3r DBD ki Dw FMP kkY 6b d 5 2 9 S5 SIMATIC S5 S5 SIMATIC S5 S5 FB 86 MESS CLOCK S5 80 DW 190 FB 80 SYSTEMFB 80 SIMATIC S5 S5
236. NGraCS GraCs ini Zip ws1 _ ini EE sim csv Xt emf lg HB XIS WinCC doc WP 3 3 5 WinCC Windows HMI WinCC HMI Windows Windows NT WinCC PC WinCC Windows Start Enmu Programs Accessories NT 4 0 Windows WinN7TlProfWeslAll UserslStar MenulProgramslStartup WinNT Windows NT R WinCC bin
237. S5 S5 SIMATIC S5 S5 S5 S5 S5 5 2 1 SIMATIC S5 WNCCIY1ST S5D S5 FB B87 STARTUPFB 135 FB83 IMBLOCK J699 FB80 DB80 System DB 512 Al ro 1 S5 FIFO My 2DB 1024 WinCC 1 DB 512 512
238. ithis wizard can onlvy be executed on the customized obiject motor BEGIN PROPERTY SCHEME Hand VT BOOL Selection YT BOOL EFD PROPERTY SCHEME BEGIN DYNANICS DynyiscroupName GEDUD name DynyiecDynamicHame A dvnamic name NULL oool6 bmp AA u3e the default icon NULL i no help atrindg is UUSEE DT DODDtL IDIZ NULL MONIENErAate TONShoweneratelnto JCR TRIGSGERS NULL NULL Vs Fs ETD DYNAMICS NULL NULL WinCC C
239. 2 i 4 23 4 2 3 3 WinCC i 4 25 4 2 4 4 C 5 WIneCc aaa 6 CHIEs NT SE 0 SG 4 2 SE 9 de EO 5 WinCC 1 while 2 do while 3 for 4 5 if else 6 switch case 1 i 2 nn ee 1 nn SE 2 Sa WinCE ee 4 WinCC WCGC RAP oo 1 RT 2 RT ne 3 CS 4 CS 5 CS 6 CS I BR te ee 1 i 2 3 4 4 9 5 4 9 6 4 10 4 10 1 4 10 2 4 10 3 4 10 4 4 11 4 11 1 4 11 2 4 11 3 4 11 4 4 11 5 4 12 4 12 1
240. C 3 3 11 5 C 1 FD Pi 30 30
241. FillVector BOOL FillVvectoriint pivVector DVDRD dwoize init 1 Check recelved polnter 1t fpivVvector MHULL return FBLSE fill vector tor ri 0 idwSize 1 piVector i randi return TRUE 1 FNVector int 8OOL nt 27c1 4 61 WinCC C 3 C 1ncCclude apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert def lne VECTOR SIZE 5 define int wector int ivVector VECTOR SIZE 1 Printfi r nFExample 3 r n till vector it rrFillVvectoriiVvector VECTIOR SIZEY FALSE 1 Printfe
242. R Obrect Properties x ep Picture WwWIndow Pieture Window2 Properties Events Picture Window Geometry Miscellaneou dapt Picture No Pictyure Name picty 5_ TiB _ BeiaAnc Picture Difset 0 EE Picture Dffset 0 CE scaling Factol 100 Picture Cycle Upon Change 250 ms S00 ms 1s bs 10s 1 mn 5 min 10 min 1h User Cuclel User Cycle 2 User Cucle 3 Lser Cyucle 4d User Cyucles 322 walue Rangel walue Range2 32 warla_but_00 Upon change 2 C C Proiect functions tinclude apdefap h lIong _maintchar lpszPictureNMame char lpszObjecthame nternal functions Standard cycle Standard cycle Homn Md Picture Dbyect Geormetry Dperator Control Enable Yes Uthorization lt No access protection gt Display Update Cycle D
243. 1 DB 1 1 DB 2 1 DB 2 DB DO OO Ol 4 20 DW 10 DW 20 100 DW 0 DW 255 101 DB 81 DB 85 DB 88 DB 91 DB101 DW 0 DW 255 DB 100 DW 0 DW 20 1 1 DB 88 DB 89 DB 88 10000 11007 DB 89 11008 11199 1200 1 0 1199 1 DB DW 252 2 DB DB 88 DB 89 DW 252 1200 1008 192 192 16 192 76 0 2 2 J MN NI DWo DW1 T0000 DW2 DW DW3 DWwT T1018 DW2
244. 3 38 4 11 5 2 3 38 3 19 3 46 S 3 30 3 30 3 64 3 44 3 44 3 83 3 26 3 19 3 46 3 6 322 3 30 3 26 4 4 3 13 3 30 3 82 3 82 2 2 3 44 5 2 3 64 IO 3 69 3 10 3 64 3 64 3 30 3 64 2 3 3 2 3 42 3 46 S5 S7 3 53 3 15 32 3 34 3 13 3 16 2 2 2 2 3 32 2 2 5 10 C 5 10 2 2 3 42 3 46 MI 2 5 11 SQL 5 9 MS Access 5 7 MS Excel 5 4 Scope 5 9 3 32 4 19 4 19 4 19 3 15 3 15 T 3 5 3 10 3 64 3 10 3 64 4 47 4 47 3 44 DLL 3 53 S7 PMC 3 87
245. BODOLPdeSendhvles age NDRRl SEND_PRCOC NDRR SEND_PRCOC NDRh_SENDC_PFROC NDRk_ SEND_PROC PdeSsendhisg fpLOY BODL PdeRecelive FDE ARCHME CALLBAACE PDE _ ARCHME CALLBACEK PDE_ARCHME_CALLBACK FdeReceive PDE CS BOOLPdeShowbialdy NormDLL CS PdeShomDialog 5 59 5 3 3 WinCC DLL API 5 3 3 1 DLL DLL DLL LibMain DLL DLL DLL DLL DLL 5 60 LoadLibrary
246. WinCC GetTag fF 4 GetTagRect 1nclude apdefap h 1Include file which contains deftinition of structure tagce_ RECT Old GetTaghRectichar lpszlagHName 1 PCC_ RECT prect MULL A MAR ElZE Of struct tag name 260 ME IE Of element name 7 char seElementlag 2b7 abD0 7 allocate memory for CC RECT structure prect Svellallocisizeot tcte RECTYY Check return value of Svelalloc i 1t fprect HULL return NHULL eee Create tag names and get tag values printtiszElementTag se Lett loselTagHName prect gt iLeft GetlTagSDWordiszElementlag sprintfiszElementTag Ss Top lpszTagHame Prect gt 1i1Top GetTagoDWordiszElement lag printtiszElementTag E Right lpszlTagNamey prect gt iRight GetlTagSDWordiszElementTlag sprintiiszElementlag ss Bottom loszlagName prect gt 1i1Bottom GetTagSDWiordiszElementTag A A TEtuUurn address of structure as wold return fwolid x prect 9p9ef3p h t99CC_RECT
247. 4 111 WinCC C fclose fclose tclosetpF1ile printf fprintf0 fprintf printf fprintf fprintftrpFile wd rv nif n Value dVYalue fscanf fscanf fprintf 4 112 WinCC C 4 12 1 1 WinCC fF 1
248. TAB gt TAB gt Alpha Tab gt Windows gt 5 Tab SHIFT Tab Alpha Tab jTab BEE11 SetCursor Mode alpha tab 7
249. fF IP w3d Log txt zsh MFRED 1 edundancy Zip ws1D File name Textdatei tat Files of type Tewtries Cancel 5 6 7 GetFileNamelj WinCC C 4 12 WinCC Project_C_Course cc_9_example_13 PDL C C fopen fopen FILE pF1ile NULL PFile fopent Ci Test tat r
250. r nExample 3 a a a a a a ACCEESE Via SEDErat pOlNnter Polnt to the first element piElement amp iValue 0 printftr cStartaddress ar r n piElement tor tilndex 0 ilndexi5 llndext Printfrt Indexz d t Value Yd r n 1ilnder xrpliElement ilndex printfif r n Y ACCEESE without seperate CoOlnter printftt Startaddress ET 1Valuel tor tilndex 0 ilndexi5 ilndext printit Inders dd t Value dd r n 1ilnderx riValuet ilnderx 5 jnt mt Poex Wt piElement NULL piE ement OM0t1 4 43 WinCC C py ement
251. 1 DCF77 0 DB 1 DX DCF7 0 QSYN DB DW DCF7 1 QSYN DCF77 DB DW UDAT DB DW DCF7 1 ZCLOCK DB DW DCF7 1 S5 DB 80 DW 190 S5 ZCLOCK DB 80 DW 190 192 FB 86 MESS CLOCK UDET DE DW FE 386 MES TIME ZIINME DE 80 DW 190 PC 4 5 2 11 WinCC ID
252. DW DW3 Il 11000 11199 11000 17000 10000 1000 1 WH 16 1 4 62 1 4 DW252 WMENHIMBF DW 253 16 6 E3282 MW DB 59 S39 DB 88 DB 89 DB DB 89 5 40 11000 1717199 10000 717199 1J WU 16 1 4 74 1 4 300 300 252 48 WME M MMB DW 49 16 15 1 DB 59 DW 253 8 15 1 DW 5 DW 9 DW 13 DW 49 0 15 1 3 3 DB 90 30000 30010 DB 91 i 11 3 2 0 10 WWA IND 11 16 0 VN A
253. Flashing spply on Full No Miscellaneous pply on Ext No Clear on New Yes sl Tag Delete 3 3 2 2 Obpect Properties apy Ed Button lButons5 Properties Events Button Action Mouse Mouse ction Keyboard Press left Mscellaneous Pelease Property Topics Press right Geometry Release right es En Styles Lirect Connection Font Delete Flashing Miscellaneous Filling 3 3 2 3 JS eName
254. WinCC WinCC 3 3 6 WinCC 3 3 6 1 WinCC WinCC WinCC WinCC HMI
255. WinCC DLL DLL DLL 90 3 3 2 DLL NormDLLStart DLL DLL NormDLLStart lcCclude winccnrn h BOOL NormDLLStarti LEYOID lpUser BOOL bHModeRuntime PHORM STERTSTRUCT pcls POMN ERROR lpError lpUser bModeRuntime DLL TRUE FALSE DLL pcis IpError WinCC NORM_SEND_PR DLL Co PLC pfnWriteRwData 1 2 3 DLL VO dwAppID
256. Windows Windows SelWMmooww7extf WnCC C Course Windows SetWindowPos 0 0 1024 x 768 WinCC C 4 10 2 2 cc_0_startpicture_00 PDL mardi 21 septembre 1999 C 1lnclude apdefap h Char malnichar lpszPictureName char lpszu0bhjectHame char lpszProperi1 Dragma coder kerneld2 d11 YOID GetLocallTimerLPSYSTEMTINE lpSvstemlime Dragma Coder SOYOTEMTINME wel1lime Char 2Time b LEtLocalTimertevellime sprintfiszTinme U2d 2d svalinmne wHour evellime wiMinute return sz211ime Windo
257. 2 DW 3 DW 2 DW 3 DW 3 DW WinCC 5 18 D2 3 1 DB 80 DW EE ee 1 1514131211109876543210 2 1514131211109876543210 al 3 1514131211109876543210 DW13 5
258. 3 3 2 WinCC 3 3 2 1 WinCC Obpect Properties lio Fi 0 Field1 Properties Ewents 120 Field Geometry Fisld Type Dutput O0000 S32 waria_but_ D0 DataFormat Decimal Dynamic Dialog Dutput Format 993 399 C Action
259. 8 Bit Display 8 Bit Display 12 0 Field 5 4 2 2 5 4 2 3 5 4 2 4 Ee In Ed Slemens wmECLC Text 5 4 2 5 hieterl_0 100 heterl_ hdin hd a 5 80 Digital Output 03 D4 eT Text Passiword Error heter2 hlin hl a heterd hlin hd as 5 4 3 Dperation 0 Buttons 3D Buttons Language i Controller IncrDecrButtons Keywboards 5 4 3 1 3D rrow Down rrow Le Double Arrow Left Double Srrow Right Ratrls 3 3 Parallel Brrows Le Single Brrow Right Single Brrow Up 5 4 3 2 1 Sliderl Sliderz rrow Right Double arrow Up Parallel Brrows Right Standard Button Sliderd hiagnifying Glass Single amp rrow Down Text Text with Lamp Sliders Double Arrow Daomn hatris 1 x3 Single Brrow Left 5 81 5 4 3 3 arm Loggingd arm Loggingl rchrwes0 L Ri nm D Lamera Change key Set Rrght Chinese Star cet LE ft Exit RuntimeD Ewit Runtimel Help Hom icknowledgmentd Horn scknowledgmentl ry Plant_Coni 0 D uo eh CL PN Language Switch
260. Error in FillVector r n TELUPN printftit Vector Elements for 1 0 1 lt VECTOR SliE 1 printfr d iVvector 1i printff rn Y VEC7OR_S ZE ector wt VECTOR_S ZE hn1 FNVectorl vector FNVectorl f J prnif 4 62 Example 3 Vector Elements 18467 6334 26500 19169 1572 WinCC C 4 6 4 21F
261. Example 1 char short long int unsigned char unsigned short unsigned long unsigned int 128 321768 2147483648 21A7AB36A47 255 65535 A4294967295 A294967295 WinCC C 4 2 2 2 C 1 2 2 C 1lnclude apdetap h void Onclickichar lpszPictureName char lpszdmbjectHame char lpszProperi CHAR cHumber E19INed 3 bit walue SHORT Humber A199ned 1 bit value LONG lHumber ElINEd 32 bit walue INHT iHumber ElINeEd 32 bit walue EBONOL LbNHumber TRUE or FALSE BYTE bwviHumber UNSE1IINed 8 bit walue WORD wiHumber UNnSl1Ined le bit walue DWORD dwHumber AUNnESIINEd 32 bit walue UINT uiHNumber UNE1INed 32 bit walue cHumber 28 sHumber 3276b8 lHumber 2147483648 lHumber 2147483647 Dutput in diagnostics window printfi r nEszample 2 r n printfr CHAR t t d r nSHORT t t d r n LONS wt tad rr mlINI ttod ve cHumber EHumber LNHuamber 1 Number biHumber
262. FALSE API pError 5 67 5 3 4 5 5 68 DLL PdeSendMsg DLL DLL TagLogging_ARCHIVE_CALLBACK DLL S7PMC PLC PLC WinCC PdeSendMsg Include winccnrm h gt BOOL YYINAPI Pdesendhisagt NORM_SEND_PROC lpfinCallBack DORD dwFunctionld LPSz_ARC VAR_NANE lpszArcvarName LPDYWORD pdwData DORD gdwMumarchwararme LP
263. GetFWNedVectorl printf 4 64 Example 4 Vector Elements 11478 29358 26962 24464 S5705 ee WinCC C 4 7 WinCC Project_C_Course cc_9_example_04 PDL Ee Structures int float struct ExampleStruct lnt iEl ement tloat fElement struct ExampleStruct
264. It tbhRet FBALSE Printff r nError 1n DMostRuntimePFroecti r n tie r n Error szErrorlerxt TELtUTIL displav Project file Printftt r nProjectFile r nie r n szProjectFilel B00L bfhet szProjectFile CMN_E RROR API DMGetRuntimeProfject szProjectFile NULL AP DMGetRuntimeProject ProjectFile WP aMinccCS0 Project Project L CourseiProject L Lourse MLP 4 89 WinCC C 4 9 2 2
265. Limit values IY Display Keyboard Alignment JJ Online Help System Up Vl dialog box Set Parameters JI First data record Do JI Previous data record ay MY Next data record lV Last data record Display walue at this position All keyboard functions Key Key Combination Cancel pply Help INS JENTER lesc WinCC WinCC
266. OQ 7 EE KY Os 6 BB QD og 0 Hr 2D Di oo CB MO 37 3 5 87 5 4 4 5 5 4 4 6 5 4 4 6 1 5 88 EE 4 ISA Iisa_s55a lt 03 08 5 4 4 6 2 Isa_s55b ee 5 4 4 6 3 ISa_S55C 0 OE 5 4 4 6 4 ISa_S55d 5 4 4 6 5 Isa_y32a 0 Da Dr e D2 Or 03 08 03 08 04 09 05 5 89 5 4 4 6 6 5 4 4 6 7 5 4 4 6 8 5 4 4 6 9 5 90 Iisa_y32b RE es OE Isa_y32c h 0 OE Iisa_y32d 0 A De Isa_y32e ED 03 08 03 08 a mm 4 9 05 05 5 4 4 6 10 isa_y32f y 1 02 03 04 05 J D6 07 08 09 10 5 4 4 6 11 Isa_y329 Ol 02 03 04 05 D6 07 08 09 10 5 4 4 6 12 Iisa_y32h DD On D2 03 4 5 4 4 6 13 Isa_y321 ol D2 03 D4 05 06 07 5 91 5 4 4 7 5 92 5 4 4 8 uve Ke Ns ove Hs Hs Nd mi Ga gt XL sx HH Ks as ys XK RR FX 5 93 1 5 4 4 9 gt 1 16 2 5 94 2 AN 5 4 4 10 03 01 Nn hn 29 2 2 28 2 ap 5 95 5 96 ActiveX 2 2 Alpha 3 10 ANS 4 3 Basic 3 86 3 63 3 53 C APl 2 2 Coros 3 60 DDE 2 1 EN 60073 3 12 FIFO 3 10
267. TRUE bvHumber 255 wHumber kb5535 dwHumber 4294967295 uiHNumber 4294967295 Dutput in diaghnostics window Pr1iiitfr BOOL vt tam r nnB IE tt tm r ny ORD tt DWORD vt to EE RULINI tt bHumber EvyNHumber wiHumber dwHumber uiNumber CHA4R SHORT LONG NT 8Y7E WMWORD DWORD UW INT 800L TRUE FALSE BOOL printf 4 23 WinCC C 4 24 Example 2 CHAR 128 SHORT 32768 LONG 2147483648 INT 2147483647 BOOQL 1 BYTE 255 ORD 65535 DWORD 4294967295 UINT A4294967295 tyoederf
268. WinCC gt It 5
269. case 4 55 WinCC C 4 56 WinCC Project_C_Course cc_9_example_05 PDL Functions WinCC void
270. 17 3 26 C 3 20 3 20 4 11 3 70 4 11 3 20 4 111 4 111 3 60 4 39 3 34 3 34 4 11 3 44 D 3 6 3 46 3 3 3 53 3 32 2 3 17 3 53 3 17 3 44 4 65 C 4 65 3 29 3 80 3 29 3 82 3 81 3 30 3 20 3 30 WinCC 3 29 3 29 3 81 3 30 3 81 4 11 4 11 4 11 3 52 4 3 3 19 3 35 3 20 4 11 WinCC 4 4 5 2 3 17 3 6 3 60 3 60 3 30 3 49 3 46 3 6 3 41 F 4 4 3 53 3 53 3 42 WinCC 5 7 3 47 3 53 3 14 3 63 3 6 3 6 3 53 4 19 4 19 Index 3
271. 3 3 2 1 WinCC 0 ey 2 B33 3 2 3 3 5 3 2 4 nn 3 6 3 2 5 se ea 3 6 3 2 6 3 10 3 2 7 Me 3 12 3 2 8 3 3 3 2 9 B14 3 2 10 3 15 3 2 11 3 15 3 3 WinCC 3 16 3 3 1 3 16 3 3 1 1 OO 3 17 3 3 1 2 3 18 3 3 1 3 3 19 3 3 1 4 3 20 3 3 1 5 3 26 3 3 2 WinCC i 3 29 3 3 2 1 3 29 3 3 2 2 3 30 3 3 2 3 3 30 3 3 3 WinCC 3 32 3 3 3 1 WinCC 3 2 3 3 4 3 34 3 3 4 1 WinCC 3 3 3 3 5 WinCC 3 38 3 3 6 WinCC 3 41 3 3 6 1 UPS 0000 3 41 3 3 7 3 42 3 3 8 WinCC 00500 3 44 3 3 9 3 46 3 3 9 1 3 47 3 3 9 2
272. 4 12 2 4 12 3 4 13 4 13 1 4 13 2 5 6 1 2 5 1 3 5 1 4 50 1 4 1 5 1 4 2 5 1 4 3 5 1 4 4 5D 1 4 5 5 1 4 6 5 1 6 2 D 2 1 5 2 S23 Da D2 32 5 2 5 2 3 4 5 ns 4 95 6 4 96 VIndOwWws RU 4 97 1 Windows 4 98 2 i 4 99 3 4 100 4 101T 4 102 EMT nn 4 103 2 105 SC CD OO 4 107 4 4 108 5 et 4 109 4 111 1 4 113 2 4A 114 3 4 115 De 4 117 4 118 4 119 EO 5 1 5 1 IO 5 2 5 2 WIN D 23 5 4 MS Excel MS Ouery 5 4 MS Access 5 7 SQL sweet 5 9 WinCC Scope 5 9 C 5 10 5 11 5 12 5 13 S5 OA 5 14 5 15 DS CO 5 16 S5 SIMATIC S5 i 5 16 5 19 5 20
273. 5 5 C 1lnclude apdefap h Old Onclickichar lpszPictureName char lpsz0ObjectHame char lpszProperi pragna coderf PDLCSEPI d11 1lnclude pdlcsapi h Dragma coder char zeProjectName MAR PATH char szPictureName cc_ 9 _ example_l0ex PDL char szObjectNHame lOFleld2 LINE INFD link CH ERROR ErroOY get project name it itDHoetRuntimePFrojectrszProjectHName _ Mai PATH l amp Error FALSE 1 printfr r nError 1in DMoetRuntimePFrojecti rn TI Error szErrorlerxt FELHULLT 1initialize SPI intertace of the graphics des1gner if 1 PDLOSOGetOlesppPtriFaLSE amp Error FALOEY Printfi r nError in PDLCSGetolesppPtri rn er Error sz2Errorlerxt return a OPEn Clcture without displaving 1t 1t 1 FDLCSOpenEsziszProjectName szPictureName 1 amp Errory FALSE 1 printfi rnError 1in PDLCSOpenErzi I IVn Ee r n Error SErrorlert Joto OPEN_ FBAILED set link infto struct link enumLinklwpe BEBUBRT LT VARIEABLE DIRECT link dwevcle 0 strcpvilink szLinkName U81 course _ wincc 1 EeEt ll 1ink it 1 FDLCSSetLinkiscPFrojectHame szPictureName sz0bjectHName Outputvalue lInk amp Error FALSEY 1 printfr r nError 1in PDLCSSetLinkr vvVn se r n Error SErrorlert Joto BCTION FAILED EAVE Dlcture it 1 FDLCSSaverszProjectHame szPictureNam
274. DE DB mo Eh RE 34 PC Ew 5 DB 0 4 DB ee IE 20 ee gt 41 9 QT 0 CO DT DW 9 DW 10 Tm aar DW 10 Tm DW 10 rm DTT DW 9 DW 10 a6 DD 47 D 47 W9 DW 1 48 9 0 48 DW 10 0 49 49 Ey 0 Ce DW 14 2 IE HA C gt J PLC A 15 PU CPU 1 5 2 6 S5 5 2 6 1 S5 ri 10000 11199 11000 11199 30000 30010 3 1 PLC 1 CPU 1 135U DB 80 i ek DB DB
275. Gace Desktop SizelType Modfed ati gt My Computer I picty_5_window_26 pdl 25KB WinCC Graphics Document 11 26 98 1 36 PM 3 3 Floppy A pictu_5_window_25 PDL 14KB WinCC Graphics Document 11 26798 1 36 Ph 9 Cl Le pictu_5_window_24 PDL 17KB WinCC Graphics Document 11 26 98 1 38 PM Configuration_Manual pictu_5_window_23 PDL 15KB WinCC Graphics Document 11 26 98 1 36 PM eeae oure Ee pictu 5_window_22 pd 34KB WinCC GraphicsDocument 11426 98136PM I pictu_5_window_21 pd 14KB WinCC Graphics Document 11 26 98 1 36 PM pe Lt pictu_5_window_20 pd 17KB WinCC Graphics Document 11 26798 1 33 PM Librany ll pictyu_5_window_19 pdl okB WinCC Graphics Document 11 26 98 1 35 Ph EL Meld pictu_5_window_18 pdl 38KB WinCC Graphics Document 11 262398 1 35 Ph MY COMPUTER picty_5_window_17 pdl 17KB WinCC Graphics Document B818 99 12 16 Ph Packages pictu_5_window_16 PDL akB WinCC Graphics Document bo14793 11 38 amp hl Pas pictu_5_window_15 PDL 2pbkB WinCC Graphics Document BA1 4 39 12 20 Ph Pass pictyu_5_window_14 PDL 12KB WinCC Graphics Document 11 267298 1 35 Ph Pde I pictu_5_window_13 PDL 12KB WinCC Graphics Document 11 26 98 1 35 Ph Prt I pictyu_5_window_12 PDL 11KB WinCC Graphics Document 11 26 98 1 35 Ph Pr
276. HF 1 2 1 2
277. Internet WinCC HomePase Siemens AG AQD PTi D2 Sietmens Butomation 5 3 5 1 4 5 1 4 1 MS Excel MS Query WinCC SR 1 Microsoft Excel 97 MS Excel MS Ouery MS Excel MS Ouery MS Excel MS Query Get External Bata k A al Create New Query sede EE Babaryelp erelties Ey eI SralneLel sn Choose Data Source New Data Source gt 5 4 MS Excel MS Query 2 WinCC SQL Anywphere oba D s9 Connect to SOL Anywhere Xx Password Cancel Data Source Help Server Name Database
278. OE 1 1008 2016 2 00 TW 7 CE ha DB 81 PC 1200 5 4 17 710 71200 7171 5 05 S5 PLC 100 30 5 DJHVN 700 500 DW 500 DWIM256 DUS DB 1 95 DB FIFO FIFO DB 82 FIFO DB 85 FIFO DB 88 DB 89 1008 1 1 DB 90 3 3 DB 51 11 DB 91 40 3 5 37 5 2 6 2 5 2 6 3 5 38 DB FIFO DB FIFO 0 1
279. PC PC PLC PLC S5 5 S5 2 4 1 1514l13121111g 9 8 715 514312 110 w DB x 2 3 3 5 25 5 26 DB DB
280. WINCG PICNHEME SECTION STERT svntarz jdefine FPFlicNamelnsact1ion nexst PICID 1 WINCC PICHNANME SECTION_END PictureName return 0 4 14 WinCC C C fF Wnt j 0 1fPp 1 C 1F 3 6 printf
281. dizplav tag election SetTexzttlpszPictureName TagHNHame dmnvYarKev szName link LinklIvpe BUBRT LT VARIABLE DIRECT link dwcvcle 0 strcpvitlink seLinkName dmVarEeyv EzNHNamel PDLRTSetLI1InErD lpszPictureHName TagVvalue OutputVvalue In HULL MULL amp Error tigger h WinCC qm larKey 7K API DMGetRuntimeProject 4 105 WinCC C Windows FnqWinqowl API DHAMSpowtyerDal1abase1 WinCC o77YBmVame WO C Tags ProiectZIP SERVER1 Proiektierhandbuchv
282. loszLoglerxt fclosetpFile return TRUE 1 FAL GetProjectP3th strcat1 fopenl forntf GetlLoca TimesStrin9 4 115 WinCC C 3 C include apdetap h voild OnClickichar lpszPictureName char lpsz0bjectHame char lpszProperli 1t rtLoglerxtiGetTagChart ll81 course_ file 1 Y FALSE 1 printfi r nError in LogTextt rr n C fF WinCC Log1TextW WinCC 4 116 WinCC C 4 13 WinCC Project_C_Course
283. prect 1iBottom PCC_RECT prect NULL Get799Rect WinCC Get7agRectl PCC_RECT Gert7agRecitl NULL WinCC WinCC prntf prect Example 4 Coordinates 0 0 0 0 SetTagRect Gel7a9
284. r nExample TY printfi The mean value of 1f lf and 1f tr mm dyvalue 0 dvYalue l1 dyYalue 2 dMeanvalue gowb le ooube MeanValueVector printf 4 60 Example 2 The mean value of 126 2 23 9 and 45 7 65 3 WinCC C 4 6 3 GOCOL ff Wf 3 WwwTINP to the ddress rea
285. 096 x 4096 17 1024 x 768 VGA TFT 640 x 480 1024 x 768 1024 x 768 800 x 600 PC 65536 Courier Arial MS Sans Serif System C3
286. 1 3 1 Index 10 3 12 3 82 3 50 3 81 3 76 3 26 3 38 3 38 3 10 3 13 3 14 3 3 3 14 3 17 3 17 3 1 3 38 3 35 3 30 2 2
287. 1 FIFO DB FIFO FIFO FIFO FIFO FIFO FIF0O FIFO DB FIF0 DB DB 255 DW DB 10 h 4COP DW 2 DW2 1 DW2 0 DW2 0 WinCC
288. 1 0000001 Output in diagnostics window printftit r nExzample 4d r n printfti float ti2 17ft tsizeot iftloat td r n double ti2 17ft tsizeot double t d r n tNHumber slzeoft float dNumber sizeot tdouble A foat douwble i float douwble printf s zeoW Example 4 float 1 00000011920928960 Sizeof floail double 1 00000010000000010 Sizeof double 8 4 27 WinCC C 4 2 5 5 WinCC 5 C WinCC C float double WinCC
289. 1nt ilInderx printft r nExample Tt A AACCESSE TECtor elements tor filndex D0 ilndex5 1lndext printfti Inderx d t Value dm 1ilndexz iValue ilndex 1 5 nt WI Poex prinif or Example 2 Index 0 Value 10 Index 1 Value 20 Index 2 Value 30 Index 3 Value 40 Index 4 Value 50 4 42 WinCC C 4 4 3 3 3 3 C include apdetap h wold CnClickichar lpszPictureName char lpsz0ObhjectHNHame char lps2Properl int iVvaluse 10 20 30 40 50 Int iIlnderx int x piElement NHULL Printft
290. 3 C include apdefap h voOld OnClickichar lpszPictureName char lpszObjectName charx lpszProperl1 BYTE byOperation DWORD dwvyvaluel DWORD dwvyvalue2 DWORD dwResult read tag values dvwValuEl GetTagWordt Uili6b1i course op 1 dvwValuE2 GetTagWordt Ulibi course op 2 get desired operation byOperation GetTagBytet U81i course op _ 1 switch bvyOperation 1 BND CasE 0 dwResult dwVyaluel amp dwVyalue2 reak OR case 1 dwResult dwValuel dvwValue2 reak NaND case 2 dwResult idwVyaluel amp dwyalue2 reak NOR case 3 dwResult fdwValuel dwyYalue2 break EXOR Case 4 dwResult dwValuel dvwValueE2 break AAA default return Write result SetTagWord U1l6i_course_op_3 WORD dwResult 8Y7E DWORD WinCC WinCC gwla lwue1 dwl3lue2 WinCC byOperation byOperation owy2 e7 ove2 qwResult switch case
291. 3 6 tloat fvValue2 23 4 float fFResadd tloat fFReszoub float fFResiul tloat fFResDlw thRhesBdd tvaluel tvalue2 add ftResSub fvVvaluel fvVYalue2 eubtract ftResHMdul fvaluel fvYaluea2 AAmultiplw ftResDiw fvVYaluel fVYalue2 divide Output in diagnostics window Printfi r nExample 1 r n Printfr lt ltr n fyvaluel tValue2 tiResddd printfi Rlf lt lf r n fvaluel tfvalues2 tResSuby printfr lt livr n fyvaluel tVvalue2 tiResMdul printfie Rlf 1t lft vr n fvaluel fVvalues2 thResDiwvy F foat float Pmzt Example 1 123 6 23 4 147 0 123 6 23 4 100 2 123 6 23 4 2892 2 123 6 1 23 4 5 3 4 33 WinCC C 4 3 2 2
292. 73 3 70 2 1 3 16 2 2 3 6 3 6 3 73 3 13 3 64 3 29 3 69 3 10 3 42 Index 5 3 32 3 59 3 50 3 52 WinCC 3 35 3 52 L 3 13 UPS 3 41 3 76 3 87 3 53 3 53 3 76 CP525 5 12 3 80 3 83 3 13 4 31 4 31 3 83 3 70 3 2 2 1 3 76 2 1 3 50 2 1 3 6 3 86 3 6 4 1 N 3 19 3 19 3 35 3 35 Index 6 3 38 WinCC 3 38 3 32 3 38 3 19 3 19 3 16 3 6 3 6 3 12 3 73 4 19 3 42 3 42 3 73 3 47 3 2 3 26 3 2 3 2 332 3 70 R 3 64
293. 8 sHumber 32768 lHumber 2147483648 EEt wincc tags GetTagSBvter S081 course tag_l1 cHNumber cetTagSWordt S11 course tag_l1 ssNumber cetTagSDWordi S32 course lHNHumber bHumber TRUE byvHumber 255 wHumber b5535 dwHumber 4294967295 EEt wincc tags GetTagBitt BINT course tag_l1 SHORTbNumber cetTagBvter U9 course tag_l1 bviNumber cetTagWordit Ul course tag_l1 wiHumber SetTagDWordr U321 course tag_l1 dwHumber WinCC WinCC Set7ag WinCC WinCC Sert7ag WinCC Get7ag9 BOOL jnt Set7a9Bit1 Set7agBity SHORT bN
294. C S7 Protocol Suite S 7PMC S7Chn ini J 3 88 WinCC C 4 WIinCC C WinCC C WinCC C
295. CM_v5winCC ProjektesGALLAUZ GUNTHER Vo 8 whinCC Tags Data source Filter 4 106 inCC Tags Name re Paametet List of all tags U08iLorqa_bar 1 Unsigned 8 bit value Interne Wariable Internal tags UD8_org_script_1 Unsigned 8 bit value CCPeriMon Files Loop 0perator TagLoggingRt Test winCC wiizard i Cancel Help 2 WinCC C 4 11 3 3 3 C Windows ZF include apdeftap h Old OnClickichar lpszPictureNamse char lpsz0bjectHame char lpszProper HWHD hWnd HULL hyund FindWindowiHULL Wince CLOuUrse HESageBoxihWnd VincCeC CCourse ralsed unknown Exeption l l Error MB oRK MB ICONSTOP NMB APPLMODELY HWND Mo Windows FinqWindow Windows MessageBox
296. DLL 5 69 5 3 5 5 70 n DLL S7PMC S7PMC EV_ID WinCcC S7PMC 10 DLL MIldReceiveMsg S7PMC DLL MIdRecelveMsg 1linclude lt winccnrm h gt EOOL WINAPI MldRecelivelMdsgt HSG_ RECEIVE MSG_ PROC lptnMsgRecelve LPFDM VAR UFDATE STRUCT lpDiMVar pUser LPCHMN_ERROR lpError IpfnMsgReceive DLL
297. DM_YARKEY lpvarKey L lbser LPCMN_ERROR lbpError pfnCallBack f DLL DM INI INI dwFunctionld FUNC_ID_REGISTER lpszArcVarName IpdwData FUNC_ID_REGISTER DLL Tag Logging_ARCHIVE_CALLBACK dwNumArchVar Name lpUser IpError WinCC FALSE API IpError 5 3 4 6 PdeSendMsg dwFunctionld
298. Database File ID Y Handbuch Example_DO1 EmAM Browse Start command C Siemens iCommon sqlanydber Switches Autostop Database 2 Microsoft Applications Keys in SQLStatistics Delay AutoCommit until statement close Bb 5 CS WinCC CC_ R WinCC Sybase SOL Anywhere 50 8 SQL Anywhere ODBC dba D
299. ECTION_START HWWINCC PICNAME_SECTION_END EE _C 1 WinCC C 1 WinCC C 4 1 2 C WinCC C C C C
300. Hmectf Set7agfectW WinCC cc_9_example_04 PDL WinCC C 4 8 WinCC AP WinCC Project_C_Course WinCC API cc_9_example_10 PDL DAN oO winCCaP WinCC WinCC API WinCC WinCC WinCC API WinCC ODK WinCC API WinCC API WinCC ODK WinCC 4 74 WinCC C WinCC API DLL DLL
301. LCSAPILI d1l1l 1include pdlcsapi h pragma coder lnclude tile with the GUILD deftinitions include pdl guid h char szProjectName _MaR PATH char szPictureName cc 9 example lO0ex FDL WwWIth PDL DVDRD dwFlags 1 do not displav plicture CHMN ERROR Error char szObjectNHame lAOF1leld2 GUID guid GUID IOField object tvpe ID field IgEt CroJeEct name 1t 1 DMoetRuntimePFrojectrszProjectName _ MR FATH l amp Error FALSE 1 1 printirt r nError 1n DHMoetRuntimeFrojecti I r n Ti Error SErrorlerxt i 1nitialize FI intertace cf the graphics des1gner It PDLOSGetnleBppcPtriFhaLOE amp Error FALSE 1 printfirt r nError 1n PDLCSoetnlesppFtri nse r n Error seErrorlert rEtuUrn OPEn Picture without displaving 1t 1t 1 FDLCSOpenExstszProjectHName szPictureName dwFlags amp Error FALSE Printft r nError in PDLCSOpeEnErzr I ne r n Error szErrorlerxt goto OPEN FAILED CreEate cbhject 1t 1 FDLCSMNewObjectExziszProjectName szPictureName amp guld sz0bjectHName amp Error FALSE 1 Printft r nError in PDLLONewoObjectErit ne r h Error szErrorlerxt goto BCTION FAILED EAVE DlICtuUre 1t 1 FDLCSOSaverszProjectHName szPictureName amp Error FALSE printiit r nError in FDLLSSavel iVI Vn Re r n Error SeErrorlerxt goto BCTION FAILED actualize the pi
302. Picture name without extension PDL char szPictureName cc 3 example lex char sz20bhjectNHame 1AOF1ield1il APIropertyv twvpoe VERITYEPE wt VT_I14 ANEW DroOpeErty walues int ivalueLeftt 60 nt ivaluelTop 20 EITIOT StruCcture CHN ERROR Error i a a eR a a Set the propertys and check the return values bRet PDLRISeEtPropErxriD szPictureName sebjectHNHame Lett vt hivValueLeftt HULL HULL 0 NHULL amp Error if rbRet FB amp LSE Printfi r nError 1n FDLRTSetProOpPERE r n tea rn Error SeErrorlerst brRet PDLRISStPropErziD sePictureNamne zo0bjectHame Top vt divaluelop NULL NULL 0 NULL amp Errory if rbRet FBLSE Printfi r nError 1n PFDLFRTSetProOpPERE r n tea rn Error SeErrorlerst A A BOCOL me API PDL 4 76 WinCC C WARTYPE
303. ProjectHame szPictureNanme amp Error dizconnect from the PI interface of the graphics des1gner OPEN_ F amp ILED FDLCSDelOlesppPtriFaLSE API DLL API DHMGetxzuwpzmePoecth API PDLCSGetO leAppPt APl API PDLCSOpenEX API PDLCSEnymObjListl OpbectCa ack1 API API PDLCSClosel a API PDLCSDe OleAppPt API 4 87 WinCC C 4 9 4 88 Objects in picture cc 9 _ example 10ex PDL cr 9 example 10ex HOField1 HOFielde WinCC Project_C_Course
304. S AP ff 6 ObjectCallback include pdlcsapi h include file with DBJECT INFO STRUCT def in1ition BoOoOL Objectcallbackiwvwoid x lpData wvwolidx item polnter to OBJECT INFO STRUCT LPOBJECT_ INFO STRUCT lplntoStruct JUILL Etore recelived addreszsz of DBJECT INFO STRUCT lpIntoStruact LPFOBJECT INHFO STRUCT lpData Check recelived address It rlplnfosStruct MULL 1 printftt Error in Objectcallbacki rn return FALSE ACCESS Structure element Printff Rae r n lolntoStruct sobjectHame return TRUE pd lcsapih OBJECT_INFO_STRUCT WinCC ODK OBJECT_ NFO_STRUCT
305. SIEMENS WInCC 6AV6 392 1CA05 0AH0 C79000 G8276 C164 01 1999 9 WinCC SIMATIC SINEC STEP ESiemens AG 1994 1999 C79000 G8276 C164 1 1 1 1 T 2 WiRCCE 2 1 2 1 WinCC 2 1 2 1 1 WinCC 2 2 pp WinCC 2 3 nn 3 1 TE 3 1 3 2 3
306. Value nt Wnt NULL prntW a we7 pWintf 3 we2 Example 1 Address 0 Value undefined Address abA918 Value 126 Address abAd9fc Value 23 4 41 WinCC C 4 4 2 2 fF 2 2 C include apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert ECLlare and 1initialize 1int wector int ivalue 5 10 20 30 40 50
307. WMWAR2WNINMMN 0 1 4 14 BW wo ka DW3 0 0 30000 DB 90 1 0 571 917 30010 DB 90 171 710 571 97 DB 30000 OP S S EV VEZ DN 30010 VER MN 10 2571 5 DW S50 DB 91 90 91 5 41 5 2 7 SIMATIC S5 S5 SIMATIC S5 SIMATIC S5 DB DX P O SIMATIC S5 WIinCC OB1 DB DX
308. aR CoOUINMITA 100 Y 0 continue EEt value ot progress bar CetWidthilpszPictureName ProgressbBar 11intiriPFrogressbar 2 71 EEt Drogress terxt sprinttiszProgresslert dii 1ProgressDarl CetTexztt lpszPictureName Progresslert srProgresslerxt 1i1ProgressBar MAX_COUNT nt Couwnt ProgressBar SZfrogress ext we 17RUE WinCC C Coumtk MAX_COUNT break Cownt comzb Ue SetWWd
309. andard uncil 7 Function j a 3 Internal functior j 4 ctions Delete Search fles Properties C f 2poe1Bp nc lude poe1ap a 1lnclude apdefap h int HMw Froject_ Functioniint 1FirstParam BOOL LSecondParam return 0D WinCC C C 5 Create action D Pe Ertlior Hy Fropect EFurnctica dees Fct Tet
310. ar x lpszobjectNHame char lpszPropert double dVyvaluel 126 2 double dVYValue2 23 9 double dVvalue3 45 7 double dMeanVyValue Calculate mean value dMeanvalue HMeanvaluetrdyYaluel dyYalue2 dValue3d ADOutput into diagnostics window printfit r nExample Ta printfr The mean value of lf lf and lf Tt nm dvyvalusel dVvalus2 dVvalued dMeanvalue douwble qowble MeanV3 ue printf 4 58 Example 1 The mean walue of 126 2 23 9 and 45 7 65 3 WinCC C 4 6 2 2 1F 2
311. as metafile Sawe in 6raC5 FIIE name em Sawe as tyupe Enhanced Metafiles emf Cancel Dpen as read only Library P YwwinCEC_Prolektevpictu 00 Global Library Last Change Project Library Symbols 3 3 9 4 GraCS act C
312. ate of Last Change Cursor hiode 3 24 Dbpect Properties EE Picture WNndow Picturewindow Properties Ewents Picture windom Atribute Geometry hiscellaneouy Display Update Cycle Slzeable howable Border Title Can Be hiasimized Can Be Closed Foreground Seroll Bar dapt Slze dapt Picture Pictyure Name Picture Dffset Picture Offset Y Scaling Factor Tag Prefls Server prefis Heading Static ES Upon change No No Update Cycle No No Cancel No icicleio clo 32D 3 3 1 5 happy new year 1997 59 E 3 26 es 250 1 1 5
313. bols Conweyors CIN30600 E Sumbols S58 Sumbols 0 isa _s55a isa_s55b 0 isa _s55c jsa_s55d 0 jsa_y32a sa_y32b 0 jsa_y32c ja_y3ad 0 jsa_y32e a_y39 a 29 sa_y32h ee al Miscellaneous1 hiscellaneouse hotors Shut Df Dewces Shut Dff Yalwes Valves 5 5 4 1 B3 hiotorOnd B5 MotorbDD5 5 76 Matorbb1i MotorDDz oh TD Motorbbb Motorb0y MotorbD3 5 4 1 2 5 4 1 3 PC PLC Pumpbbi Pumpbb5 Pump009 PLL Sr 400 FumpbbDz Fumpbbpb Fumpb1nb Screen vinCC1 Pump003 Pumpbbr Pump011 Screen WiinCC2 Fumpbbd4 Pumpbbg D 77 5 4 1 4 5 4 1 5 5 78 1_ 2 4 1 51 3D Pipe Elbow 1 30 Pipe Hornzontal 1 31 1 52 2 12 2 SS 30 Pipe Elbow 2 30 Pipe Wertical 1 3 2 1 5 3 30 Pipe Elbow 3 1 2 2 1 9 4 1 4 1 a 30 Pipe Elbow 4 3 1 4 2 1_6 Tank2 5 4 1 7 walwe1 Valve2 D5 4 1 8 walwei Walve2 Tank3 Valved Valved Tankd lt alwved Valved Bb 9 5 4 2 Displays ne Displavs Meters scaling Text Fields windows EE TT 9 Bs
314. calelDs ucSetIDArrav oiee tdwoetLocalelD Error It rbRet FB amp LSE printfte nError in DMShowLanguageDialogi rr n tev r n Error SZErrorTerxt rEturn EeEt rt language brRet SetLanguagetdwietLocalelD It DREt FBLSE Printftt rnError in SetLanguagelt I r n return ID Windows FnqWindowW API DMShowLanguageDia log9l DD 1D qwGetLocale D 4 103 WinCC C API DMShowLanguageDialog9 FALSE CS RT Setlanguagel
315. cled User Cycle5 3 351 2 2 2 2 3 4 4 5 5 10 5 WnCC 1 5 General Information Update Cycles Hotkeys WinCC provides some update cycles that you can choose hb ser Cycle1 oo List of the update cycles of this project Cancel Help 200 100 10
316. cture which contains the created object Ctualiceunbjecter CloseE plcture ECTION FAILED FDLCSOClIosSerszProjectHame sezPictureName amp Error disconnect from the BPI intertace cf the graphics des1gner OPEN_FB amp ILED FDLCSDeldNleBpcpcPtriFhaLSE ch WinCC C AP DLL p9 _guw 9h szProjectNWame PDL RT GU D API DMGetRuntimeProject szProiectName C API PDLCSGelOB4ppPlh AP APl
317. ctureName char x lpszobjectNHame char lpszPropert define CC RECT tructure CO RECT rect IEad clement walues of wincc structure tag rect 1Left GetTagSoDWordi STRiI course ztr 1 Left rect 1lop GetlTagSDWordt STRi course str_l1 Top rect 1Right GetlagSDWordi SITRi course _ str _ 1 FRight rect 1Bottom GetTagSDWordi STRi course _ str 1 Bottom Printfi r nExample 3 r n ACCEEE Etruct elements printfr cCoordinates Yd Yd Yd Yd r n rect 1Leftt rect 1i1Top rect 1R1ight rect 1Bottom CC_RECT rect CC _ FEC7 WinCC rect 4 1 O WinCC printf rect Example 3 Coordinates 0 0 0 0 4 70 WinCC C 4 7 4 4 WinCC
318. dd r n 1Reshand CovW 9V9 we sq9rt 3bs ran9l printf 4 37 WinCC C Example 5 123 6 raised to the power of 3 1888232 3 Square root of 123 6 11 1 Absolute value of 24 2 Apseudorandom number 41 WW B c_bib 2 Project functions 3 Standard functions Internal functions 3 allocate cbib HE ctype math memory stdio stdlb string time 4 graphics 3 tag 3 wincc 4 38 173
319. dvnamic uaindg theyr n TeatrEucture tadg r nia ry Char DvnWissrouplame Char DvnyisDwvinamicName Char DvnWyisToDooptioni Char Dvndiscseneratelnto El 4 119 WinCC C 4 120
320. e amp Error FALSE 1 printfr rnError 1n PDLCSSavet IVI VnAe rn Error sz2Errorlerxt goto BCTION FAILED actualize the picture which contains the created object actualilzednbjecter Close plcture BLTION FAILED PDLCSCIoOSersProjectHane PictureHane amp ErroOr disconnect from the BPlI intertace of the graphics des1gner DOPEN_ FBAILED FDLCSDeloleBppPtriFaLSE 4 84 WinCC C APl DLL API DMGetRuntimeProjectl API PDLCSGertO leAppPW AP API PDLCSOpenEX VK PDLCSSetLinK API PDLCSSavel Actwal zeObjects API PDLCSClosel API PDLCSDe OleAppP1 AP WinCC C 4 8 6 6 CS AP C
321. e link HULL MULL amp Error FALSE printfit r nError in PDLFRTISetLinki rn ie r n ErrOT ZETTDTTEE 1 tgger h L NKINFO LINKINO link CMN_E RROR nk Link7ype 8WBRTLT_WAR ABLE_DI RECT qwCycle 0 SZL KName WinCC C API PP7seWmk API W
322. e 1t rfDMoestRuntimeProjectisProjectHame _ MAR PETH TL amp Error FALSE 1 printfr r nError 1n DMGoetRuntimePFrojecti rn AT Error ssErrorlert rEtuUrn 1nitialize BPI intertace of the graphics des1gner It FDLOSOLetOleBppoPtriFBLSE Error FALSE 1 printfr r nError in PDLCSGetnlesppPtri rn se rn Error szErrorlerxt return OPEn Plcture without diszsplaving 1t 1t 1 FDLCSOpenEsziszProjectName szPictureName 1 amp Errory FaALSE 1 printfr rnError in FDLCSOpenErsi iVIVN Se r n ErrOTr SEErrorlert goto OPEN_ FAILED AEEt Oropertws for i 0 i 2 i 1t 1tEDLCSSetPropertvExiszProjectHame szPictureName sO0bjectHame sz2PropertvHame i vt 1valuetl 0 HULL Error FALSE 1 printfr r nError in PDLCSSetPropertvErzt I na rn Error szErrorlerxt AEAaAVE ClCture 1t 1 FDODLCOSaverszProjectHame szPictureName amp Error FALSE 1 printfi r nError in FDLiLSSavet IVI Vne r n ErrOTr SEErrorlert goto BcCTION FAILED actualize the picture which contains the created object BCtualicenbjectear Close plcture ECTION FAILED FDLCOCl oserszProjectHName sePictureName amp Error disconnect from the BFPl1 interftace of the graphics desl1gner ee FDLCSDelOleBpcpPtriFaLSOE 4 82 WinCC C APlI DLL
323. es trxt B81l1 Files Char pee char szF1lle _ MAR PATH 1 char sz1InitialDir _ MAR PAaTH 1 CC otn lStructSize sl1zZeot OPENFILENAME Ctn hwndoOwner FindWindowiHULL WintCt CLCoOurse tor tpse szFlilter psz CDSEz if t psz pEE 0D Ctn lpstrFilter zzF1llter otn lpstrFile szF1ile Ctn nMasFile PATH 1 GetProjectPathisezlnitialDiry it function fails init1ial directory ie otn lpstrlnitialDir szInitialDir Lhet GetOpenFileNamer otny It tbhet FALSE printfi nError 1in GetOpenFileNamer I r n return printfi r nSelected File Fatht Name ne r n ofn lpostrF1ile Windows DLL comq 932 OPENAFILENAME ofn ofn ofn Windows GelOopemHFeName o 4 109 WinCC C 4 110 GFN_OPEN GFN_SAVE C
324. ine SND_FILENAMNME 0x00020000L def ine SND ASYNC Ox0001 pragma coder BOOL bRet FALSE char szProjectPath _ MAX PATH char szSoundPath _MAX PATH GetProjectPathiszProjectPath sprintf szSoundPath YsSound s szProjectPath 1pszSoundFile bRet PlaySoundlszSoundPath NULL SND_ FILENANME SND ASYNC If tbRet FALSE MessageBeep WORD 1 959ef9p h Windows DLL wihnmm DLL szSown9P3 Windows PByrsSsowpoWf Windows MMessageB5eecf
325. lseE do something eelse switch case Switch case case case case break default case switch 1 Case 0 do zomething break Case 1 do zomething break default A do zomething default break WinCC C 4 5 1 1 while while 7 1 C lnclude apdeftap h vo1ld CnClickichar lpszPictureName char lpsz0OhjectHame char lps2Properi Aloop count lint iCount 0 Printff r nExample 1 r n while loop while titCount lt 5 do something printftt Executed loop ICount Yd r n 1iCounty 1iCount printft Exit loop ICount d r n ICount 1 nt iCount while Cowmt 5
326. mExcecute SOL archive sdql C include apdetap h wold Onclickichar lpszPictureMame char lpszObjectMName char lpszPropermtyMName char path CMSIENENSWCEomMmonmsaLaM saL gq hb ce char parameters UID DBAPYWD SQOLDBN CC Project_ 9r 10 el_09 53 27R char action read DAMInComProjectyarchry sal char Exportarchrwe 200 sprinttfExpormtarchive Ss 5 SPathParameters actionmy FrogramExecyute fExpormarchiye bs ee pa 1SOL exe parameters SQL UID ID DBA PWD HY SOL DBN ODBC CC R Windows ODBC DSN gction 3rchive sg9 SQL Exporthrchives ProgramExecutel
327. me WINCC TAGHEAME SECTION STEART Evntars detine TagHamelnact1ion DMTagHName define S32I OURSE_ TEST 1 S421 _ course test_1 neExt Ta JID WINCC THRENAME SECTION ENDL WINCC PICHEME SECTION STEART Evntars detine FicHamelnact1ion PictureName deftine Ce 0 STARTETLTURE 00 cc 0 startpicture _ 00 PFd1l next PicID WINCC FICHaANE SECTIDON_EHND SEEtTESSDVWUDzOIS32I_ LOURSE TEST 1 100 OpenPicturerttcec D0 STARTPICTURE 007 return 0 C 3 C f C fF a C WinCC HWINCC TAGNAME_SECTION_START NMVCGC 7AGNAME_SECTION_END C AF WinCC define 32 COUWRSE_TEST 1 WinCC 32 _couwrse_test_ 1 C ff WinCC MVCC PICNAME_S
328. nk API cc_2_exampoe_710xPDL VO 1 CS WinCC C 4 8 3 3 CS API CS WO 1F 3 3 C 4 80 include apdeiap h wold OnClickichar lpszPictureName char lp sz0bjectName char lpszProper PFDLESAPI dll contains the graphics desil1gner cs tunctions pragma codet FD
329. nn a a z A Z _n 0 9 00 99 cours_00 mcp pictu_01 mcp WinCC A WinCC 3 2 8 WinCC WinCC WinCC WinCC
330. pe WinCC Scope Windows WinCC Scope Siemens WinCQWinCCScopeabin WinCCDiagAgent exe Scope WinCC Scope 1 http localhost Scope WinCC WinCC CS CC RR SCL SQL SQL WinCC SOQL SQL 5 9 5 1 4 5 C WinCC Progra
331. r lpszPictureName char x lpszobjectHame char lpszPropert declare external tag Extern int erxt iNumber deftine static tag static 1int ztat iNumber 0 ADOutput in diagnostics window printfi r nEszample bb r n mMOUSECL1ICkSE Sl1nceE DroOJEct was started dd r n MOuSECclicks Since plcture was Opend dd r n eERt 1Number sEtat iNumbery ext_W Wumber C stat_Wumpber WinCC C C 1 printf ext_iNumber stat_iNumber Example 6 mouseclicks since project was started 1 mouseclicks since picture was opend 1 4 30 WinCC C 4 3 C
332. rojects WinCC WinCC 3 3 4 1 WinCC oo ee WinCC WinCC WinCC Cours_D1 Cours_D0 330 pdl gif wmf emf Default pdd Ap_pbib h Library pxl rpl rp1 WinCC
333. sage Line General Parameters Font Toolbar separation Lines Line Properties tw horizontal Line Title I wertical Shorten Cell Content Column Properties 5 Colurmn Title Selection ee Mo Selection Ce 5 Change Column width Line Shaorten Title Auto Scrolling E Cancel Pply Help JR Pos1 3 71 DMs Display process message window Display short term archiwe Display long term archive bcknowledge Central Signalling Device lelt Single acknowlest iii aa eyeallurie pLT Ee ne 3 3 10 4 3 3 10 5 WinCC WinCC
334. tSyne pictu_5_window_11 PDL 12KB WinCC Graphics Document 11 26x98 1 35 Ph Redundancy ll pictu_5_window_10 PDL 200KB WinCC Graphics Document 11226 98 1 35 Ph Ssm pictyu_5_window_09 PDL 11KB WinCC Graphics Document 11 26 98 1 35 Ph Textbtb pictu_5_window_08 PDL 10KB WinCC Graphics Document 11 26 98 1 35 PM User Archive pictu_5_window_07 PDL 10KB WinCC Graphics Document 11226 98 1 35 Ph 4 ns pictu_5_window_06 pd 16KB WinCC Graphics Document 11 26 98 1 35 PM dd es I pictyu_5_window_05 pdl 16KB WinCC Graphics Document 11 26 98 1 35 Ph said Le pictu_5_window_04 pd 18KB winCC Graphics Document 8 18 99 11 58 amp M A mirhH Fn na md 13KR Vn rsnhine Nnrm mont 11J2R6Jop 1 36 Phd oblect s 3 B2MB Disk free space 1 38GB 7 Dictwe Do dd AC aC9 3 47
335. th ProgressBar Set7ext Pooess7ext sprintf printf WinCC C 4 5 5 5 if else if else 5 5 C include apdefap h Old OnClickichar lpszPictureName char x lpszobjectNHame char lpszPropert BYTE bvyvalue get walue ti check bvyvalue GetTagBvytet U081i course loop 1 printft r nExample DT It rbwvyvalue lt bY Ho something Printfr DYVSLUE lt OD r n 1 do something printfrt bvyvalue Y GT 1 8Y7E byVa we WinCC Get7a9Bytely WinCC byValue fe se byValwe
336. uTfi HG Tm Errarisl DCT WinCC C lt R f f Global Script wzlP SERWwER1AProiektierhandbuchsCM 3 Prolect functions Standard functions Lopy nsert Celete Find in hles Properties WinCC WinCC C I Prolect C_ Course MCP gsccs1 pas 1lnclude apdefap h lnt gsca amp ction wold WINCEC TRGNANE SECTION STEART vntax define TagNamelnsction DHMHTagHName nerst Tagl D 1 WINCC TAGHENE SECTION ENLD
337. umber Set7a9Bit SHORT 1Ybecast WinCC C foat nt lHNHumber iint fHumber WinCC C WinCC Set7ag Get7a9 WinCC C 8 BYTE 16 WORD 32 DWORD WinCC C 4 2 4 4 C C 4 4 C include apdefap h woOld CnClickichar lpszPictureName char lpszobjectHame char lps Properl tloat fHumber ea bit double dNumber Abd bit fHumber 1 0000001 dHumber
338. umber sHumber ll Number 1 Number ucHumber 255 uzHumber 5535 ulHumber 4294967295 uiHumber 4294967295 A Output in diagnostics window Printfir unsigned char tiu r nunsligned short tiuu r n UNnsEl1gned long tiu r nuns1igned 1nt tiu r n ucHumber usNumber ulNumber uiNumber C char ong short nt Pt 4 21 WinCC C 4 22
339. winCCSeope WScripts WinCC WinCC icensebak WinCC WinCC_Sstart_01 log WinCC WinCC_Sys_01 log WinCC jenno log S7 WinCC WinCC ivan Wn Report Wincc Windows 0
340. ws DLL Kernel32 DLL SYSTEMTIME sys7ime sz777e hh mm Windows GetLoca TWmel sysT7ime hh mm sprintf C C 1s 4 99 WinCC C 4 10 3 3 WinCC Windows 4P cc_2_keyboar9_07 PDL 71 Basics WINCC and windows I 2 winCC aPI CC_PlaySound 4 100 include apdefap h vold CC_ PlavSsoundichar lpszSoundFile pragma codet winmm dll BOOL PlaySoundtLPCTSTR lpszSound HMODULE hiHModule DWORD dwSound def

Download Pdf Manuals

image

Related Search

Related Contents

                  LINEAR TECHNOLOGY LTC4267 Manual  

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.