You are on page 1of 1

Vn y khng phi l chai nc chuyn ng khng lm c nh vy u! Thay v lm chai nc chuyn ng ta s lm cho n nhp nhy.

y. Sau khi v hnh chai nc ri, bn nhp phi chut chn properties->cycle->flashing->. Bn phi hp thoi, trn ct static chn yes mc Flashing background Active sau nhp x ng hoppj thoi Th l ok y

#include "apdefap.h" int gscAction( void ) { int x1, x2,x3; x1=GetLeft("BangTai.Pdl","Group3"); x2=GetTagDWord("NumberOfTrigger"); //Return-Type: DWORD x3=GetTagWord("TimeOfSetting"); //Return-Type: WORD if((GetTagBit("Start_Stop")==1)&&(x1<187)) { x1=x1+2; SetLeft("BangTai.Pdl","Group3",x1); //Return-Type: BOOL x2=x2+1; SetTagDWord("NumberOfTrigger",x2); //Return-Type: BOOL SetTagDWord("TimeOfRun",x2/2); if(x2>=(x3*2)) { x2=0; SetTagDWord("NumberOfTrigger",x2); SetTagBit("Start_Stop",0); //Return-Type: BOOL SetTagDWord("NumberOfTrigger",0); } } else { x1=111; SetLeft("BangTai.Pdl","Group3",x1); //SetTagDWord("NumberOfTrigger",0); } return 0; }

int x; int i=0; x=20; (toa do ban dau cua vien bi theo phuong x) if(set tag bit start,1); i=i+10; x=x+i; get tagbit(x,x); if(x=80) i=0; x=20; return(x);

You might also like