【正文】
= 1 THEN HL3 = 1 IF SB4 = 1 THEN HL4 = 1 IF SB5 = 1 THEN HL5 = 1 IF HL2 = 1 AND 電梯 25 AND FLAG = 0 THEN M1 = 1:電梯 =電梯 +1 IF 電梯 = 25 THEN M1=0:HL2 = 0 ENDIF ENDIF IF HL3 = 1 AND 電梯 50 AND FLAG = 0 THEN M1 = 1:電梯 =電梯 +1 IF 電梯 = 50 THEN M1=0 :HL3 = 0 ENDIF ENDIF IF HL4 = 1 AND 電梯 75 AND FLAG = 0 THEN M1 = 1:電梯 =電梯 +1 IF 電梯 = 75 THEN M1=0 :HL4 = 0 ENDIF ENDIF IF HL5 = 1 AND 電梯 100 AND FLAG = 0 THEN M1 = 1:電梯 =電梯 +1 IF 電梯 = 100 THEN M1=0 :HL5 = 0 ENDIF 江蘇師范大學(xué)本科生畢業(yè)設(shè)計 電梯 監(jiān)控系統(tǒng)設(shè)計 41 ENDIF IF HL4 = 1 AND 電梯 75 AND FLAG = 0 THEN M2 = 1:電梯 =電梯 1 IF 電梯 = 75 THEN M2=0 :HL4 = 0 ENDIF ENDIF IF HL3 = 1 AND 電梯 50 AND FLAG = 0 THEN M2 = 1:電梯 =電梯 1 IF 電梯 = 50 THEN M2=0 :HL3 = 0 ENDIF ENDIF IF HL2 = 1 AND 電梯 25 AND FLAG = 0 THEN M2 = 1:電梯 =電梯 1 IF 電梯 = 25 THEN M2=0 :HL2= 0 ENDIF ENDIF IF HL1 = 1 AND 電梯 0 AND FLAG = 0 THEN M2 = 1:電梯 =電梯 1 IF 電梯 = 0 THEN M2=0 :HL1= 0 ENDIF ENDIF IF 電梯 25 AND HL2= 1 AND HL3 = 1 AND HL1 = 0 THEN M1 = 1:FLAG = 1:電梯 = 電梯 + 1 IF 電梯 = 25 THEN 電梯 =25 IF 電梯 =25 THEN M1=0:HL2 = 0:ZHV2 = 1 江蘇師范大學(xué)本科生畢業(yè)設(shè)計 電梯 監(jiān)控系統(tǒng)設(shè)計 42 ENDIF ENDIF IF ZHV1 = 1 AND HL3 = 1 AND M2 = 0 THEN M1 = 1:電梯 = 電梯 + 1 IF 電梯 = 50 THEN 電梯 = 50 IF 電梯 = 50 THEN M1=0:HL3 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 25 AND HL2= 1 AND HL4 = 1 AND HL1 = 0 THEN M1 = 1:FLAG = 1:電梯 = 電梯 + 1 IF 電梯 = 25 THEN 電梯 =25 IF 電梯 =25 THEN M1=0:HL2 = 0:ZHV2 = 1 ENDIF ENDIF IF ZHV1 = 1 AND HL4 = 1 AND M2 = 0 THEN M1 = 1:電梯 = 電梯 + 1 IF 電梯 = 75 THEN 電梯 = 75 IF 電梯 = 75 THEN M1=0:HL4 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 25 AND HL2= 1 AND HL5 = 1 AND HL1 = 0 THEN M1 = 1:FLAG = 1:電梯 = 電梯 + 1 IF 電梯 = 25 THEN 電梯 =25 IF 電梯 =25 THEN M1=0:HL2 = 0:ZHV2 = 1 ENDIF ENDIF 江蘇師范大學(xué)本科生畢業(yè)設(shè)計 電梯 監(jiān)控系統(tǒng)設(shè)計 43 IF ZHV1 = 1 AND HL5 = 1 AND M2 = 0 THEN M1 = 1:電梯 = 電梯 + 1 IF 電梯 = 100 THEN 電梯 = 100 IF 電梯 = 100 THEN M1=0:HL5 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 50 AND HL3= 1 AND HL4 = 1 AND HL1 = 0 AND HL2 = 0 THEN M1 = 1:FLAG = 1:電梯 = 電梯 + 1 IF 電梯 = 50 THEN 電梯 =50 IF 電梯 =50 THEN M1=0:HL3 = 0:ZHV2 = 1 ENDIF ENDIF IF ZHV1 = 1 AND HL4 = 1 AND M2 = 0 THEN M1 = 1:電梯 = 電梯 + 1 IF 電梯 = 75 THEN 電梯 = 75 IF 電梯 = 75 THEN M1=0:HL4 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 50 AND HL3= 1 AND HL5 = 1 AND HL1 = 0 AND HL2 = 0 THEN M1 = 1:FLAG = 1:電梯 = 電梯 + 1 IF 電梯 = 50 THEN 電梯 =50 IF 電梯 =50 THEN M1=0:HL3 = 0:ZHV2 = 1 ENDIF ENDIF 江蘇師范大學(xué)本科生畢業(yè)設(shè)計 電梯 監(jiān)控系統(tǒng)設(shè)計 44 IF ZHV1 = 1 AND HL5 = 1 AND M2 = 0 THEN M1 = 1:電梯 = 電梯 + 1 IF 電梯 = 100 THEN 電梯 = 100 IF 電梯 = 100 THEN M1=0:HL5 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 75 AND HL4= 1 AND HL5 = 1 AND HL1 = 0 AND HL2 = 0 AND HL3 = 0 THEN M1 = 1:FLAG = 1:電梯 = 電梯 + 1 IF 電梯 = 75 THEN 電梯 =75 IF 電梯 =75 THEN M1=0:HL4 = 0:ZHV2 = 1 ENDIF ENDIF IF ZHV1 = 1 AND HL5 = 1 AND M2 = 0 THEN M1 = 1:電梯 = 電梯 + 1 IF 電梯 = 100 THEN 電梯 = 100 IF 電梯 = 100 THEN M1=0:HL5 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 25 AND HL1 = 1 AND HL2 = 1 AND HL5 = 0 AND M1 = 0 THEN M2 = 1:FLAG = 1:電梯 = 電梯 1 IF 電梯 = 25 THEN 電梯 = 25 IF 電梯 = 25 THEN M2=0:HL2 = 0:ZHV2=1 ENDIF ENDIF 江蘇師范大學(xué)本科生畢業(yè)設(shè)計 電梯 監(jiān)控系統(tǒng)設(shè)計 45 IF ZHV1 = 1 AND HL1 = 1 AND M1 = 0 THEN M2 = 1:電梯 = 電梯 1 IF 電梯 = 0 THEN 電梯 = 0 IF 電梯 = 0 THEN M2=0:HL1 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 25 AND HL1 = 1 AND HL3 = 1 AND HL5 = 0 AND M1 = 0 THEN M2 = 1:FLAG = 1:電梯 = 電梯 1 IF 電梯 = 50 THEN 電梯 = 50 IF 電梯 = 50 THEN M2=0:HL3 = 0:ZHV2=1 ENDIF ENDIF IF ZHV1 = 1 AND HL1 = 1 AND M1 = 0 THEN M2 = 1:電梯 = 電梯 1 IF 電梯 = 0 THEN 電梯 = 0 IF 電梯 = 0 THEN M2=0:HL1 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 25 AND HL1 = 1 AND HL4 = 1 AND HL5 = 0 AND M1 = 0 THEN M2 = 1:FLAG = 1:電梯 = 電梯 1 IF 電梯 = 75 THEN 電梯 = 75 IF 電梯 = 75 THEN M2=0:HL4 = 0:ZHV2=1 ENDIF ENDIF 江蘇師范大學(xué)本科生畢業(yè)設(shè)計 電梯 監(jiān)控系統(tǒng)設(shè)計 46 IF ZHV1 = 1 AND HL1 = 1 AND M1 = 0 THEN M2 = 1:電梯 = 電梯 1 IF 電梯 = 0 THEN 電梯 = 0 IF 電梯 = 0 THEN M2=0:HL1 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 50 AND HL2 = 1 AND HL3 = 1 AND HL5 = 0 AND HL1 = 0 AND M1 = 0 THEN M2 = 1:FLAG = 1:電梯 = 電梯 1 IF 電梯 = 50 THEN 電梯 = 50 IF 電梯 = 50 THEN M2=0:HL3 = 0:ZHV2=1 ENDIF ENDIF IF ZHV1 = 1 AND HL2= 1 AND M1 = 0 THEN M2 = 1:電梯 = 電梯 1 IF 電梯 = 25 THEN 電梯 = 25 IF 電梯 = 25 THEN M2=0:HL2 = 0:ZHV2 =0:FLAG = 0 ENDIF ENDIF IF 電梯 50 AND HL2 = 1 AND HL4 = 1 AND HL5 = 0 AND HL1 = 0 AND M1 = 0 THEN M2 = 1:FLAG = 1:電梯 = 電梯 1 IF 電梯 = 75 THEN 電梯 = 75 IF 電梯 = 75 THEN M2=0:HL4 = 0:ZHV2=1 ENDIF ENDIF 江蘇師范大學(xué)本科生畢業(yè)設(shè)計 電梯 監(jiān)控系統(tǒng)設(shè)計 47 IF ZHV1 = 1 AND HL2= 1 AND M。通過理論和實踐相結(jié)合,才真正把知識運用到日常生活和生產(chǎn)中去。要達到預(yù)期結(jié)果,讓電梯很好地動起來,首先動畫界面的屬性設(shè)置要 完全正確,并且 要與 實時數(shù)據(jù)庫 中 的數(shù)據(jù)對象 一一 對應(yīng)起來,然后通過腳本程序來控制畫面的運行。部分基本設(shè)置如下圖 41 412。 升降桿的設(shè)置如圖 48,屬性設(shè)置中位置動畫連接為大小變化,其表達式為電梯,最小變化百分比為 100,對應(yīng)的表達式值為 0;最大變化百分比為 20,對應(yīng)的表達式值為 100;變化方向選擇向下剪切。 其它二層至五層指示燈設(shè)置如 HL1設(shè)置。 構(gòu) 建 動 畫流 程 控 制連 接 設(shè) 備實時數(shù)據(jù)庫實時數(shù)據(jù)庫組態(tài)軟件核心動 畫 顯 示現(xiàn) 場 控 制設(shè) 備 輸 出組 態(tài) 環(huán) 境運 行 環(huán) 境圖 41 MCGS 運行環(huán)境 設(shè)計監(jiān)控界面 在組態(tài)軟件上,創(chuàng)建“五層電梯”用戶窗口,單擊“動畫組態(tài)”,進入動畫制作窗口。 MCGS 為用戶提供了解決實際工程問題的開發(fā)平臺和完整方案, 能夠?qū)崿F(xiàn)對 現(xiàn)場數(shù)據(jù) 的 采集和歷史數(shù)據(jù) 的 處理、動畫顯示、流程控制、趨勢曲線和報表輸出等功能。 江蘇師范大學(xué)本科生畢業(yè)設(shè)計