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

cxy001
級(jí)別: 略有小成
精華主題: 0
發(fā)帖數(shù)量: 60 個(gè)
工控威望: 232 點(diǎn)
下載積分: 569 分
在線時(shí)間: 178(小時(shí))
注冊(cè)時(shí)間: 2008-03-15
最后登錄: 2025-04-04
查看cxy001的 主題 / 回貼
樓主  發(fā)表于: 2008-08-27 16:34
誰(shuí)有樣例
cvlsam
富士低壓,POD(觸摸屏),PLC專賣
級(jí)別: VIP會(huì)員

精華主題: 3 篇
發(fā)帖數(shù)量: 6798 個(gè)
工控威望: 38402 點(diǎn)
下載積分: 7970 分
在線時(shí)間: 9626(小時(shí))
注冊(cè)時(shí)間: 2006-09-13
最后登錄: 2025-04-04
查看cvlsam的 主題 / 回貼
1樓  發(fā)表于: 2008-08-27 16:57
富士的SPH系列PLC所使用的ST:
IF ENABLE THEN
    (*如果復(fù)位按鈕按下,那么系統(tǒng)復(fù)位*)
    IF RESET THEN
        LOOP_CASE := 0;
    END_IF;
    
    (*如果運(yùn)行過(guò)程中氣壓,風(fēng)壓異常,停止*)
    IF (NOT(X4) OR NOT(X5)) AND LOOP_CASE <> 0 THEN
        LOOP_CASE := -10;
    END_IF;
        
    (*步進(jìn)循環(huán)*)
    CASE LOOP_CASE OF
        -10: Y0 := FALSE;
             Y1 := FALSE;
             Y2 := FALSE;
             Y3 := FALSE;
             Y4 := TRUE;
             Y5 := FALSE;
             STEP := LOOP_CASE;
          0:(*如果氣壓正常,那么程序繼續(xù)運(yùn)行*)
              IF X5 THEN
                LOOP_CASE := 10;
                STEP := LOOP_CASE;
            ELSE
                LOOP_CASE :=-10;
                STEP := LOOP_CASE;
            END_IF;
         10:(*開(kāi)風(fēng)機(jī),同時(shí)檢測(cè)風(fēng)壓是否正常*)
             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:(*燃燒啟動(dòng),同時(shí)啟動(dòng)后延時(shí)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輸出,延時(shí)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輸出,延時(shí)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輸出,延時(shí)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:(*點(diǎn)火次數(shù)檢測(cè)*)
             IF COUNT>=3 THEN
                LOOP_CASE := 200;
            ELSE
                LOOP_CASE :=70;
            END_IF;
            STEP := LOOP_CASE;
         70:(*火焰檢測(cè)*)
             IF X0 THEN
                Y3 := FALSE;
            ELSE
                LOOP_CASE := 80;
            END_IF;
            STEP := LOOP_CASE;
         80:(*點(diǎn)火失敗的處理*)
             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輸出,延時(shí)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輸出,計(jì)數(shù)器加1*)
            Y1 := TRUE;
            COUNT := COUNT + 1;
            LOOP_CASE := 60;
            STEP := LOOP_CASE;
        200:(*重啟動(dòng)*)
            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;

問(wèn)題是這樣的樣例對(duì)您有多大的幫助呢???

主站蜘蛛池模板: 国产人人爱 | 成人免费网站视频ww | 久久精品亚洲精品国产色婷 | 精品久久久久久综合网 | 极品美女一区二区三区视频 | 国产日产欧洲系列 | 国产亚洲精品九九久在线观看 | 国产麻豆网 | 国产中文字幕在线免费观看 | 动漫精品成人免费网站 | 国内精品久久久久影院不卡 | 九九视频免费观看 | 麻豆成人传媒一区二区 | 成人短视频在线观看视频 | 国产不卡视频一区二区在线观看 | 激情性生活视频在线播放 | 成人a级高清视频在线观看 成人a毛片视频免费看 | 毛片线看免费观看 | 高清不卡一区二区 | 国产精品亚洲综合色拍 | 国产日韩欧美视频在线观看 | 国产一区二区三区视频 | 美女久久久| 久久国产乱子伦精品免费午夜 | 福利区站 | 国产成人综合网在线观看 | 国产视频高清在线观看 | 国产精品色午夜视频免费看 | 黄色免费网站在线 | 国产麻豆精品 | 国产精品女同一区二区久久夜 | 国产 日韩 欧美 在线 | 久色乳综合思思在线视频 | 激情另类国内一区二区视频 | 国产成人精品自拍 | 免费看黄30分钟 | 久久99热精品免费观看欧美 | 国产农村一级特黄α真人毛片 | 精品一区二区三区波多野结衣 | 国产成人精品免费2021 | 大狠狠大臿蕉香蕉大视频 |