CP1H ¹¦Ä܉K ½Y(ji¨¦)˜‹(g¨°u)»¯ST¾Ž³Ì Ö¸ÁîI(l¨«ng)F Ó÷¨
³ÌÐòÈçÏ£º
FB1¹¦Ä܉K
¶¨Áx½Ó¿Ú
IF P_1s AND NOT Temp_1 THEN // ÉÏÉýÑØÓã¬×ÔÖÆ•r(sh¨ª)ég¶¨•r(sh¨ª)Æ÷£¬ST¾Ž³Ì£¬Ð¡ÐÍ™C(j¨©)•r(sh¨ª)égÖ¸Áî²»Ö§³Ö
index:= index+1;
END_IF;
Temp_1:= P_1s;
IF index>=17 THEN
index:= 0;
END_IF;
FB2¹¦Ä܉K
¶¨Áx½Ó¿Ú
IF INDEX =1 THEN
OUT_07:= FALSE;
OUT_0:= TRUE;
ELSIF INDEX=2 THEN
OUT_0:= FALSE;
OUT_1:= TRUE;
ELSIF INDEX=3 THEN
OUT_1:= FALSE;
OUT_2:= TRUE;
ELSIF INDEX=4 THEN
OUT_2:= FALSE;
OUT_3:= TRUE;
ELSIF INDEX=5THEN
OUT_3:= FALSE;
OUT_4:= TRUE;
ELSIF INDEX =6THEN
OUT_4:= FALSE;
OUT_5:= TRUE;
ELSIF INDEX=7 THEN
OUT_5:= FALSE;
OUT_6:= TRUE;
ELSIF INDEX=8 THEN
OUT_6:= FALSE;
OUT_7:= TRUE;
ELSIF INDEX=9THEN
OUT_7:= FALSE;
OUT_00:= TRUE;
ELSIF INDEX =10THEN
OUT_00:= FALSE;
OUT_01:= TRUE;
ELSIF INDEX=11 THEN
OUT_01:= FALSE;
OUT_02:= TRUE;
ELSIF INDEX =12 THEN
OUT_02:= FALSE;
OUT_03:= TRUE;
ELSIF INDEX=13 THEN
OUT_03:= FALSE;
OUT_04:= TRUE;
ELSIF INDEX =14THEN
OUT_04:= FALSE;
OUT_05:= TRUE;
ELSIF INDEX=15 THEN
OUT_05:= FALSE;
OUT_06:= TRUE;
ELSIF INDEX =16 THEN
OUT_06:=FALSE;
OUT_07:= TRUE;
END_IF;