購買設(shè)計請充值后下載,,資源目錄下的文件所見即所得,都可以點開預(yù)覽,,資料完整,充值下載可得到資源目錄里的所有文件。。?!咀ⅰ浚篸wg后綴為CAD圖紙,doc,docx為WORD文檔,原稿無水印,可編輯。。。具體請見文件預(yù)覽,有不明白之處,可咨詢QQ:12401814
第二部分 MCGS新加內(nèi)容
2.1 MCGS的介紹
MCGS(Monitor and Control Generated System,監(jiān)視與控制通用系統(tǒng))是北京昆侖通態(tài)自動化軟件科技有限公司研發(fā)的一套基于Windows平臺的,用于快速構(gòu)造和生成上位機(jī)監(jiān)控系統(tǒng)的組態(tài)軟件系統(tǒng),主要完成現(xiàn)場數(shù)據(jù)的采集與監(jiān)測、前端數(shù)據(jù)的處理與控制,可運行于Microsoft Windows 95/98/Me/NT/2000/xp等操作系統(tǒng)。
MCGS組態(tài)軟件包括三個版本,分別是網(wǎng)絡(luò)版、通用版、嵌入版。
具有功能完善、操作簡便、可視性好、可維護(hù)性強(qiáng)的突出特點。通過與其他相關(guān)的硬件設(shè)備結(jié)合,可以快速、方便的開發(fā)各種用于現(xiàn)場采集、數(shù)據(jù)處理和控制的設(shè)備。用戶只需要通過簡單的模塊化組態(tài)就可構(gòu)造自己的應(yīng)用系統(tǒng),如可以靈活組態(tài)各種智能儀表、數(shù)據(jù)采集模塊,無人值守的現(xiàn)場采集站、人機(jī)界面等專用設(shè)備。
2.2 MCGS的主要特性和功能
(1)簡單靈活的可視化操作界面;
(2)實時性強(qiáng)、良好的并行處理性能;
(3)豐富、生動的多媒體畫面;
(4)開放式結(jié)構(gòu),廣泛數(shù)據(jù)獲取和強(qiáng)大的數(shù)據(jù)處理功能。
MCGS系統(tǒng)由五大功能模塊組成,主要的功能模塊以構(gòu)建的形式來構(gòu)造,不同的構(gòu)件有著不同的功能,且各自獨立。三種基本類型的構(gòu)件(設(shè)備構(gòu)件、動畫構(gòu)件、策略構(gòu)件)完成了MCGS系統(tǒng)三大部分(設(shè)備驅(qū)動、動畫顯示和流程控制)的所有工件。初次以外,MCGS還提供了一套開放的課擴(kuò)充接口,用戶可根據(jù)自己的需要用VB、VC等高級開發(fā)語言,編制特定的構(gòu)件來擴(kuò)充系統(tǒng)功能。MCGS用數(shù)據(jù)庫賴管理數(shù)據(jù)存儲,系統(tǒng)可靠性高.MCGS設(shè)立對象元件庫,組態(tài)工作簡單方便,易于實現(xiàn)對工控系統(tǒng)的分布式控制和管理。
2.3 MCGS的編程語言
MCGS全中文組態(tài)軟件,采用C++語言編制,核心為組態(tài)結(jié)構(gòu)。構(gòu)架合理、連接靈活,結(jié)構(gòu)層次清晰,方便用戶的定制開發(fā)。它是基于win95/98/nt視窗結(jié)構(gòu),能夠快速構(gòu)造和和生成數(shù)據(jù)管理、報警處理、流程控制、動畫顯示、報表輸出等截面,輕松實現(xiàn)各種工程曲線、報表、數(shù)據(jù)瀏覽、遠(yuǎn)程通訊、遠(yuǎn)程采集、遠(yuǎn)程診斷等功能的先進(jìn)軟件。
2.4 MCGS的數(shù)據(jù)結(jié)構(gòu)
MCGS數(shù)據(jù)管理功能強(qiáng)大,分為數(shù)據(jù)前處理(可以對設(shè)備采集進(jìn)來的數(shù)據(jù)進(jìn)行多種數(shù)值處理)、實時數(shù)據(jù)處理(提供數(shù)據(jù)瀏覽,各種曲線、報表等功能構(gòu)件,對存盤數(shù)據(jù)庫的數(shù)據(jù)進(jìn)行查詢、排序、運算等操作),同時可以掛外界外部數(shù)據(jù)庫,實現(xiàn)ODBC接口和OLE實時調(diào)用,可以和SOL、Server、Oracle、Access等數(shù)據(jù)庫相連,提供多種數(shù)據(jù)轉(zhuǎn)換方式,每種方法都可以獨立使用或組合使用。
數(shù)據(jù)瀏覽構(gòu)件可同時以表格和曲線的形式顯示存盤數(shù)據(jù)庫中數(shù)據(jù),實時曲線可以動態(tài)顯示當(dāng)前的數(shù)據(jù),并可以設(shè)定上下限值和時間的長短,以便于用戶查詢,同時提供DXCEL報表和MCGS自由報表。
2.5 MCGS的作用
MCGS全中文組態(tài)軟件是真正的32為程序,支持多任務(wù)、多線程,提供近百種繪圖工具和基本模塊、智能儀表、PLC、變頻器、網(wǎng)絡(luò)設(shè)備,它支持Activex控件,包括溫控曲線、實時曲線、計劃曲線、歷史曲線、XY曲線、實時報表、歷史報表、單行報表、配方管理、數(shù)據(jù)庫管理、數(shù)據(jù)庫瀏覽統(tǒng)計、多媒體輸出等眾多構(gòu)件。
MCGS全中文組態(tài)軟件可以完整實現(xiàn)ODBC接口,可與SQLServer、Oracle、Access等主要數(shù)據(jù)庫相連,可實現(xiàn)各種復(fù)雜的報表,并以不同方式增加、刪除數(shù)據(jù)庫中的記錄,支持CAN、PROFIBUS、HART、LONWOTKS等多種數(shù)據(jù)傳輸方案,提供4級安全保密機(jī)制。
工程組態(tài)軟件MCGS的最大優(yōu)點是組態(tài)方便,它融會了中外工控組態(tài)軟件的眾多長處,只要是稍微具外語常識,即可以方便組態(tài)。
2.6 MCGS嵌入版
由MCGS嵌入版生成的用戶應(yīng)用系統(tǒng),其結(jié)構(gòu)由主控窗口、設(shè)備窗口、用戶窗口、實時數(shù)據(jù)庫和運行策略五個部分構(gòu)成。
窗口是屏幕中的一塊空間,是一個“容器”,直接提供給用戶使用。在窗口內(nèi),用戶可以放置不同的構(gòu)件,創(chuàng)建圖形對象并調(diào)整畫面的布局,組態(tài)配置不同的參數(shù)以完成不同的功能。
在MCGS嵌入版中,每個應(yīng)用系統(tǒng)只能有一個主控窗口和一個設(shè)備窗口,但可以有多個用戶窗口和多個運行策略,實時數(shù)據(jù)庫中也可以有多個數(shù)據(jù)對象。MCGS嵌入版用主控窗口、設(shè)備窗口和用戶窗口來構(gòu)成一個應(yīng)用系統(tǒng)的人機(jī)交互圖形界面,組態(tài)配置各種不同類型和功能的對象或構(gòu)件,同時可以對實時數(shù)據(jù)進(jìn)行可視化處理。
實時數(shù)據(jù)庫是MCGS嵌入版系統(tǒng)的核心實時數(shù)據(jù)庫相當(dāng)于一個數(shù)據(jù)處理中心,同時也起到公用數(shù)據(jù)交換區(qū)的作用。MCGS嵌入版使用自建文件系統(tǒng)中的實時數(shù)據(jù)庫來管理所有實時數(shù)據(jù)。從外部設(shè)備采集來的實時數(shù)據(jù)送入實時數(shù)據(jù)庫,系統(tǒng)其它部分操作的數(shù)據(jù)也來自于實時數(shù)據(jù)庫。實時數(shù)據(jù)庫自動完成對實時數(shù)據(jù)的報警處理和存盤處理,同時它還根據(jù)需要把有關(guān)信息以事件的方式發(fā)送給系統(tǒng)的其它部分,以便觸發(fā)相關(guān)事件,進(jìn)行實時處理。因此,實時數(shù)據(jù)庫所存儲的單元,不單單是變量的數(shù)值,還包括變量的特征參數(shù)(屬性)及對該變量的操作方法(報警屬性、報警處理和存盤處理等)。這種將數(shù)值、屬性、方法封裝在一起的數(shù)據(jù)我們稱之為數(shù)據(jù)對象。實時數(shù)據(jù)庫采用面向?qū)ο蟮募夹g(shù),為其它部分提供服務(wù),提供了系統(tǒng)各個功能部件的數(shù)據(jù)共享。
主控窗口構(gòu)造了應(yīng)用系統(tǒng)的主框架主控窗口確定了工業(yè)控制中工程作業(yè)的總體輪廓,以及運行流程、特性參數(shù)和啟動特性等項內(nèi)容,是應(yīng)用系統(tǒng)的主框架。
設(shè)備窗口是MCGS嵌入版系統(tǒng)與外部設(shè)備聯(lián)系的媒介設(shè)備窗口專門用來放置不同類型和功能的設(shè)備構(gòu)件,實現(xiàn)對外部設(shè)備的操作和控制。設(shè)備窗口通過設(shè)備構(gòu)件把外部設(shè)備的數(shù)據(jù)采集進(jìn)來,送入實時數(shù)據(jù)庫,或把實時數(shù)據(jù)庫中的數(shù)據(jù)輸出到外部設(shè)備。一個應(yīng)用系統(tǒng)只有一個設(shè)備窗口,運行時,系統(tǒng)自動打開設(shè)備窗口,管理和調(diào)度所有設(shè)備構(gòu)件正常工作,并在后臺獨立運行。注意,對用戶來說,設(shè)備窗口在運行時是不可見的。
用戶窗口實現(xiàn)了數(shù)據(jù)和流程的“可視化”用戶窗口中可以放置三種不同類型的圖形對象:圖元、圖符和動畫構(gòu)件。圖元和圖符對象為用戶提供了一套完善的設(shè)計制作圖形畫面和定義動畫的方法。動畫構(gòu)件對應(yīng)于不同的動畫功能,它們是從工程實踐經(jīng)驗中總結(jié)出的常用的動畫顯示與操作模塊,用戶可以直接使用。通過在用戶窗口內(nèi)放置不同的圖形對象,搭制多個用戶窗口,用戶可以構(gòu)造各種復(fù)雜的圖形界面,用不同的方式實現(xiàn)數(shù)據(jù)和流程的“可視化”。
組態(tài)工程中的用戶窗口,最多可定義512個。所有的用戶窗口均位于主控窗口內(nèi),其打開時窗口可見;關(guān)閉時窗口不可見。
運行策略是對系統(tǒng)運行流程實現(xiàn)有效控制的手段運行策略本身是系統(tǒng)提供的一個框架,其里面放置有策略條件構(gòu)件和策略構(gòu)件組成的“策略行”,通過對運行策略的定義,使系統(tǒng)能夠按照設(shè)定的順序和條件操作實時數(shù)據(jù)庫、控制用戶窗口的打開、關(guān)閉并確定設(shè)備構(gòu)件的工作狀態(tài)等,從而實現(xiàn)對外部設(shè)備工作過程的精確控制。
一個應(yīng)用系統(tǒng)有三個固定的運行策略:啟動策略、循環(huán)策略和退出策略,同時允許用戶創(chuàng)建或定義最多512個用戶策略。啟動策略在應(yīng)用系統(tǒng)開始運行時調(diào)用,退出策略在應(yīng)用系統(tǒng)退出運行時調(diào)用,循環(huán)策略由系統(tǒng)在運行過程中定時循環(huán)調(diào)用,用戶策略供系統(tǒng)中的其它部件調(diào)用。
綜上所述,一個應(yīng)用系統(tǒng)由主控窗口、設(shè)備窗口、用戶窗口、實時數(shù)據(jù)庫和運行策略五個部分組成。組態(tài)工作開始時,系統(tǒng)只為用戶搭建了一個能夠獨立運行的空框架,提供了豐富的動畫部件與功能部件。
第三章 工程的建立與變量的定義
3.1 工程的建立
(1)單擊文件菜單中“新建工程”選項,彈出“新建工程設(shè)置”窗口,點擊確定按鈕。
(2)選擇文件菜單中的“工程另存為”菜單項,彈出文件保存窗口。
(3)在文件名一欄內(nèi)輸入“雙面鉆孔組合機(jī)床”,點擊“保存”按鈕,工程創(chuàng)建完畢。
圖3-1 新建工程
圖3-2 輸入工程名
3.2 變量的定義
在開始定義之前,我們先對系統(tǒng)進(jìn)行分析,確定需要的變量。本系統(tǒng)至少需要個變量,見表1
表1 雙面鉆孔組合機(jī)床監(jiān)控系統(tǒng)變量分配表
變量名
類型
初值
注釋
啟動停止按鈕
開關(guān)
0
啟動控制信號,輸入1啟動,輸入0停止
復(fù)位停止按鈕
開關(guān)
0
復(fù)位控制信號,輸入1復(fù)位后停止;輸入0無效
上移信號
開關(guān)
0
工件上移信號,輸入1有效
上移信號1
開關(guān)
0
夾板上移信號,輸入1有效
下移信號
開關(guān)
0
工件下移信號,輸入1有效
下移信號1
開關(guān)
0
夾板下移信號,輸入1有效
左移信號
開關(guān)
0
右側(cè)快速退回信號,輸入1有效
左移信號1
開關(guān)
0
左側(cè)快進(jìn)信號,輸入1有效
左移信號2
開關(guān)
0
左側(cè)工進(jìn)左移信號,輸入1有效
右移信號
開關(guān)
0
右側(cè)快進(jìn)信號,輸入1有效
右移信號1
開關(guān)
0
右側(cè)工進(jìn)信號,輸入1有效
右移信號2
開關(guān)
0
左側(cè)快速退回信號,輸入1有效
夾緊信號
開關(guān)
0
工件夾緊信號,輸入1有效
放松信號
開關(guān)
0
工件放松信號,輸入1有效
插銷信號
開關(guān)
0
銷插銷完畢信號,輸入1有效
拔銷信號
開關(guān)
0
拔銷完畢信號,輸入1有效
左可見度
開關(guān)
0
左邊加工可見度,輸入1有效
右可見度
開關(guān)
0
右邊加工可見度,輸入1有效
垂直移動量
數(shù)值
0
工件垂直下移數(shù)值
垂直移動量1
數(shù)值
0
上板下移數(shù)值
水平移動量
數(shù)值
0
整個右滑臺右移數(shù)值
水平移動量左
數(shù)值
0
整個左滑臺左移數(shù)值
3.3變量定義的步驟
(1)單擊工作臺中的“實時數(shù)據(jù)庫”選項卡,進(jìn)入“實時數(shù)據(jù)庫”窗口頁,如圖3-3所示。窗口中列出了系統(tǒng)已有變量“數(shù)據(jù)對象”的名稱。其中一部分為系統(tǒng)內(nèi)部建立的數(shù)據(jù)步驟對象?,F(xiàn)在要將表中定義的數(shù)據(jù)對象添加進(jìn)去。
圖3-3 實時數(shù)據(jù)庫
(2)單擊工作臺右側(cè)“新增對象”按鈕,在窗口的數(shù)據(jù)對象列表中增添了一個新的數(shù)據(jù)對象,如圖3-4所示。
圖3-4 新添數(shù)據(jù)對象
(3)選中該數(shù)據(jù)對象,按“對象屬性|按鈕,或雙擊選中對象,這則打開“數(shù)據(jù)對象屬性設(shè)置”窗口。
a將“對象名稱”改為:啟動停止按鈕;“對象初值”改為:0;“對象類型”選擇:開關(guān)型;在“對象內(nèi)容注釋輸入框|內(nèi)輸入:啟動停止信號,輸入1啟動;輸入0停止 b單擊“確定”。 如圖3-5所示。
(4)按照步驟3-5,根據(jù)上面列表,設(shè)置其他數(shù)據(jù)對象。
(5)單擊“保存”按鈕。
圖3-5 數(shù)據(jù)對象屬性設(shè)置
第四章 工程畫面的建立
(1)在“用戶窗口”中單擊“新建窗口”按鈕,建立“窗口0”。如圖4-1所示。
如圖4-1 新建用戶窗口
(2)選中“窗口0”,單擊“窗口屬性”,進(jìn)入“用戶窗口屬性設(shè)置”。
(3)將窗口名稱改為:雙面鉆孔組合機(jī)床:窗口標(biāo)題改為:雙面鉆孔組合機(jī)床;其他不變。
4.1雙面鉆孔組合機(jī)床監(jiān)控畫面的制作
(1)單擊“用戶窗口”。
(2)雙擊“用戶窗口”中的“雙面鉆孔組合機(jī)床”。進(jìn)入編輯畫面。如圖4-2所示。
圖4-2 編輯環(huán)境
(2)單擊“工具箱”內(nèi)的“標(biāo)簽”按鈕,打開繪圖工具箱。
(3)選擇“工具箱”內(nèi)的“標(biāo)簽”按鈕,鼠標(biāo)的光標(biāo)呈“十字”形,在窗口頂端中心位置拖曳鼠標(biāo),根據(jù)需要拉出一個一定大小的矩形。
(4)在光標(biāo)閃爍位置輸入文字“雙面鉆孔組合機(jī)床監(jiān)控系統(tǒng)”,按回車鍵在窗口的任意位置用鼠標(biāo)點擊一下,文字輸入完畢。
(5)選中文字框,作如下設(shè)置。
(6)點擊“填充色”按鈕,設(shè)定文字框的背景顏色為:沒有填充。
(7) 點擊“線色”按鈕,設(shè)置文字框的邊線顏色為:沒有邊線。
(8)點擊“字符字體”按鈕,設(shè)置文字字體為:宋體;字型為:粗體;大?。憾?
(9)點擊“字符顏色”按鈕,將文字顏色設(shè)為:“黃色”。單擊“保存”,“ 雙面鉆孔組合機(jī)床”文字編輯完畢。
(10)選中“雙面鉆孔組合機(jī)床監(jiān)控系統(tǒng)”的窗口標(biāo)題,單擊“動畫組態(tài)”,進(jìn)入動畫組態(tài)窗口對“雙面鉆孔組合機(jī)床監(jiān)控系統(tǒng)”進(jìn)行相同的操作。單擊繪圖工具箱中的插入“元件”圖標(biāo),彈出“對象元件管理”對話框,將相應(yīng)的動畫元件添加到組態(tài)中?!皩ο笤芾怼比鐖D4-5所示:
圖4-3 對象元件庫
最終的監(jiān)控畫面如圖圖4-4所示:
圖4-4 雙面鉆孔組合機(jī)床監(jiān)控系統(tǒng)
4.2 運行策略的建立及定時器的編寫
1 運行策略的建立
進(jìn)入“運行策略”窗口中,雙擊進(jìn)入“循環(huán)策略”窗口,如圖4-5所示。
圖4-5 循環(huán)策略
左鍵點擊工具條,選中“新增策略行”,增加一策略行。單擊“策略工具箱”中的“腳本程序”將鼠標(biāo)指針移到策略塊圖標(biāo)上,單擊鼠標(biāo)左鍵,添加腳本程序構(gòu)件。如圖4-6所示。
圖4-6 添加腳本程序
2.定時器的添加
選中“新增策略行”,增加一策略行。單擊“策略工具箱”中的“定時器”將鼠標(biāo)指針移到策略塊圖標(biāo)上,單擊鼠標(biāo)左鍵,添加腳本程序構(gòu)件。如圖4-7所示。
圖4-7 添加定時器
定時器的設(shè)置如圖4-8所示:
4-8 定時器設(shè)置
4.3雙面鉆孔組合機(jī)床控制系統(tǒng)腳本程序的編寫
雙擊“腳本程序”工具條進(jìn)入腳本程序編輯環(huán)境,編輯腳本程序如下:
IF 下移信號2 = 1 THEN
垂直移動量 = 垂直移動量 + 1
ENDIF "工件下移速率為1"
IF 上移信號2 = 1 THEN
垂直移動量 = 垂直移動量 - 1
ENDIF "工件上移速率為1"
IF 下移信號1 = 1 THEN
垂直移動量1 = 垂直移動量1 + 1
ENDIF "上板下移速率為1"
IF 上移信號1 = 1 THEN
垂直移動量1 = 垂直移動量1 - 1
ENDIF "上板下移速率為1"
IF 下移信號 = 1 THEN
垂直移動量2 = 垂直移動量2 + 1
ENDIF "上板上移速率為1"
IF 上移信號 = 1 THEN
垂直移動量2 = 垂直移動量2 - 1
ENDIF "上板下移速率為1"
IF 右移信號11 = 1 THEN
水平移動量 = 水平移動量 + 1
ENDIF "右移速率為1"
IF 左移信號11 = 1 THEN
水平移動量 = 水平移動量 - 1
ENDIF "右移速率為-1"
IF 左移信號22 = 1 THEN
水平移動量左 = 水平移動量左 - 1
ENDIF "左移速率為1"
IF 右移信號22 = 1 THEN
水平移動量左 = 水平移動量左 + 1
ENDIF "左移速率為-1"
IF 啟動停止按鈕 = 1 AND 復(fù)位停止按鈕 = 0 THEN
定時器復(fù)位 = 0
定時器啟動 = 1
ENDIF "單擊啟動停止按鈕,定時器開始計時"
IF 啟動停止按鈕 = 0 THEN
定時器啟動 = 0
ENDIF "再單擊啟動停止按鈕,定時器停止計時"
IF 復(fù)位停止按鈕 = 1 AND 計時時間 >= 70 THEN
定時器啟動 = 0
ENDIF "單擊復(fù)位停止按鈕,定時器計時時間大于等于70s,定時器停止計時"
IF 定時器啟動 = 1 THEN
IF 計時時間 < 5 THEN
下移信號2 = 1
EXIT
ENDIF "計時器啟動,工件下移"
IF 計時時間 < 10 THEN
下移信號2 = 0
下移信號1 = 1
EXIT "工件停止下移,夾板下移"
ENDIF
IF 計時時間 < 15 THEN
下移信號1 = 0
下移信號 = 1
EXIT
ENDIF " 夾板停止下移;開始插銷"
IF 計時時間 < 20 THEN
下移信號 = 0
右主軸啟動信號 = 1
右移信號 = 1
工件夾緊標(biāo)志 = 1
右移信號11 = 1
EXIT
ENDIF " 插銷完畢;右主軸啟動;右滑臺快進(jìn)"
IF 計時時間 < 25 THEN
右移信號 = 0
右移信號1 = 1
EXIT
ENDIF " 右滑臺工進(jìn)"
IF 計時時間 < 35 THEN
右移信號1 = 0
右主軸啟動信號 = 0
右主軸停止信號 = 1
左移信號 = 1
右移信號11 = 0
左移信號11 = 1
EXIT
ENDIF " 右滑臺工進(jìn)結(jié)束;右主軸停轉(zhuǎn);右滑臺快速后退"
IF 計時時間 < 40 THEN
左移信號11 = 0
左移信號 = 0
左主軸啟動信號 = 1
左移信號1 = 1
左移信號22 = 1
右可見度 = 1
左可見度 = 1
EXIT
ENDIF " 右滑臺退回原位;左主軸啟動;左滑臺快進(jìn)"
IF 計時時間 < 45 THEN
左移信號1 = 0
左移信號2 = 1
EXIT
ENDIF " 左滑臺工進(jìn)"
IF 計時時間 < 55 THEN
左移信號2 = 0
左主軸啟動信號 = 0
左主軸停止信號 = 1
右移信號2 = 1
工件夾緊標(biāo)志 = 0
左移信號22 = 0
右移信號22 = 1
EXIT
ENDIF " 左滑臺工進(jìn)結(jié)束;左主軸停轉(zhuǎn);左滑臺快速退回原位"
IF 計時時間 < 60 THEN
右移信號2 = 0
上移信號 = 1
右移信號22 = 0
右可見度 = 0
左可見度 = 0
EXIT
ENDIF " 左滑臺回到原位;拔銷"
IF 計時時間 < 65 THEN
上移信號 = 0
上移信號1 = 1
EXIT
ENDIF " 拔銷完畢;松開工件"
IF 計時時間 < 70 THEN
上移信號1 = 0
上移信號2 = 1
EXIT
ENDIF " 工件回到原位"
IF 計時時間 >= 70 THEN
上移信號2 = 0
右主軸停止信號 = 0
左主軸停止信號 = 0
定時器復(fù)位 = 1
EXIT
ENDIF " 左滑臺后退到原位;左右主軸停止信號結(jié)束;準(zhǔn)備開始重新計時"
ENDIF
IF 定時器啟動 = 0 THEN
上移信號 = 0
上移信號1 = 0
上移信號2 = 0
下移信號 = 0
下移信號1 = 0
下移信號2 = 0
左移信號 = 0
左移信號1 = 0
左移信號2 = 0
右移信號 = 0
右移信號1 = 0
右主軸啟動信號 = 0
左主軸啟動信號 = 0
左主軸停止信號 = 0
右主軸停止信號 = 0
右移信號11 = 0
左移信號11 = 0
右移信號22 = 0
左移信號22 = 0
ENDIF "定時器停止工作,上述信號變回初始狀態(tài)"
19
附錄:
外文資料與中文翻譯
外文資料:
The Development Of Machine Tool Technology
and automatic line
Machine Tool and Machine Tool Automatic Line is a dedicated and efficient automation technology and equipment, at present, it is still a high-volume machinery to achieve efficient, high quality and economical production of key equipment, which is widely used in automobiles, tractors, diesel and compressed machines and many other industrial production. In particular, the automotive industry, is a combination of machine tools and automatic lines largest user. Such as the German Volkswagen plant in Salzgitter engine plant, used in the early 90's metal-cutting machine tool is automatic line (60%), machines (20%) and processing center (20%). Clearly, the mass production of the machinery industry, a lot of used equipment is a combination of machine and automatic line. Therefore, combination machine tool and its automatic line level of technical performance and integrated automation, the large extent determines these industries, a product of the production efficiency, product quality and business organization of production Jiegou, Yezai determine a company's products competitiveness.
現(xiàn)代組合機(jī)床和自動線作為機(jī)電一體化產(chǎn)品,它是控制、驅(qū)動、測量、監(jiān)控、刀具和機(jī)械組件等技術(shù)的綜合?反映。 Combination of machine tools and automatic lines of modern mechatronic product as it is to control, drive, measure, monitor, tool and machinery components such as a comprehensive reflection of technology. 近20年來,這些技術(shù)有長足進(jìn)步,同時作為組合機(jī)床主要用戶的汽車和內(nèi)燃機(jī)等行業(yè)也有很大的變化,其?產(chǎn)品市場壽命不斷縮短,品種日益增多且質(zhì)量不斷提高。 The past 20 years, these technologies have made considerable progress, as well as a combination of machine tool user industries such as automobile and internal combustion engines, there are big changes in the market life of their products continue to shorten, increasing variety and quality improved. 這些因素有力地推動和激勵了組合機(jī)床和自動線技術(shù)的?不斷發(fā)展。 These factors effectively promote and encourage the combination of machine and automatic line technology continues to evolve.
1 A combination of varieties of key development tools
在組合機(jī)床這類專用機(jī)床中,回轉(zhuǎn)式多工位組合機(jī)床(圖2)和自動線占有很重要的地位。 In the combination of these special purpose machine tools, the rotary multi-station machines (Figure 2) and automatic line plays an important role. 因為這?兩類機(jī)床可以把工件的許多加工工序分配到多個加工工位上,并同時能從多個方向?qū)ぜ膸讉€面進(jìn)行加工,此?外,還可以通過轉(zhuǎn)位夾具(在回轉(zhuǎn)工作臺機(jī)床上)或通過轉(zhuǎn)位、翻轉(zhuǎn)裝置(在自動線上)實現(xiàn)工件的五面加工或全部?加工,因而具有很高的自動化程度和生產(chǎn)效率,被汽車、摩托車和壓縮機(jī)等工業(yè)部門所采用。 Because these two types of machine parts can be assigned to many manufacturing processes on multiple processing station, and also from several different directions on the workpiece surface processing, In addition, you can also switch to digital clamp (work in rotation machine tool) or by translocation, flip device (in the automatic line) to achieve a five-face machining parts or all of processing, so they have a high degree of automation and production efficiency, a car, motorcycle and compressors and other industrial sectors used.
根據(jù)有關(guān)統(tǒng)計資料,德國在1990~1992年期間,回轉(zhuǎn)式多工位組合機(jī)床和自動線的產(chǎn)量約各占組合機(jī)床總數(shù)?的50%左右。According to statistics, Germany in 1990 and 1992, combined multistation rotary machine and automatic production lines around each combination of machine tool about 50% of the total.
應(yīng)指出,回轉(zhuǎn)式多工位組合機(jī)床實際上是一種特殊型式的小型自動線,適合于加工輪廓尺寸≤250mm的中小?件。 Be noted that multi-station rotary machine is actually a combination of special types of small automatic lines for processing outline size of ≤ 250mm of small pieces. Compared with the automatic line, in the processing of the same parts of the case, the combination of multi-station rotary machine tool operations share is about a small area than the automated line 2 / 3.
2、 beat time to further reduce the automatic line
目前,以大批量生產(chǎn)為特征的轎車和輕型載貨車,其發(fā)動機(jī)的年產(chǎn)量通常為60萬臺左右,實現(xiàn)這樣大的批量?生產(chǎn),回轉(zhuǎn)式多工位組合機(jī)床和自動線在三班運行的情況下,其節(jié)拍時間一般為20~30秒,當(dāng)零件生產(chǎn)批量更大?時,機(jī)床的節(jié)拍時間還要更短些(表1)。
At present, characterized by mass production of cars and light trucks, the engine's output is usually around 60 million units, to achieve such a large volume production, multi-position rotary combination of machine tools and automatic lines in the case of three-shift operation , the tact time is generally 20 to 30 seconds, when the greater part of production volume, the machine cycle times should be shorter (Table 1). In the 70's, automatic line to achieve such a short beat, often used side by side duplex or set the two-lane approach, that is, determining the automatic line of the beat, the longest processing operation processes through the same process in parallel two station, if more restrictive process, then the same through the use of two automatic lines to balance the automatic line system processing rhythm. 顯然,這樣就要增加設(shè)備投資和作業(yè)面積。 Apparently, this would increase the investment in equipment and operating area.
縮短基本時間的主要途徑是采用新的刀具材料和新穎刀具,以通過提高切削速度和進(jìn)給速度來縮短基本時間。 The main way to shorten the basic time is the introduction of new materials and novel tool tool to enhance the cutting speed and feed through to shorten the basic time rate. ?例如,德國大眾汽車廠在加工鋁合金缸蓋燃燒室側(cè)面時,采用PCD銑刀,銑削速度高達(dá)3075m/min,進(jìn)給速度達(dá)?3600mm/min;又如,在鏜削灰鑄鐵缸體的缸孔時,采用裝有三個可轉(zhuǎn)位CBN刀片的新穎鏜刀頭,切削速度達(dá)?800m/min,進(jìn)給速度為1500mm/min,加工深度為146mm的缸孔,其實際加工時間僅為5.8s,比傳統(tǒng)加工工藝可縮?短2/3的加工時間。 For example, the German Volkswagen plant in the processing of aluminum alloy cylinder head combustion chamber side, the use of PCD milling cutters, milling speeds of up to 3075m/min, feed speed 3600mm/min; another example, in boring gray cast iron cylinder block of the cylinder bore When used with three indexable boring head new CBN inserts, cutting speed up to 800m/min, feed rate 1500mm/min, processing depth of 146mm the cylinder bore, the actual processing time of only 5.8s, compared traditional processing process can be shortened 2 / 3 of the processing time.
縮短輔助時間主要是縮短包括工件輸送、加工模塊快速引進(jìn)以及加工模塊由快進(jìn)轉(zhuǎn)換為工進(jìn)后至刀具切入工件?所花的時間。 Reduce the auxiliary time is shortened, including parts delivery, processing and rapid introduction of the module and processing module is converted to work by the fast-forward to the tool after the cut into the workpiece into the time spent. To shorten this part of the air travel time, generally used to improve workpiece (workpiece direct transmission) or the accompanying fixtures and processing module transmission speed fast speed. 目前,隨行夾具的輸送速度可達(dá)60m/min或更高些,加工模塊快速移動速度達(dá)40m/min。 At present, the accompanying transmission speeds up to 60m/min fixture or later some, fast-moving speed of processing modules 40m/min. At present, the accompanying high-speed conveyor fixture common control with electro-hydraulic proportional valve or cyclonical driven conveyer. The late 70s, Honsberg body in its processing of automatic transmission line on the use of electro-hydraulic proportional valve controlled delivery device. Movement of the conveyor curves. As the electro-hydraulic proportional valve control system has a good start and braking performance, and the system structure is simple, so far, this conveyor being used by many automated line.
3、the rapid progress of flexible combination machine
十多年來,作為組合機(jī)床重要用戶的汽車工業(yè),為迎合人們個性化需求,汽車變型品種日益增多(圖5),以多?品種展開競爭已成為汽車市場競爭的特點之一,這使組合機(jī)床制造業(yè)面臨著變型多品種生產(chǎn)的挑戰(zhàn)。 10 years, as the combination of machine tools important to the user's automobile industry, to meet the individual needs of people, cars become growing varieties (Figure 5), a multi-species competition has become one of the characteristics of market competition car, making Machine Tool Manufacturing industry faces many varieties of variant production challenges. 為適應(yīng)多品?種生產(chǎn),傳統(tǒng)以加工單一品種的剛性組合機(jī)床和自動線必須提高其柔性。 To meet the multi-species production and processing of a single species of conventional machine tools and automatic lines rigid composite to improve its flexibility. In the 70's, numerical control system reliability has been greatly improved, it is to late 70s and early 80s, as Alfing, Hüller-Hille and Ex-cell-o and other companies have developed a flexible machining modules, and automatic line ( FTL), from CNC machine tools and flexible combination of automatic line has increased every year. 1988 to 1992, Japan Machine Tool and automatic line (including some other form of special machine tools) production NC rate has reached 32% ~ 39%, output NC rate of 35% to 51%; the German Machine Tool and automatic line production The NC rate of 18% and 62%, 45% of the value NC ~ 66% (Table 2). These figures show that over the past decade, the development of NC machine tool combination is very rapid. Should be noted that since the 90's into the car even more intense market competition, product market and further reduce the life of the new models and shorter development cycle (now usually 35 months), car varieties growing, so automotive industry to flexible automation increasing demand for technical equipment. Such as Toyota Motor Corporation, in the end of this century's goal is to subordinate the factory the company flexible manufacturing system's coverage reached 100%.很顯然,組合機(jī)床及其自動線在保持其高生產(chǎn)效率的條件下,進(jìn)一步提高其柔性?就愈來愈具有重要意義。 Obviously, combination machine tool and its production line while maintaining its high productivity conditions, further enhancing its flexibility on the more important.
組合機(jī)床的柔性化主要是通過采用數(shù)控技術(shù)來實現(xiàn)的。Flexible modular machine tool is mainly through the use of numerical control technology to achieve. Development of flexible modular machine tool and an important prerequisite for flexible automatic line is the development of CNC machining module, which has a long history of development of processing technology for the development of CNC machining center modules to provide a mature experience. NC modules formed by the flexible modular machine tool and flexible automatic lines, can be changed through the application and the automatic tool changer CNC program to automatically replace the multi-axle box and change the processing itinerary of the working cycle, cutting parameters and processing location, in order to adapt to change type variety of processing. ?柔性組合機(jī)床和柔性自動線用的數(shù)控加工模塊,按其數(shù)控坐標(biāo)(軸)數(shù),主要有單坐標(biāo)(Z)、雙坐標(biāo)(XZ、YZ、?ZU和ZB等)和三坐標(biāo)(XYZ)加工模塊;按其主軸數(shù),有單軸和多軸加工模塊,也有單軸和多軸復(fù)合加工模塊。
Single-axis machining module by the NC slide and spindle assembly (or axle box, including for multi-axle box) form. Two-axis machining module by the cross slide and spindle CNC Components, such as two-coordinate CNC milling module. Column moving type CNC coordinate processing module (Figure 6), the tool can be realized in the three coordinate movement, according to workpiece varieties and processing tasks with Tool, tool change and the required mechanical hand tools, high Flexible. This processing module is flexible automatic line processing of multi species one of the most important modules.
立柱移動式CNC三坐標(biāo)加工模塊可利用X軸和Y軸的聯(lián)動來實現(xiàn)周邊銑削工藝,特別是在銑削象變速箱體這類剛?性較差的工件時,可采用較小直徑的銑刀,實現(xiàn)高速(切削速度達(dá)2500m/min)周邊銑削,由此減小加工時的切削?力和工件的變形。 Mobile column CNC machining module can make use of X coordinate axis and Y axis of the linkage to achieve the peripheral milling process, particularly in the milling body such as the transmission of less rigid workpiece, we can use smaller diameter cutter, high-speed (cutting speed up to 2500m/min) milling around, thus reducing processing time of cutting force and workpiece deformation. This is more than double coordinate milling module for milling cutters with large diameter to be superior. Multi-axis machining module is another important module, mainly for processing box and disc type work flexible combination of machine tools and flexible automatic lines.這類模塊有多?種不同的結(jié)構(gòu)形式,但基本上可分為自動換箱式多軸加工模塊(圖7)、轉(zhuǎn)塔式多軸加工模塊(圖8)和回轉(zhuǎn)工作臺式?多軸加工模塊(圖9)。 How such module structure of different forms, but basically can be divided into automatic processing module for box-type multi-axis (Figure 7), turret multi-axis machining module (Figure 8) and multi-axis machining module Rotary Table (Figure 9). As for box-type module automatically be set in a special multi-axle box to store more and more libraries axle box, it can be used to process more parts of different species. 而轉(zhuǎn)塔式和回轉(zhuǎn)工作臺式多軸加工模塊,由于在轉(zhuǎn)塔頭和回轉(zhuǎn)工作臺上允許裝的多軸箱數(shù)量有限?(一般為4~6個),所以這種加工模塊只能實現(xiàn)有限品種的加工。 The turret and multi-axis machining module Rotary Table, due to the turret head and turn the table to allow installation of a limited number of multi-axle box (usually 4 to 6 months), so this processing module can only achieve limited variety of processing.
在自動線上采用CNC三坐標(biāo)加工模塊和轉(zhuǎn)塔式多軸加工模塊,不僅可實現(xiàn)不同品種工件的加工,而且在自動線?節(jié)拍時間內(nèi)(如果節(jié)拍時間允許的話),這類加工模塊還可以在同一個加工工位上通過其自動換刀或換箱,依次實?現(xiàn)多道加工工序(粗鏜、半精鏜和精鏜;鉆孔、擴(kuò)孔和攻絲),從而減少自動線的加工工位數(shù),縮短自動線的長度?。 CNC Coordinate with automatic online processing modules and turret multi-axis machining modules, not only enables workpieces of different varieties, but also in the automatic line beat of time (if time permits, then the beat), this type of processing module can also be in the same processing station on the exchange through its automatic tool changing or box, and then click to realize multi-channel processing operation (rough boring, semi-fine boring and precision boring; drilling, reaming and tapping), thereby reducing the processing work automatically line the median, Automatic line to shorten the length. ?單軸和多軸復(fù)合加工模塊是一種三坐標(biāo)數(shù)控加工模塊,可通過自動換刀或自動更換多軸箱而實現(xiàn)單軸加工或多軸加工。 Single and multi-axis coordinate complex processing module is a CNC machining modules, can be automatically replaced by ATC, or multi-axle box and the realization of single-axis machining or multi-axis machining.值得提及的是,在80年代中期德國Honsberg公司推出的CNCMACH模塊化系統(tǒng)(圖10)是很有特色的一種模塊化系統(tǒng),該系統(tǒng)充分應(yīng)用模塊化結(jié)構(gòu)原理,在作為系統(tǒng)基礎(chǔ)模塊的?CNC三坐標(biāo)模塊上,通過增減各種不同的功能模塊,拼裝成各種不同坐標(biāo)或不用工藝用途的加工模塊。 It is worth mentioning that in the mid 80s the company introduced CNCMACH Germany Honsberg modular system are characteristic of a modular system, modular structure of the full application of the principle as a basic module of the CNC system CMM module, through changes in various functional modules, assembled into a variety of different processes do not use coordinates or processing modules. Specifically, from the coordinates, except coordinate, it can also form two-coordinate and single-axis machining module; view from the Tool can be installed in libraries and multi-axle box tool libraries, can be realized individually or axle box of tools automatic replacement can also be followed to achieve the replacement tool and multi-axle box.
CNC?MACH系統(tǒng),不僅在機(jī)械結(jié)構(gòu)方面,而且在控制和軟件等方面也是模塊化的。 CNC MACH system, not only in the mechanical structure, but also in control and software is modular and so on. Therefore, the use of the system modules can be easily assembled into flexible transfer lines (FTL), flexible manufacturing cell (FMC) or flexible manufacturing system (FMS). In addition to the various CNC machining modules, the robot and servo-driven machine tools and jigs is also flexible combination of a key component of flexible automatic lines. Particularly in the flexible nature of automatic online, now more common use of air-frame gantry robot automatic loading and unloading workpieces, for workpiece transfer position or flipped. For the handling of different workpieces can be set in the automatic line next to the gripper base in order to achieve the automatic gripper change. Fixture equipped with servo drives, to adapt to different job families in the automatic clamping work pieces.
該線采用的數(shù)控加工模塊有四個雙坐標(biāo)數(shù)控銑削模?塊、六個數(shù)控轉(zhuǎn)塔式多軸加工模塊和六個數(shù)控三坐標(biāo)加工模塊。 The line used in CNC machining module has four double-axis NC milling module, six CNC turret CNC multi-axis machining module and six coordinate processing module. Secondary station and the cleaning station operations by the robot workstation installation folder. As the composition of automatic wire processing module is NC, when the transformation process from a workpiece to another workpiece processing, simply by changing the NC program on the line, without the need for machinery, adjustment and modification.
4、 the increasing degree of integrated automation
近十年來,為進(jìn)一步提高工件的加工精度和減少工件在生產(chǎn)過程中的中間儲存、搬運以及縮短生產(chǎn)流程時間,將工件加工流程中的一些非切削加工工序(如工序間的清洗、測量、裝配和試漏等)集成到自動線或自動線組成的生產(chǎn)系統(tǒng)中(圖15),以實現(xiàn)工件加工、表面處理、測量和裝配等工序的綜合自動Over the past decade, in order to further improve the machining accuracy of workpiece and the workpiece during the production process to reduce intermediate storage, handling and production processes to shorten the time the workpiece machining process in some non-cutting operations (such as inter-process cleaning, measurement, assembly and leak testing, etc.) integrated into the automated line or automatic line production system consisting of (Figure 15), in order to achieve workpiece machining, surface treatment, measurement and assembly processes of integrated automation.
清洗 Clean:In the automatic line and automatic line consisting of production systems, cleaning equipment, parts of the process is mainly used for cleaning and parts between the final cleaning.
工件的工序間清洗主要是為下一道工序創(chuàng)造必要的工作條件。 Between the cleaning processes the workpiece is mainly for the next process to create the necessary conditions of work. For example, the workpiece blank in the painting before, after processing the workpiece datum, deburring, the measurements carried out before and a variety of cleaning before assembly.
當(dāng)今,鑒于我們?nèi)祟愘囈陨娴沫h(huán)境日益受到工業(yè)污染的破壞,環(huán)境保護(hù)已引起人們的普遍重視。 Today, in view of the survival of our human environment is increasingly damaged by industrial pollution; environmental protection has attracted much attention. 近年來,國內(nèi)外越來越關(guān)注工業(yè)清洗對環(huán)境的污染。 In recent years, more and more concerned with industrial cleaning at home and abroad on the environment. 這就促使許多工業(yè)部門的零件清洗轉(zhuǎn)向應(yīng)用水劑清洗(采用酸性、中性或堿性清洗液,清洗液中主要含有磷酸鹽、活性劑和絡(luò)合劑等),這種水劑清洗主要根據(jù)工件清洗質(zhì)量要求而采用噴淋(分散清洗)和浸漬(集中清洗)兩種工藝。 This has prompted many industries move on aqueous parts cleaning washing (using acidic, neutral or alkaline cleaning liquid, cleaning liquid containing mainly phosphate, active agents and complexing agents, etc.), primarily on the basis of such aqueous cleaning workpiece quality requirements and use of cleaning spray (distributed cleaning) and immersion (concentrated cleaning) are two processes.
基于環(huán)境保護(hù)、現(xiàn)場操作工人的保健和清洗工藝的合理化等要求,目前,清洗機(jī)已普遍采用封閉式布局,整個清洗過程是自動進(jìn)行的,設(shè)備控制采用可編程控制器,并自動監(jiān)控所有機(jī)械動作和工藝技術(shù)參數(shù)。 Based on environmental protection, health care workers, field operations and cleaning process of rationalization and other requirements, now, cleaning machine has been widely used closed-end layout, Zheng Ge cleaning process is automatic and programmable controller equipment control, and automatic monitoring of all mechanical action and technical parameters. In such washing machines integrated evaporation, filtration, material recovery and processing devices, as shown in Figure 16 is a German Benz steering shell cleaning process. The washing machine is closed layout, the cleaning process is conducted in a closed system, through a cleaning fluid purification support system to achieve the recycling of cleaning fluid. In this system, as a purification unit is a core component of purification and recycling modules cleaning. The module consists of ultra-fine filters and evaporator joint composition, use of the integrated purification equipment and cleaning fluid produced by distilled water, re-used for parts cleaning and rinsing.
5、Automatic measurement
在自動線上采用自動測量旨在對工件的加工質(zhì)量進(jìn)行監(jiān)控。 Automatic line automatic measurement of the workpiece to the processing quality control. In recent years, due to the increasingly automated line to shorten cycle times, the accuracy of the workpiece and the measurement and also become increasingly demanding production conditions, therefore the automatic measurement system must not only work with high speed and high work precision, and to have strong anti-environmental interference (such as chips, dust, steam coolant, oil, vibration and temperature, etc.) capability or some interference with the measurement system can automatically compensate the amount of performance.
在自動線上,自動測量可分為加工前測量和加工后測量。 The automatic line, automatic measurement can be divided into pre-processing measurement and processed measurements.
加工前測量是在工件加工前通過測量以確定工件的特征,并利用測量結(jié)果來調(diào)整刀具相對于工件待加工部位的位置,然后進(jìn)行相應(yīng)的加工。 Processing before the measurement is in the workpiece before the workpiece by measuring to determine the characteristics and use measurements to adjust the tool position relative to the location of