WINCC 动画脚本 电机风扇旋转(几何---起始角度): #include "apdefap
h" long _main(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) { static DWORD f=20; if (GetTagBit("DI 电机运行信号")) { f= f+30; if (f==360) (f=0); } return f; } 电机风扇旋转(几何---结束角度): #include "apdefap
h" long _main(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) { static DWORD i=80; if (GetTagBit("DI 电机运行信号")) { i = i+30; if (i==360) (i=0); } return i; } **物料水平右移动(几何---位置 X)(停车后,物料回到原点)** #include "apdefap
h" long _main(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) { static int a=350; if (GetTagBit("DI 电机运行信号") && (a=720) (a=350); } if (
GetTagBit("DI 电机运行信号")) (a=350); return a; } 物料水平右移动(几何---位置 X)(停车后,物料停在该点) #include "apdefap
h" long _main(char* lpszPictureName, char* lpszObjectName,