PAX_n画面打开时的脚本.docVIP

  • 9
  • 0
  • 约7.65千字
  • 约 8页
  • 2017-03-10 发布于天津
  • 举报
PAX_n画面打开时的脚本.doc

PAX_n 画面打开时的脚本 #include apdefap.h void OnOpenPicture char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName // WINCC:TAGNAME_SECTION_START // syntax: #define TagNameInAction DMTagName #define ApcRT_Stat RT_Stat #define ApcRT_Start_Stop RT_Start_Stop #define ApcProjectPath ProjectPath #define Apc_pic_win_no pic_win_no #define Apc_pic_no_1 PA1.pic_no #define Apc_pic_max_1 PA1.pic_no_max #define Apc_pic_no_2 PA2.pic_no #define Apc_pic_max_2 PA2.pic_no_max #define Apc_pic_no_3 PA3.pic_no #define Apc_pic_max_3 PA3.pic_no_max #define Apc_pic_no_4 PA4.pic_no #define Apc_pic_max_4 PA4.pic_no_max #define Apc_pic_no_5 PA5.pic_no #define Apc_pic_max_5 PA5.pic_no_max #define Apc_pic_no_6 PA6.pic_no #define Apc_pic_max_6 PA6.pic_no_max #define Apc_pic_no_7 PA7.pic_no #define Apc_pic_max_7 PA7.pic_no_max #define Apc_pic_no_8 PA8.pic_no #define Apc_pic_max_8 PA8.pic_no_max #define Apc_pic_no_9 PA9.pic_no #define Apc_pic_max_9 PA9.pic_no_max // next TagID : 23 // WINCC:TAGNAME_SECTION_END // WINCC:PICNAME_SECTION_START // syntax: #define PicNameInAction PictureName #define Apc_Navigation_top Navigation_top.pdl #define Apc_Navigation_bot Navigation_bot.pdl #define Apc_Navigation_bot_start Nav_win_bottom_start // next PicID : 4 // WINCC:PICNAME_SECTION_END BOOL bRet FALSE; char szProjectFile[_MAX_PATH+1]; char* psz NULL; CMN_ERROR Error; int pic_win_number; extern global_nav; //get the project file *.mcp bRet DMGetRuntimeProject szProjectFile,_MAX_PATH+1,Error ; //check return value if bRet FALSE printf \r\nError in DMGetRuntimeProject \r\n \t%s\r\n,Error.szErrorText ; return; //search for last backslash psz strrchr szProjectFile,\\ ; //cut string after last backslash if psz ! NULL * psz+1 0; //display project path Projektpfad anzeigen printf \r\nProjectPath:\r\n%s\r\n,szProjectFile ; SetTagChar ApcProjectPath,szProjectFile ; //R¨1ckgabe-Typ :BOOL //Variablen einlesen - read variables SetTagBit ApcRT_Stat ,0 ; //Lesemodus - read mode SetTagBit A

文档评论(0)

1亿VIP精品文档

相关文档