【正文】
內(nèi)輸入代碼!Logon()。這里利用的是 MCGS 提供的內(nèi)部函數(shù)或在腳本程序中單擊打開腳本程序編輯器,幾如腳本程序編輯環(huán)境從右側(cè)單擊系統(tǒng)函數(shù),再單擊用戶登陸操作,雙擊!Logon()也可。退出登陸:用戶操作完成后,如想交出操作權(quán),可執(zhí)行此項(xiàng)菜單命令。雙擊操作1 菜單,彈出菜單屬性設(shè)置窗口。進(jìn)入屬性設(shè)置窗口的腳本程序頁,輸入代碼!Logoff()即可以。用戶管理:雙擊操作 2 菜單,彈出菜單屬性設(shè)置窗口。在屬性設(shè)置窗口的腳本程序頁中輸入代碼!Editusers()即可。修改密碼:雙擊操作 3 菜單,彈出菜單屬性設(shè)置窗口,在屬性設(shè)置窗口的腳本程序頁中輸入代碼!ChangePassWord()即可。所有用戶操作命令完成后的圖形如下圖所示:蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 37 頁 共 91 頁 蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 38 頁 共 91 頁 工程加密:在 MCGS 組態(tài)環(huán)境下如果不想要其它人隨便看到自己的組態(tài)軟件工程或防止競爭對手了解到您的工程組態(tài)細(xì)節(jié),可以為工程加密。 在工具下拉菜單中單擊工程安全管理,再單擊工程密碼設(shè)置,彈出修改工程密碼窗口,修改密碼完成后按確認(rèn)工程加密即可生效,下次打開礦山 PLC 信號系統(tǒng)需要輸入正確密碼后才能登入。 到此為止,礦山 PLC 信號系統(tǒng)的 MCGS 組態(tài)軟件部分也已完成,并且也與下位機(jī)PLC 連接了變量。先將礦山 PLC 信號系統(tǒng)的 MCGS 組態(tài)軟件完成版本報(bào)告呈交。蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 39 頁 共 91 頁進(jìn)入工程畫面用戶窗口畫面蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 40 頁 共 91 頁工程運(yùn)行歡迎窗口主動(dòng)畫模擬窗口蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 41 頁 共 91 頁工程報(bào)表窗口工程報(bào)警窗口蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 42 頁 共 91 頁車房控制窗口井口信號臺窗口蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 43 頁 共 91 頁井下各中段控制窗口蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 44 頁 共 91 頁第四章 設(shè)計(jì)總結(jié)在早期的礦山生產(chǎn)過程中,信號系統(tǒng)多采用傳統(tǒng)的繼電器電控的信號系統(tǒng),為有觸點(diǎn)系統(tǒng),元件易發(fā)生故障,工作可靠性差,一旦控制閉鎖失靈,則事故將不可避免。由于PLC 為無觸點(diǎn)系統(tǒng),可靠性更高,尤其是近年來 PLC 方面的技術(shù)發(fā)展迅速,使由 PLC 組成的系統(tǒng)的抗干擾能力越來越強(qiáng),它能在惡劣的環(huán)境中可靠地工作,非常適合礦山環(huán)境不佳的特點(diǎn)。在這次畢業(yè)設(shè)計(jì)中有如下認(rèn)識:本次設(shè)計(jì)就是采用先進(jìn)的三菱 PLC 來設(shè)計(jì)礦山 PLC 信號系統(tǒng),在硬件設(shè)計(jì)完成后,通過下位機(jī)軟件的編寫、上位機(jī)軟件的編寫、下位機(jī)與上位機(jī)的通訊來完成礦山 PLC信號系統(tǒng)的設(shè)計(jì)。以 PLC(可編程控制器)為核心,采用 MCGS 組態(tài)軟件監(jiān)控,可提高系統(tǒng)的兼容性、安全性和便利性等。可編程序控制器(PLC) 不僅因其控制功能強(qiáng),體積小,操作簡便,更重要的是,其響應(yīng)速度快,故障率低,維護(hù)量小而在現(xiàn)代礦井中得到了廣泛的應(yīng)用。PLC 適用于各種惡劣環(huán)境,可用于機(jī)器控制或生產(chǎn)過程的自動(dòng)控制,具有體積小、功耗低、速度快、可靠性高、抗干擾性強(qiáng)、靈活性、可擴(kuò)展性等特點(diǎn),而 MCGS組態(tài)軟件具有操作簡便、可視性好、可維護(hù)性強(qiáng)、高性能、高可靠性等突出特點(diǎn),經(jīng)過各種現(xiàn)場的長期實(shí)際運(yùn)行,系統(tǒng)穩(wěn)定可靠。系統(tǒng)方案選擇是增設(shè)上位機(jī)的PLC 控制。此種方案是在單PLC,在井口增設(shè)一臺工業(yè)控制計(jì)算機(jī)(上位機(jī)) ,在上位機(jī)的監(jiān)控軟件平臺上,對整個(gè)提升信號系統(tǒng)進(jìn)行實(shí)時(shí)監(jiān)視,并對所記憶的故障狀態(tài)、提升次數(shù)、日報(bào)表、月報(bào)表等進(jìn)行打印輸出。此種價(jià)格比適中,適應(yīng)各種惡劣的工作環(huán)境,并且具有記憶故障狀態(tài)、提升次數(shù)、日報(bào)表、月報(bào)表的功能,使工程表達(dá)直觀化,簡潔化,速度化,人性化,并可實(shí)現(xiàn)報(bào)表功能。在本系統(tǒng)中,上位機(jī)計(jì)算機(jī)與下位機(jī) PLC 串行通信我們采用了性能/價(jià)格比較高的計(jì)算機(jī)構(gòu)成廠級的監(jiān)控工作站。在 PLC 與上位計(jì)算機(jī)之間采用 RS485 和 RS232C 標(biāo)準(zhǔn)通信接口進(jìn)行通信。通過本設(shè)計(jì),我學(xué)習(xí)到了很多東西,在工作的細(xì)心上也得到了提高。并且,更了解了有關(guān)可編程控制器的功能。我選擇這個(gè)設(shè)計(jì),也是為了彌補(bǔ)以前學(xué)習(xí)上的不足。這次設(shè)計(jì),使我了解到老師的用心良苦,并且從老師那學(xué)到了很多寶貴的東西在此應(yīng)該感謝老師和同學(xué)的關(guān)心和幫助.蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 45 頁 共 91 頁蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 46 頁 共 91 頁參考文獻(xiàn)1〕陳在平,〔M〕.機(jī)械工業(yè)出版社,2022.2〕鐘肇新,〔M〕.廣州:華南理工大學(xué)出版社,2022.3〕〔M〕.南京:東南大學(xué)出版社,2022.4)敦宗仁. 可編程序控制器及其通信網(wǎng)絡(luò)技術(shù)[M] . 北京:人民郵電出版社,1999.5)何國金. 機(jī)械電氣自動(dòng)控制[M] . 重慶:重慶大學(xué)出版社,2022.6)廖常初. 可編程序控制器的編程方法與工程應(yīng)用[M] .重慶:重慶大學(xué)出版社,2022.7)汪曉光、王艷丹、[M].北京:機(jī)械工業(yè)出版社,19948)[M].北京:機(jī)械工業(yè)出版社,20229)[M].廣州:華南理工大學(xué)出版社,199910)[M].北京:高等教育出版社,1991[M].上海:上海交通大學(xué)出版社,198811)鐘肇新,[M].廣州:華南理工大學(xué)出版社,199212)余雷聲編著.電氣控制與 PLC 應(yīng)用[M].北京:機(jī)械工業(yè)出版社,199613)洪忠渝編著.可編程序控制器的原理及應(yīng)用[M].青島:青島海洋大學(xué),198814)孫同景,[M].山東科學(xué)技術(shù)出版社,199615)Programmable Controller MELSEC F/F1/F2/FX2 Series Programming Manual,Mitsubishi Electric Corporation,199416)FX COMMUNICATION (RS232C, RS485) USER’S MANUAL(M)Mitsubishi蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 47 頁 共 91 頁外文資料翻譯一 英文資料: 9. RS instructionThis section describes RS instructions. For the target devices, refer to the application instruction manual of each programmable controller.蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 48 頁 共 91 頁 Function and Operation Send and Receive ProgramAn RS instruction sends and receives serial data using the RS232C port (optional equipment).? The data transmission format can be set using a special data register D8120.Even if the setting of D8120 is modified while an RS instruction is driven, such modification isnot accepted.? In a system in which send is not performed, set the number of send points to “K0”.In a system in which receive is not performed, set the number of receive points to “K0”. Operation of RS InstructionAn RS instruction specifies the head address and the number of points of the send data sent from a programmable controller as well as the head address for receive data save destination and the maximum number of acceptable number of points of receive data.The data send/receive sequence using an RS instruction is described below.Note:Though an RS instruction can be used in a program as many times as you want,make sure that only one RS instruction is driven at a time (Two or more RS instructionscannot be turned on at one time.). For changeover, assure the OFF time isequivalent to or longer than one cycle time.In the FX0N, FX1S, FX1N, FX and FX2C, assure the OFF time is equivalent to orlonger than two scan times between pletion of send and start of receive orbetween pletion of receive and start of send. In the FX2N and FX2NC whose versionis earlier than V , assure the OFF time is equivalent to or longer than 100?s between pletion of send and start of receive or between pletion ofreceive and start of send. (Refer to Paragraph .)This OFF time is not required in the FX2N, FX2NC whose version is V or laterbecause full duplex munication is enabled.While an RS instruction is driven, modification of the setting of the D8120 is not蘭州理工大學(xué)畢業(yè)設(shè)計(jì)說明書第 49 頁 共 91 頁accepted. Turn off the RS instruction, then modify the setting. Related Flags and Data Registers1 ) Send request M8122When M8122 is set by a pulse instruction in the receive wait status or the receive pletion status, data from D200 to D0 is sent. When send is pleted, M8122 is automatically reset.When the RS instruction drive input X010 is turned on, the programmable controller is set to the receive wait status.2 ) Receive pletion M8123? When the receive pletion flag M8123 is turned on, transfer the receive data to an other save destination, then reset the M8123.? When M8123 is reset, the programmable controller is set to the receive wait status again.To reset M8123, use a sequence as described on the previous page.When RS instruction drive input X010 is turned on, the programmable controller is set to the receive wait status.? When an RS instruction is executed while D1 is “0”, M8123 (execution pletion flag) is not actuated and the programmable controller is not set to the receive wait status. If the programmable controller is set from this status to the receive wait status, set D1 to a value equivalentto or smaller than “1”, then turn off M8123 (from the ON status).3 ) Carrier detection M8124Whe