思思久久96热在精品国产10-思思久久96热在精品国产免费-思思久久99-思思久久99热-一级毛片免费观看视频-一级毛片免费看

cxy001
級別: 略有小成
精華主題: 0
發帖數量: 60 個
工控威望: 232 點
下載積分: 574 分
在線時間: 175(小時)
注冊時間: 2008-03-15
最后登錄: 2024-12-13
查看cxy001的 主題 / 回貼
樓主  發表于: 2008-08-27 16:34
誰有樣例
cvlsam
富士低壓,POD(觸摸屏),PLC專賣
級別: VIP會員

精華主題: 3 篇
發帖數量: 6778 個
工控威望: 38381 點
下載積分: 4446 分
在線時間: 9541(小時)
注冊時間: 2006-09-13
最后登錄: 2024-12-28
查看cvlsam的 主題 / 回貼
1樓  發表于: 2008-08-27 16:57
富士的SPH系列PLC所使用的ST:
IF ENABLE THEN
    (*如果復位按鈕按下,那么系統復位*)
    IF RESET THEN
        LOOP_CASE := 0;
    END_IF;
    
    (*如果運行過程中氣壓,風壓異常,停止*)
    IF (NOT(X4) OR NOT(X5)) AND LOOP_CASE <> 0 THEN
        LOOP_CASE := -10;
    END_IF;
        
    (*步進循環*)
    CASE LOOP_CASE OF
        -10: Y0 := FALSE;
             Y1 := FALSE;
             Y2 := FALSE;
             Y3 := FALSE;
             Y4 := TRUE;
             Y5 := FALSE;
             STEP := LOOP_CASE;
          0:(*如果氣壓正常,那么程序繼續運行*)
              IF X5 THEN
                LOOP_CASE := 10;
                STEP := LOOP_CASE;
            ELSE
                LOOP_CASE :=-10;
                STEP := LOOP_CASE;
            END_IF;
         10:(*開風機,同時檢測風壓是否正常*)
             Simple_Button_1(Button:=X1);
            Y4:=Simple_Button_1.Out_Coil;
            IF Y4 THEN
                IF  X4 THEN
                    LOOP_CASE := 20;
                ELSE
                    LOOP_CASE := -10;
                END_IF;
            END_IF;
            STEP := LOOP_CASE;
         20:(*燃燒啟動,同時啟動后延時10S*)
             Simple_Button_2(Button:=X2);
            Y3:=Simple_Button_2.Out_Coil;
            IF Y3 THEN
                IF CLOCK_1S THEN
                    DelayTime := DelayTime + 1;
                END_IF;
                IF DelayTime >= 10 THEN
                    LOOP_CASE := 30;
                    DelayTime := 0;
                END_IF;
            END_IF;
            STEP := LOOP_CASE;
         30:(*Y0輸出,延時2S*)
             Y0:=TRUE;
            IF Y0 THEN
                IF CLOCK_1S THEN
                    DelayTime := DelayTime + 1;
                END_IF;
                IF DelayTime >= 2 THEN
                    LOOP_CASE := 40;
                    DelayTime := 0;
                END_IF;
            END_IF;
            STEP := LOOP_CASE;
         40:(*Y2輸出,延時1S*)
             Y2:=TRUE;
            IF Y2 THEN
                IF CLOCK_1S THEN
                    DelayTime := DelayTime + 1;
                END_IF;
                IF DelayTime >= 1 THEN
                    LOOP_CASE := 50;
                    DelayTime := 0;
                END_IF;
            END_IF;
            STEP := LOOP_CASE;
         50:(*Y1輸出,延時3S*)
             Y1:=TRUE;
            IF Y1 THEN
                IF CLOCK_1S THEN
                    DelayTime := DelayTime + 1;
                END_IF;
                IF DelayTime >= 3 THEN
                    LOOP_CASE := 60;
                    DelayTime := 0;
                END_IF;
            END_IF;
            STEP := LOOP_CASE;
         60:(*點火次數檢測*)
             IF COUNT>=3 THEN
                LOOP_CASE := 200;
            ELSE
                LOOP_CASE :=70;
            END_IF;
            STEP := LOOP_CASE;
         70:(*火焰檢測*)
             IF X0 THEN
                Y3 := FALSE;
            ELSE
                LOOP_CASE := 80;
            END_IF;
            STEP := LOOP_CASE;
         80:(*點火失敗的處理*)
             Y1:=FALSE;
            Y2:=FALSE;
            Y3:=TRUE;
            IF (NOT Y1) AND (NOT Y2) AND Y3 THEN
                IF CLOCK_1S THEN
                    DelayTime := DelayTime + 1;
                END_IF;
                IF DelayTime >= 10 THEN
                    LOOP_CASE := 90;
                    DelayTime := 0;
                END_IF;
            END_IF;
            STEP := LOOP_CASE;
         90:(*Y2輸出,延時1S*)
             Y2 := TRUE;
            IF Y2 THEN
                IF CLOCK_1S THEN
                    DelayTime := DelayTime + 1;
                END_IF;
                IF DelayTime >= 1 THEN
                    LOOP_CASE := 100;
                    DelayTime := 0;
                END_IF;
            END_IF;
            STEP := LOOP_CASE;
        100:(*Y1輸出,計數器加1*)
            Y1 := TRUE;
            COUNT := COUNT + 1;
            LOOP_CASE := 60;
            STEP := LOOP_CASE;
        200:(*重啟動*)
            Y0 := TRUE;
            Y1 := FALSE;
            Y2 := FALSE;
            Y3 := TRUE;
            Y4 := TRUE;
            IF NOT X6 THEN
                IF CLOCK_2S_Out THEN
                    Y5 := TRUE;
                ELSE
                    Y5 := FALSE;
                END_IF;
            END_IF;
            IF X3 THEN
                COUNT := 0;
                LOOP_CASE := 60;
                STEP := LOOP_CASE;
            END_IF;
    END_CASE;
END_IF;

問題是這樣的樣例對您有多大的幫助呢???
cxy001
級別: 略有小成
精華主題: 0
發帖數量: 60 個
工控威望: 232 點
下載積分: 574 分
在線時間: 175(小時)
注冊時間: 2008-03-15
最后登錄: 2024-12-13
查看cxy001的 主題 / 回貼
2樓  發表于: 2008-11-05 13:26
具有參考價值,謝謝

主站蜘蛛池模板: 精品乱码一区二区三区四区| 精品久久一| 国产一区二区在线观看麻豆| 精品无人区乱码1区2区3区在线| 国产va免费精品观看精品| 国产精品人人| 免费v片| 国产精品国产三级国产a| 国产9191精品免费观看| 狠狠色狠狠色综合伊人| 国产精品自在欧美一区| 久久久综合网| 国产视频播放| 久久国产这里只有精品| 高清国产在线| 波多野结衣手机视频一区| 国产性色视频| 免费观看毛片的网站| 免费的毛片视频| 国产福利资源在线| 免费一级毛片在线播放| 国产1区精品| 免费观看一级毛片| 国产片在线观看狂喷潮bt天堂| 韩国特色特黄特刺激的毛片| 久久9999| 国产一极毛片| 国产精品麻豆a啊在线观看| 国产精品视频久久久久| 久久亚洲精品无码| 国产在线看片网站| 国产在热线精品视频国产一二| 农村寡妇一级毛片免费看视频| 久久99精品久久久久久h| 大香线蕉97久久| 国产日韩欧美亚洲精品95| 久久精品亚洲日本波多野结衣| 久久国产精品免费专区| 国产精品系列在线一区| 久久国产精品99精品国产| 国产欧美日韩在线播放|