#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
ProgramExecute("D:\\Program Files\\Siemens\\STEP 7-MicroWIN V4.0\\bin\\microwin.exe F:\\test.mwp");
}
D:\\Program Files\\Siemens\\STEP 7-MicroWIN V4.0\\bin\\microwin.exe:为SETP7软件路径。
F:\\test.mwp:你要启动的固定程序的路径。
还有问题和我联系:QQ19216436
以上!
Good Lucky!
在按钮上组态下面这个C- action
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction "DMTagName"
// next TagID : 1
// WINCC:TAGNAME_SECTION_END
// WINCC:PICNAME_SECTION_START
// syntax: #define PicNameInAction "PictureName"
// next PicID : 1
// WINCC:PICNAME_SECTION_END
ProgramExecute("C:\\Program Files\\Siemens\\Step7\\S7BIN\\S7tgtopx.exe");
}
[6718]
[3721]
[3565]
[3837]
[2442]
[6127]
[6191]
[27514]
[12989]
[3882]

客服
小程序
公众号