#include "apdefap.h"
int gscAction( void )
{
// 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
BOOL D;
D=GetTagBit("TSN_SZD");手自动切换
if (D==1)
{float a;
float b;
float c;
a=GetTagFloat("LL_SJ");
b=GetTagFloat("TSN_XS");设置值
c=a*b;
SetTagFloat("TSN_TJL",c);
return 0; }
}
"LL_SJ"、"TSN_XS"、"TSN_TJL"此三为外部变量