#include"apdefap.h"
intgscAction(void)
{
#pragmaoption(mbcs)
//WINCC:TAGNAME_SECTION_START
//syntax:#defineTagNameInAction"DMTagName"
//nextTagID:1
//WINCC:TAGNAME_SECTION_END
longX,Y,Z;//X、Y、Z为C语言中分别对应A、B、C的变量
X=GetTagSDWord("A");//Return-Type:longint//将A的值赋给X
Y=GetTagSDWord("B");//Return-Type:longint//将B的值赋给Y
if(X>Y)Z=1;
elseif(X<Y)Z=0;
elseZ=10;
SetTagSDWord("C",Z);//Return-Type:BOOL//将Z的值赋给C
//WINCC:PICNAME_SECTION_START
//syntax:#definePicNameInAction"PictureName"
//nextPicID:1
//WINCC:PICNAME_SECTION_END
return0;
}