一区二区三区成人-一区二区三区www-一区二区三区 日韩-一区二区日韩欧美-一区二区日韩精品中文字幕-一区二区日韩

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

精華主題: 3 篇
發帖數量: 6770 個
工控威望: 38371 點
下載積分: 3142 分
在線時間: 9509(小時)
注冊時間: 2006-09-13
最后登錄: 2024-11-23
查看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;

問題是這樣的樣例對您有多大的幫助呢???

主站蜘蛛池模板: 欧美专区综合| 国产在线看片护士免费视频| 3d动漫被吸乳羞羞| 2012中文字幕中字视频| 完整秽淫刺激长篇小说| 4hu影院在线观看| 日本精品一区二区在线播放| 太紧太深了受不了黑人| 91青青视频| 久久aa毛片免费播放嗯啊| 欧美视频精品一区二区三区| 好逼365| 国产拍拍| 亚洲天堂中文| 欧美黑人ⅹxxx片| 粉嫩尤物在线456| 好大好硬好深好爽想要小雪| 三级aa久久| 我与旗袍老师疯狂床震| 麻豆网站视频国产在线观看| 国亚洲欧美日韩精品| 久久偷拍国2017| 日韩高清在线免费观看| 污污在线免费观看| 久久久这里有精品999| 超级乱淫伦短篇在车上| 天天中文| 色综合天天综合网站中国| 毛片a级放荡的护士hd| 国产婷婷综合丁香亚洲欧洲| 国产精品久久久久无毒| 操破苍穹h| 亚洲欧美国产另类| 美女跪式抽搐gif动态图| 色老板在线免费观看| 成人啪啪漫画羞羞漫画www网站| 大奶老太| 九九热视频 这里有精品| 亚洲欧美优优色在线影院| 亚洲AV国产精品无码精| 男女发生性关系视频|