TW514769B - Four-axis motion control method and apparatus thereof - Google Patents
Four-axis motion control method and apparatus thereof Download PDFInfo
- Publication number
- TW514769B TW514769B TW89100386A TW89100386A TW514769B TW 514769 B TW514769 B TW 514769B TW 89100386 A TW89100386 A TW 89100386A TW 89100386 A TW89100386 A TW 89100386A TW 514769 B TW514769 B TW 514769B
- Authority
- TW
- Taiwan
- Prior art keywords
- motion control
- program
- card
- personal computer
- user
- Prior art date
Links
Abstract
Description
514769514769
五、發明說明(1 ) [發明領域] 本發明係有關於一種四軸運動控制方法及裝置,更詳 而言之’係有關於-種在電腦架構下,利用個人電腦為基 礎(PC-Based)來控制四軸運動的四軸運動控制方法及裝 置。 [發明背景] 以工廠的自動化而言,自195〇年代的電磁閥控制, 而衍生到1970年代的可程式控制器(pLC)控制時,已經有 了進步,無論是在控制的複雜性與速度都作了不小的提 升。而一般傳統的PLC配置,如第i圖所示,通常一台 pLC2 1主機被三台終端機組(terminal)圍繞著。此三台終 端機分別為程式輸入機台22:用以輸入使用者程式,如 梯型圖(Ladder Diagram);監控主機23 :用於MMI(人機 介面),監控當時之機器各項狀態;以及,資料存取(中控) 至24 ·用以儲存各項工作資料。而此plc主機與一輸入/ 輸出控制模組25連接,以將控制的訊號經由輸入/輸出控 制模組25傳給工作站26以控制工作站26之工作流程。 但於1 980年代,pc個人電腦的囉起,使狀況有所改 變 σ功月匕較為強大的PC’如Intel Pentium,PentiinnV. Description of the Invention (1) [Field of the Invention] The present invention relates to a four-axis motion control method and device, and more specifically, it relates to a computer-based (PC-Based) A four-axis motion control method and device for controlling four-axis motion. [Background of the Invention] In terms of factory automation, since the solenoid valve control of the 1950s, and derived from the programmable controller (pLC) control of the 1970s, progress has been made, both in terms of control complexity and speed. Have made no small improvements. In general, traditional PLC configuration, as shown in Figure i, usually a pLC21 1 host is surrounded by three terminal units. These three terminals are program input machines 22: used to input user programs, such as Ladder Diagram; monitoring host 23: used for MMI (Human Machine Interface) to monitor the status of the machine at that time; And, data access (central control) to 24 · For storing various work data. The PLC host is connected to an input / output control module 25 to transmit control signals to the workstation 26 through the input / output control module 25 to control the work flow of the workstation 26. But in the 1980's, the rise of pc personal computers changed the situation. Σ Gong Yue Dang ’s more powerful PC ’such as Intel Pentium, Pentiinn
Pr〇 ’或甚至現今的Pentium π、in的個人電腦,就能將 傳統PLC配置中的三台終端機組及plc主機代替成單一 的控制單元。如第2圖所示,一個人電腦控制主機31以 及一中控室34組成單一控制單元,而個人電腦控制主機 3 1與一輸入/輸出控制模組32連接,以將控制的訊號經 (請先閱讀背面之注意事項再填寫本頁) ▼裝--------訂---------一 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公釐) 1 15858 M4769 五、發明說明(2 ) 由輸入/輸出控制模組32傳給工作站33以控制工作站33 之工作流程。而業者發現以個人電腦為基礎(pc_Based)之 控制的好處f列如程式设計的時間縮短、程式不容易出錯 且容易維修,而利用主從網路技術(即所謂的cHent/server) 概念,可提升整個生產線或整個工廠的完整性、主/副系 統(Redundancy),這些均是以PLC控制來進行四轴運動控 制所無法輕易達到的。以1998年為例,以pc_Based相關 產業10兆美元的產值之發展潛力遠非PLC產業所能比 擬。 但是目前PC-Based控制系統,大都為二軸亦或三軸 運動控制,而即便是四軸運動控制,目前之pc_Bawd控 制系統仍無法提供簡便的指令集,而讓使用者能以簡單快 速的方法來操作PC-Based控制系統,使用者並不能省略 繁雜撰寫低階程式語言的工作。所以如何提供一種 Based控制系統而能簡單快速來執行四轴運動控制,將是 一個待解決的問題。 緣此,對於PC-Based控制系統而言,如何以簡便並 快速的方法來提供指令集,而迅速發展適合其機台的應用 軟體,免去冗長撰寫低階程式語言的步驟,以讓使用者可 以利用PC-Based控制系統所提供的指令集,以及一輸入 裝置而迅速發展適合其機台的應用軟體以進行四軸運動控 制’本發明提供了一個有效的解決方案。 [發明目的及概述] 本發明之主要目的便是在於提供一種四軸運動控置方 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 15858 B7 B7 3 五、發明說明(3 ) ^與裝置’可讓使用者於與電腦主機連接之輸入裝置進行 操作時可免去冗長撰寫低階程式語言的步驟,而能利用運 動控制卡所提供的指令組來簡便的進行四軸運動控制。 本發明之另一目的便是在於提供一種四轴運動控置方 法與裝置’可讓使用者於與電腦主機連接之鍵盤,利用含 有運動控制卡之電腦主機來開發系統之四軸運動控制程 式,進行開發時可免去冗長撰寫低階程式語言的步驟,而 月匕利用運動控制卡所提供的指令組來簡便的進行四軸運動 控制。 本發明之另一目的便是在於提供一種四轴運動控置方 法與裝置,可讓使用者於與電腦主機連接之使用教導盒, 利用含有運動控制卡之電腦主機來輸入指令集,而當進行 操作時可免去冗長撰寫低階程式語言的步驟,而能利用運 動控制卡所提供的指令組來簡便的進行四軸運動控制。 根據以上所述的目的,本發明提供了一種新穎四軸運 動控制方法與裝置,此四軸運動控制裝置包括一含有一運 動控制卡、一數位輸入/輸出卡的工業用個人電腦(lpc)以 及輸入裝置,此輸入裝置可為一鍵盤或一使用教導盒。 可應用鍵盤並利用運動控制卡所提供之驅動程式以及四軸 運動控制指令組,配合視窗系統所提供的程式語言設計環 境(例如Visual C++及Visual Basic),來開發控制系統程 式,亦或配合使用教導盒,並利用運動控制卡所提供之驅 動程式以及四軸運動控制指令組,從使用教導盒輸入操作 I程式、指令、參數,來完成運動控制〇當驅動運動控制卡 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐 15858 ί請先閱讀背面之>i意事項再填寫本頁} 訂 · 514769 A7 B7 經濟部智慧財產局員X-消費么作社印製 五、發明說明(4 ) 配合數位輸入/輸出卡一起操作時,數位輸入/輸出卡將自 運動控制卡而來的控制訊號輸出到與其連接之下一級所欲 控制之週邊裝置,而達成四軸運動控制的目的。 [圖示簡述] 為讓本發明之上述和其它目的,特徵,優點能更明顯 易懂,將舉較佳實施例,並配合所附圖示,詳細說明本發 明之實施例,所附圖式之内容簡述如下: 第1圖為習知技術之PLC配置系統方塊圖,用以說 明PLC主機與週邊設備之連接關係; 第2圖為習知技術之包含個人電腦的控制系統方塊 圖’用以說明利用個人電腦為基礎之控制系統的連接關 係; 第3圖為本發明之系統方塊圖,其中顯示應用本發明 之四轴運動控制裝置的基本硬體組態架構; 第4圖為本發明之四轴運動控制裝置與所控制之週邊 設備的連接操作情形; 第5圖為表示第3圖之系統之一實施例的運作流程 圖’其中顯示利用鍵盤當成輸入裝置,而執行四軸運動控 制的流程程序; 第6圖為一流程圖,其中顯示於第5圖中如何利用電 腦系統所提供之程式設計環境來開發運動控制系統的應用 程式之程序的步驟; 第7圖為表示第3圖之系統之另一實施例的運作流程 圖’其中顯示利用使用教導盒當成輸入裝置,而執行四軸 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 15858 --------------裝--- (請先閱讀背面之注意事項再填寫本頁) . --線. 514769 A7 B7 五、發明說明(5 ) 、 運動控制的流程程序; 第8圖為一流程圖,其中顯示於第7圖中如何利用使 用教導盒來輸入所設計之程式、指令、參數來開發運動控 制系統的應用程式之程序的步驟; 第9圖為表示第3圖之系統之又一實施例的運作流程 圖,其中顯示利用鍵盤當成輸入裝置,而執行四軸運動控 制的流程程序; 第10圖為一流程圖,其中顯示於第9圖中如何利用 電腦系統所提供之程式設計環境來開發運動控制系統的應 用程式之程序的步驟; 第11圖為表示第3圖之系統之又一實施例的運作流 程圖,其中顯示利用使用教導盒當成輸入裝置,而執行四 軸運動控制的流程程序; 第12圖為一流程圖,其申顯示於第j 1圖中如何利用 使用教導盒來輸入所設計之程式、指令、參數來開發運動 控制系統的應用程式之程序的步驟;以及 經 濟 部 智 慧 財 產 局 員 工 消 費 合 作 社 印 製 第13圖為教導盒所提供之模式以及子模式的示意 圖。 〜 [實施例詳細說明] 請參閱第3圖,中韻千旛田丄 八T顯不應用本發明之四軸運動 裝置的基本硬體組態架構。如圖— 工 署”枯人女 # *圖所不’此四軸運動控制裝 置2包括一含有一運動控制卡 一 數位輸入/輸出卡42、 一記憶裝置43以及一主機& μ ^ 王機扳44的工業用個人 -輸入裝置3,其中之運動控制+4…電腦4 U及 ___衩制卡41含有一控制用處理Pr0 'or even today's Pentium π, in personal computers can replace the three terminal units and plc hosts in the traditional PLC configuration into a single control unit. As shown in Fig. 2, a personal computer control host 31 and a central control room 34 constitute a single control unit, while the personal computer control host 31 is connected to an input / output control module 32 to control the signal through (please read first Note on the back, please fill in this page again) ▼ Package -------- Order --------- One printed by the Intellectual Property Bureau of the Ministry of Economic Affairs, Consumer Cooperatives This paper is printed in accordance with Chinese National Standards (CNS) A4 specification (210 x 297 mm) 1 15858 M4769 V. Description of the invention (2) The input / output control module 32 is transmitted to the workstation 33 to control the work flow of the workstation 33. The industry found that the benefits of PC-based control (pc_Based) are as follows: the programming time is shortened, the program is not prone to errors and easy to maintain, and the master-slave network technology (the so-called cHent / server) concept is used. It can improve the integrity of the entire production line or the entire plant, and the primary / secondary system (Redundancy), which cannot be easily achieved by PLC control for four-axis motion control. Taking 1998 as an example, the development potential of 10 trillion US dollars in output value of pc_Based-related industries is far beyond that of the PLC industry. However, most of the current PC-Based control systems are two-axis or three-axis motion control, and even with four-axis motion control, the current pc_Bawd control system still cannot provide a simple instruction set, allowing users to use simple and fast methods. To operate the PC-Based control system, users can not omit the complicated work of writing low-level programming languages. So how to provide a Based control system that can perform four-axis motion control simply and quickly will be a problem to be solved. For this reason, for PC-Based control systems, how to provide instruction sets in a simple and fast way, and rapidly develop application software suitable for their machines, eliminating the need for lengthy steps of writing low-level programming languages to allow users The instruction set provided by the PC-Based control system and an input device can be used to rapidly develop application software suitable for its machine for four-axis motion control. The present invention provides an effective solution. [Objective and Summary of the Invention] The main purpose of the present invention is to provide a four-axis motion control paper with a paper size applicable to the Chinese National Standard (CNS) A4 specification (210 X 297 mm) 15858 B7 B7 3 V. Description of the invention ( 3) ^ and device 'allows users to operate the input device connected to the host computer without the need to write lengthy low-level programming languages, and can use the instruction set provided by the motion control card to easily perform four-axis sport control. Another object of the present invention is to provide a four-axis motion control method and device that allows a user to develop a four-axis motion control program of the system by using a computer host including a motion control card on a keyboard connected to the computer host. Development can avoid the tedious steps of writing low-level programming language, and the moon dagger uses the instruction set provided by the motion control card to easily perform four-axis motion control. Another object of the present invention is to provide a four-axis motion control method and device, which allows a user to use a teaching box connected to a computer host, and use a computer host containing a motion control card to input an instruction set, and perform The operation can avoid the tedious steps of writing low-level programming language, and can use the instruction set provided by the motion control card to perform simple four-axis motion control. According to the above-mentioned object, the present invention provides a novel four-axis motion control method and device. The four-axis motion control device includes an industrial personal computer (lpc) including a motion control card, a digital input / output card, and Input device. The input device can be a keyboard or a teaching box. You can use the keyboard and use the driver program provided by the motion control card and the four-axis motion control instruction set to cooperate with the programming language design environment provided by the window system (such as Visual C ++ and Visual Basic) to develop the control system program, or use it together. Teach the box, and use the driver program and four-axis motion control instruction set provided by the motion control card to complete the motion control by using the teaching box to input operation I programs, instructions, and parameters. When the motion control card is driven, the paper size is applicable to the Chinese country Standard (CNS) A4 Specification (210 X 297 mm 15858 PLEASE READ THE > i MATTERS ON THE BACK AND PLEASE COMPLETE THIS PAGE} ORDER 514769 A7 B7 Printed by the Intellectual Property Bureau of the Ministry of Economic Affairs X-Consumer Printing Company V. Invention Explanation (4) When operating with a digital input / output card, the digital input / output card outputs the control signal from the motion control card to the peripheral device to be controlled by the next level connected to it, thereby achieving the four-axis motion control. [Brief description of the drawings] In order to make the above and other objects, features, and advantages of the present invention more obvious and easier to understand, it will be better. The embodiments are described in detail in conjunction with the accompanying drawings. The contents of the drawings are briefly described as follows: Figure 1 is a block diagram of a conventional PLC configuration system for explaining the PLC host and peripheral equipment Fig. 2 is a block diagram of a control system including a personal computer of a conventional technology, which is used to explain the connection relationship of a control system based on a personal computer; Fig. 3 is a system block diagram of the present invention, showing an application The basic hardware configuration framework of the four-axis motion control device of the present invention; FIG. 4 is a connection operation situation between the four-axis motion control device of the present invention and the controlled peripheral equipment; FIG. 5 is a diagram showing the system of FIG. The operation flow chart of an embodiment is shown in which a keyboard is used as an input device to perform a four-axis motion control process. FIG. 6 is a flow chart showing how to use the programming provided by the computer system in FIG. 5 Steps for developing an application program of the motion control system based on the environment; FIG. 7 is a flowchart showing the operation of another embodiment of the system of FIG. Use the teaching box as an input device, and execute the four-axis paper size applicable to the Chinese National Standard (CNS) A4 specification (210 X 297 mm) 15858 -------------- installed --- (Please read the precautions on the back before filling this page). --Line. 514769 A7 B7 V. Description of the invention (5), the flow control procedure of the motion; Figure 8 is a flowchart, which is shown in Figure 7 Steps of how to use a teaching box to input designed programs, instructions, and parameters to develop a program of an application program of a motion control system; FIG. 9 is a flowchart showing the operation of another embodiment of the system of FIG. Use the keyboard as an input device to execute the four-axis motion control process. Figure 10 is a flowchart showing how to use the programming environment provided by the computer system to develop applications for the motion control system in Figure 9. Steps of the program; FIG. 11 is a flowchart showing the operation of another embodiment of the system of FIG. 3, which shows a flow program for performing four-axis motion control by using a teaching box as an input device; FIG. 12 A flow chart showing the steps of how to use the teaching box to input the designed programs, instructions, and parameters to develop the application program of the motion control system in Figure j1; and the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs Figure 13 is a schematic diagram of the modes and sub modes provided by the teaching box. [Detailed description of the embodiment] Please refer to FIG. 3, the basic hardware configuration framework of the four-axis motion device of the present invention is not applied to the Zhongyun Qianye Tianye 8T display. As shown in the figure—Gong Dian ”“ People Girl ”* This is a four-axis motion control device 2 including a motion control card, a digital input / output card 42, a memory device 43, and a host & μ ^ Industrial personal input device 3 of switch 44, among which motion control +4 ... computer 4 U and ___ 衩 card 41 contains a control process
本紙張尺度刺t關家鮮(CNS)A4祕⑵Q 5 (請先閱讀背面之注意事項再填寫本頁) 15858 經濟部智慧財產局員工消費念作社印製This paper scales the secret of Guan Jiaxian (CNS) A4 Q 5 (Please read the precautions on the back before filling this page) 15858 Printed by the employee of the Intellectual Property Bureau of the Ministry of Economic Affairs
514769 A7 ---------------- 五、發明說明(6 ) 器,主機板44含有中央處理器,而記憶裝置43則含有硬 碟。 在四軸運動控制裝置2之個人電腦4中,運動控制卡 41以及數位輸入/輸出卡42與含有中央處理器之主機板44 以及含有硬碟之記憶裝置43以ISA匯流排介面來做雙向 溝通。而輸入裝置3則可利用個人電腦4之RS232串接 埠亦或利用PS2型之鍵盤接頭而與個人電腦4做連接' 溝通以輸入資料、指令、程式、參數。 數位輸入/輸出卡42為一片ISA匯流排n接點1/〇 介面卡,可用數伏特的電壓大小來驅動内部之線路,而其 外部電源可以用12_24V之直流電源輸入,此數位輸入/輸 出卡42具有不同的接腳(pin)與工業用個人電腦4之含有 中央處理器之主機板44連接以當成此數位輸入/輸出卡42 的輸入端,而此數位輸入/輸出卡42另有不同的接腳以和 與其連接之下一級週邊裝置連接以進行四軸運動控制,以 當成此數位輸入/輸出卡42的輸出端。 運動控制卡41為具有二至三轴直線及二軸圓弧補間 ASIC-Based的高性能運動控制卡,非常適合在個人電腦 架構下’做為以個人電腦為基礎(PC-Based)之運動控制5| 的控制核心。同時若能搭配以視窗系統為基礎的應用程式 來開發運動控制程式及相關的人機介面,則所能發揮的應 用層面則更大。當運動控制卡41完成硬體參數設定、驅 動程式安裝、硬體安裝以及使用者介面安裝後,使用者即 可利用輸入裝置3來進行四軸運動控制。可利用運動控制 --------------Μ---- (請先閱讀背面之注意事項再填寫本頁) 訂· · —線- 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 6 15858 514769 消 A7 五、發明說明(7 ) 卡41所提供之驅動程式以及運動控制指令組,配合個人 電腦4之視窗系統所提供的程式語言設計環境(例如Dvisuai C + +及Visua丨Basic),利用輸入裝置3來開發運動控制系 統程式,亦或利用運動控制卡41所提供之驅動程式以及 運動控制指令組,並配合輸入裝置3而自輸入裝置3輸入 操作指令、參數,來完成運動控制。當驅動運動控制卡41, 使其配合數位輸入/輸出卡42、工業用個人電腦4 一起操 作時,數位輸入/輸出卡42將輸出自運動控制卡41輸入 之控制指令與參數,並輸出到下一級所欲控制之週邊裝 置’而達成四軸運動控制的目的。 此四軸運動控制裝置2之最大的優勢在於結合了一運 動控制卡41、一數位輸入/輸出卡42的工業用個人電腦4 以及一輸入裝置3。使用者可以利用提供之指令集迅速發 展適合其機台的應用軟體,免去冗長撰寫低階程式語言的 步驟。而除了延伸原先一般習知的特性,例如2軸,3軸 直線補間,圓弧補間,連續補間外,更提供了各32個數 位輸入/輸出(I/O)接點,在控制軟體方面,7〇餘個指令涵 蓋了運動控制(位置,速度,加速度等),1/〇控制,邏輯 運算,三角函數運算,比較指令,副程式呼叫等,5〇〇個 預設坐標點可以由使用者自行設定内容,方便爾後快速讀 取應用,程式撰寫採步驟程序方式,每一步驟之執行與否, 均可由外部之輸入接點決定,而在步驟執行完畢後,可選 擇一輸出接點為ON,使用者可依此靈活規劃本身機台與 外部設備(如輸送帶)之互動。 "本紙張尺度適用中國國家標準(CNS)A4規格⑵Q x 297公爱) 7 15858 (請先閱讀背面之注意事項再填寫本頁) ^--------tT---------· 514769 A7 __B7 五、發明說明(8 j 田輸入裝置3為一鍵盤時,由於運動控制卡41之驅 動程式宣告了使用者應用程式層與電腦底層硬體之間的溝 通方式所以备使用者撰寫應用程式來驅動運動控制卡〇 以執行運動控制時,必須遵守驅動程式中所宣告的格式來 2遞所有的參數,但是為了避免驅動程式中複雜的格式宣 口造成般應用程式設計師的困擾,所以運動控制軸控 卡在程式架構上’特別設計了一層使用者介面,用來連接 驅動程式層與使用者撰寫的應用程式層,而且這組使用者|言裝 ;1面的函數名稱與構成格式與原來使用在DOS環境版的 架構十分類似,如此可讓原來DOS版的應用程式更容易 轉換成能夠在視窗作業系統環境下執行的應用程式,同時 在載入使用者介面後,程式設計師只需透過呼叫該介面程 式庫來驅動運動控制卡41即可。使用者介面所提供的含 式庫包括有四大類:1·對於運動驅動卡41硬體啟動及關 閉的s式庫,2.資料以Byte的格式對指定的輸入/輸出埠|威 進行貧料讀寫的含式庫;3 ·資料以w〇rd的格式對指定的 輸入/輸出埠進行資料讀寫的含式庫;以及4•設定中斷發 生有效亚同時連接中斷服務程式,以及取消中斷有效設定 的含式庫。在電腦之作業系統上安裝好運動控制卡41後, 使用者可於個人電腦4之視窗系統環境下,可利用系統所 提供的程式設計環境(例如Visual c+十及 visual Basic〇, 來開發運動控制系統的前端程式,如資料輸入、控制系統 參數設定、人機介面部份,而另外後端的運動控制程式部 份’則可以直接藉由運動控制卡4 1上所提供特有的運動 8 本紙張尺度適用中國國家標準(CNS)A4規格(21〇 χ 297公釐) 15858 514769 五、發明說明( 控制指令组來完成,如此一來在運動控制的程式設計上, 以及人機介面的圖形製作上,都會十分快速而有效。由於 採用視窗作業系統做為開發平台,軟硬體的開放程度都很 高’所以任何以視窗系統為基礎(Windows-Based)的應用 程式以及其相關的周邊軟硬體技術皆可以直接與運動控制 器相結合’例如,以Visual C++為開發工具來撰寫的範例 程式’其中部份的圖形是直接引用視窗系統控制(wind〇ws common controls)來完成,而運動控制部份則是直接架構 在運動控制卡41上,其中除了展現特有的直線圓弧補間 運動指令外,同時也從理論及實際計數器上讀回目前的位 訂 置,藉以驗證控制卡41出去驅動馬達的脈波數與設計者 所設計的脈波數相同。 當輸入裝置3為一使用教導盒時,結合包含運動控制 卡41、數位輸入/輸出卡42之個人電腦4,使用者可以利 用提供之指令集迅速發展適合其機台的應用軟體,免去冗 長撰f低階程式語言的步驟。控制軟體方面,70餘個指 令涵盍了運動控制(位置,速度,加速度等),I/O控制, c輯運箅一角函數運算,比較指令,副程式呼叫等,_ 個預設坐標點可以由使用者自行設定内容,方便爾後快速 咳取應用。教導盒之程式撰寫採步驟程序方式,每一步驟 t執行與否,均可由外部之輸人接點決^,而在步驟執行 70畢後彳選擇一輪出接點為ON,使用者可依此靈活規 劃本身機台與外部設備(如輸送帶)之互動。而搭配程式使 用教導盒’使用者可以备 _____ J以輪易地輸入設計之程式,而由其上 本紙張尺㈣财關^^ △屋 9 15858 514769 A7 五、發明說明(1()) 之LCD顯示幕可以得知程式執行及各項系統狀態,並可 於機台發生錯誤時,顯示錯誤訊息,方便使用者瞭解與處 理這類狀況。 第4圖為本發明之四軸運動控制裝置2與所控制之週 邊設備的連接操作情形。如圖中所示,四軸運動控制裝置 2可與一驅動器(driver)5連接,並可與其他驅動裝置連 接。四軸運動控制裝置2可輸出一為數位訊號之位置命令 (position command)給一驅動器5,而此驅動器5則回饋 (feedback)—訊號到此四軸運動控制裝置2。而四軸運動 控制裝置2並可與其他的驅動器6連接,而可自驅動器6 輸入32個輸入接腳(pin)訊號,並可自此四轴運動控制裝 置2輸出32個輸出接腳訊號到此驅動器6以做為四軸運 動控制操作之用。而驅動器5以及驅動器6再分別的與週 邊機械設備7以及週邊機械設備8做連接。 第5圖為表示第3圖之系統之—實施例 圖,其t之輸入裝置3為一鍵盤,亦即^程 入裝置3而執行四軸運動控制的流程程序。如圖中所亍, f先於步騾1〇1,將磁碟片中 式複製到個人雪" 史之運動控制卡41的驅動程 式複I到個人電滕4的記德裝置43 統之目錄中。 J m系 接著於步驟102,再將驅動程式 定值登入到你蚩^ ^與硬體相關的參數設 疋值金入到作業系統之登錄檔_,以便 或應用程式,可以直接%用這些參數。八驅動程式 *_103 ’先行將硬體在電膘上的 斯 本紙張尺度適用中斷值 15858 (請先閱讀背面之注意事項再填寫本頁) 裝 t---------Μ, 10 經濟部智慧財產局員工消費合作社印製 A7 - --~~—_I__ 五、發明說明(u ) 一 個參數作硬體設定。 /於步驟104’在完成運動控制卡41的硬體參數設定 後’並已確定將運動控制卡41之驅動程式以及硬體相關 的參數叹疋[登入到作業系統之登錄㈣,將運動控制卡 4,1與個人電腦4之主機板44以ι§α匯流排介面連接後, 亚重新將個人電腦4予以重新開機。 於步驟105,將磁片中的使用者介面安裝到個人電腦 4的記憶裝置43之硬碟中之某一目錄下,安裝使用者介 面在於用來連接驅動程式層與使用者撰寫的應用程式層, 在載入使用者介面後,❹者只需透科叫該介面程式庫 來驅動運動控制卡41即可。 於步驟106,利用個人電腦4之系統所提供的程式設 計環境(例如Visual 〇+及visual Basic),來開發運動控 制系統的前端程式,如資料輸入、控制系統參數設定、人 機介面部份;而另外之後端的運動控制程式部份,則可以 直接藉由運動控制卡41上所提供特有的運動控制指令組 來完成’如此一來在運動控制的程式設計上,以及人機介 面的圖形製作上,都會十分快速而有效。 於步驟107,當四軸運動控制裝置2所欲執行的運動 控制程式完成後’即開始執行此運動控制程式用以驅動運 動控制轴控卡41,以運動控制卡41在個人電腦4之架構 下,做為以個人電腦為基礎(PC_Based)之運動控制器的控 制核心。 於步驟108,將運動控制卡41工作所產生的訊號經514769 A7 ---------------- 5. Description of the Invention (6) The motherboard 44 contains a central processing unit and the memory device 43 contains a hard disk. In the personal computer 4 of the four-axis motion control device 2, the motion control card 41 and the digital input / output card 42 communicate with the motherboard 44 including a central processing unit and the memory device 43 including a hard disk through the ISA bus interface for two-way communication. . The input device 3 can use the RS232 serial port of the personal computer 4 or use the PS2 type keyboard connector to communicate with the personal computer 4 to communicate to input data, instructions, programs, and parameters. The digital input / output card 42 is an ISA bus n-contact 1/0 interface card. It can use several volts of voltage to drive internal circuits, and its external power can be input by 12_24V DC power. This digital input / output card 42 has different pins connected to a motherboard 44 containing a central processing unit of an industrial personal computer 4 as an input terminal of the digital input / output card 42, and the digital input / output card 42 has a different The pin is connected to a peripheral device below it for four-axis motion control, so as to be an output terminal of the digital input / output card 42. The motion control card 41 is a high-performance motion control card with two to three-axis linear and two-axis arc tweening ASIC-Based. It is very suitable for PC-based motion control under the personal computer architecture. 5 | control core. At the same time, if it can be used with Windows-based applications to develop motion control programs and related human-machine interfaces, the application level can be even greater. After the motion control card 41 completes the hardware parameter setting, driver installation, hardware installation and user interface installation, the user can use the input device 3 to perform four-axis motion control. Available motion control -------------- M ---- (Please read the precautions on the back before filling in this page) Order · · — Line-This paper size applies to Chinese national standards ( CNS) A4 specification (210 X 297 mm) 6 15858 514769 Consumer A7 V. Description of invention (7) The driver and motion control instruction set provided by card 41, in conjunction with the programming language design environment provided by the window system of personal computer 4 (Such as Dvisuai C + + and Visua 丨 Basic), use the input device 3 to develop the motion control system program, or use the driver program and motion control instruction set provided by the motion control card 41, and cooperate with the input device 3 to self-input the device 3 Input operation instructions and parameters to complete motion control. When the motion control card 41 is driven to operate with the digital input / output card 42 and the industrial personal computer 4, the digital input / output card 42 will output the control instructions and parameters input from the motion control card 41 and output it to the following The peripheral device that the first-level wants to control 'achieves the purpose of four-axis motion control. The greatest advantage of this four-axis motion control device 2 is an industrial personal computer 4 which incorporates a motion control card 41, a digital input / output card 42, and an input device 3. Users can use the provided instruction set to quickly develop application software suitable for their machine, eliminating the tedious steps of writing low-level programming languages. In addition to extending the characteristics commonly known in the past, such as 2-axis, 3-axis linear tween, arc tween, and continuous tween, it also provides 32 digital input / output (I / O) contacts. In terms of control software, More than 70 instructions cover motion control (position, speed, acceleration, etc.), 1 / 〇 control, logic operation, trigonometric function calculation, comparison instruction, subroutine call, etc. 500 preset coordinate points can be set by the user Set the content by yourself, so that you can quickly read the application later. The program is written in steps. The execution of each step can be determined by external input contacts. After the steps are completed, an output contact can be selected to be ON. , Users can flexibly plan the interaction between their own machine and external equipment (such as conveyor belt). " This paper size applies to China National Standard (CNS) A4 specifications ⑵Q x 297 public love) 7 15858 (Please read the precautions on the back before filling this page) ^ -------- tT ----- ---- · 514769 A7 __B7 V. Description of the invention (8) When the field input device 3 is a keyboard, the driver of the motion control card 41 announces the communication mode between the user application layer and the underlying hardware of the computer. Prepare the user to write an application program to drive the motion control card. When performing motion control, you must follow all the parameters declared in the driver to pass all the parameters, but in order to avoid the complicated format declaration in the driver, the application design is like Therefore, the motion control axis control card has a special user interface on the program architecture, which is used to connect the driver program layer with the application program layer written by the user, and this group of users The function name and format are very similar to the original architecture used in the DOS environment, so that the original DOS version of the application can be easily converted into an application that can be run in the Windows operating system environment. At the same time, after loading the user interface, the programmer only needs to call the interface library to drive the motion control card 41. The contained library provided by the user interface includes four categories: 1. For the motion driver card 41 S-style library with hardware startup and shutdown, 2. data-containing library for reading and writing specified input / output ports in Byte format; 3, data for specified input / Included library for reading and writing data on the output port; and 4 • Set the interrupted effective sub-simultaneous connection interrupt service program, and cancel the interrupted effective set of the included library. After installing the motion control card 41 on the computer operating system, use Users can use the programming environment provided by the system (such as Visual C + and Visual Basic 0) to develop front-end programs of the motion control system, such as data input, control system parameter settings, human Machine interface part, and the other part of the motion control program at the back end can directly use the unique motion provided on the motion control card 4 1 National Standard (CNS) A4 specification (21〇χ 297 mm) 15858 514769 V. Description of the invention (Control instruction set to complete, so that in the programming of motion control, and the graphics of the man-machine interface, it will be very Fast and effective. Because the Windows operating system is used as the development platform, the degree of openness of software and hardware is very high. Therefore, any Windows-based application and its related software and hardware technologies can be used. Integrate directly with the motion controller 'For example, a sample program written with Visual C ++ as a development tool' Some of the graphics are directly referenced to window system controls (windows common controls) to complete, while the motion control part is Directly constructed on the motion control card 41, in addition to showing the unique linear arc tweened motion instructions, it also reads back the current position setting from the theoretical and actual counters to verify the pulse number of the control card 41 to drive the motor It is the same as the pulse wave number designed by the designer. When the input device 3 is a teaching box, combined with a personal computer 4 including a motion control card 41 and a digital input / output card 42, users can use the provided instruction set to quickly develop application software suitable for their machine, eliminating the need for tediousness. Steps to write a low-level programming language. In terms of control software, more than 70 instructions cover motion control (position, speed, acceleration, etc.), I / O control, C series operation, corner function calculations, comparison instructions, subroutine calls, etc., _ preset coordinate points can The content is set by the user, which is convenient for quickly coughing the application later. The programming of the teaching box adopts the step-by-step method. Each step t can be performed by external input contacts ^, and after the step is performed 70, select a round of contact to be ON, the user can follow this Flexible planning of interaction between the machine itself and external equipment (such as conveyor belts). And use the teaching box with the program 'users can prepare _____ J to easily enter the designed program by round, and the paper size of the paper is used to save the wealth ^^ △ House 9 15858 514769 A7 V. Description of the invention (1 ()) The LCD display screen can learn the program execution and the status of various systems, and can display error messages when an error occurs on the machine, which is convenient for users to understand and deal with such situations. Fig. 4 is a connection operation situation of the four-axis motion control device 2 of the present invention and the peripheral equipment being controlled. As shown in the figure, the four-axis motion control device 2 may be connected to a driver 5 and may be connected to other driving devices. The four-axis motion control device 2 can output a position command as a digital signal to a driver 5, and the driver 5 feeds back a signal to the four-axis motion control device 2. The four-axis motion control device 2 can be connected to other drivers 6, and 32 input pin signals can be input from the driver 6, and from this four-axis motion control device 2 can output 32 output pin signals to The driver 6 is used for four-axis motion control operation. The driver 5 and the driver 6 are connected to the peripheral mechanical equipment 7 and the peripheral mechanical equipment 8 respectively. Fig. 5 is a diagram showing an embodiment of the system of Fig. 3. The input device 3 of t is a keyboard, that is, the process program of the four-axis motion control executed by the input device 3. As shown in the figure, f precedes step 101, copying the Chinese version of the magnetic disk to the personal snow " History Motion Control Card 41 driver program to the personal electric Teng 4's ide device 43 system directory. in. J m is followed by step 102, and then the driver settings are logged in to you. ^ ^ Hardware-related parameter settings are entered into the operating system's registry file, so that or applications can directly use these parameters. . Eight drivers * _103 'The paper size of the paper on the hardware should be interrupted 15858 (please read the precautions on the back before filling this page) Install t --------- Μ, 10 Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7--~~ —_I__ 5. Description of the Invention (u) A parameter is set in hardware. / At step 104, 'After completing the hardware parameter setting of the motion control card 41', and have determined to sigh the driver of the motion control card 41 and the hardware-related parameters [Login to the operating system, log in to the motion control card. 4,1 is connected to the motherboard 44 of the personal computer 4 through the ιαα bus interface, and the personal computer 4 is restarted. In step 105, the user interface in the magnetic disk is installed to a directory in the hard disk of the memory device 43 of the personal computer 4. The user interface is installed to connect the driver layer and the application program layer written by the user. After the user interface is loaded, the user only needs to call the interface library to drive the motion control card 41. In step 106, the programming environment provided by the system of the personal computer 4 (such as Visual 0+ and visual Basic) is used to develop the front-end programs of the motion control system, such as data input, control system parameter settings, and human-machine interface part; And the other part of the motion control program at the rear end can be directly completed by the unique motion control instruction set provided on the motion control card 41. In this way, in the design of the motion control and the graphics of the man-machine interface Will be very fast and effective. At step 107, when the motion control program to be executed by the four-axis motion control device 2 is completed, the motion control program is started to drive the motion control axis control card 41, and the motion control card 41 is under the structure of the personal computer 4. As the control core of PC_Based motion controller. In step 108, the signal generated by the motion control card 41 is processed.
(請先閱讀背面之注意事項再填寫本頁) -------訂--------- 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公爱)— 11 15858 514769 A7 Β7 五、發明說明(12 ) 由個人電腦4之含有中央處理器之主機板44而供給數位 輸入/輸出卡42,並由數位輸入/輸出卡42而輸出到與此 四軸運動控制裝置2連接之下一級之週邊驅動裝置,亦 自此四軸運動控制裝置4輸出控制訊號到與其連接之下一 級之週邊驅動裝置。 第ό圖為一流程圖,其中顯示於第5圖中如何利用電 腦系統所提供之程式設計環境來開發運動控制系統的應用 程式之程序的步驟。首先,於步驟1〇61,設計了 一層使 用者介面’用來連接驅動程式層與使用者撰寫的應用程式 層 ^輸入裝置3為一鍵盤時,由於運動控制卡41之驅 動程式宣告了使用者應用程式層與電腦底層硬體之間的溝 通方式’所以當使用者撰寫應用程式來驅動運動控制卡4】 以執行運動控制時,必須遵守驅動程式中所宣告的格式來 傳遞所有的參數,但是為了避免驅動程式中複雜的格式宣 告’造成一般應用程式設計師的困擾,所以運動控制軸控 卡在程式架構上,特別設計了一層使用者介面,用來連接 驅動程式層與使用者撰寫的應用程式層,而且這組使用者 介面的函數名稱與構成格式與原來使用在DOS環境版的 架構十分類似,如此可讓原來DOS版的應用程式更容易 轉換成能夠在視窗作業系統環境下執行的應用程式。 於步驟1062,在載入使用者介面後,程式設計師只 需透過呼叫該介面程式庫來驅動運動控制卡41即可。使 用者介面所提供的含式庫包括有四大類:1·對於運動驅動 + 4 1 &體啟動及關閉的含式庫,· 2 ·資料以Byte的格式對 (CNS) ‘ 規格⑵G χ 12 15858(Please read the precautions on the back before filling this page) ------- Order --------- This paper size applies to China National Standard (CNS) A4 (210 X 297 public love) — 11 15858 514769 A7 B7 V. Description of the invention (12) The digital input / output card 42 is provided by the main board 44 of the personal computer 4 including the central processing unit, and the digital input / output card 42 is used to output to this four-axis motion The control device 2 is connected to the peripheral drive device of the next stage, and the four-axis motion control device 4 outputs a control signal to the peripheral drive device of the next stage connected thereto. Fig. 6 is a flowchart showing the steps of how to use the programming environment provided by the computer system to develop the application program of the motion control system in Fig. 5. First, in step 1061, a layer of user interface is designed to connect the driver layer with the application layer written by the user ^ When the input device 3 is a keyboard, the user is announced by the driver of the motion control card 41 The communication method between the application layer and the underlying hardware of the computer 'so when the user writes an application to drive the motion control card 4] to perform motion control, all parameters must be passed in accordance with the format declared in the driver, but In order to avoid the complicated format declaration in the driver, which causes problems for general application programmers, the motion control axis control card has a special user interface on the program architecture to connect the driver layer and user-written applications. Program layer, and the function name and format of this set of user interface are very similar to the original structure used in DOS environment, so that the original DOS version applications can be easily converted into applications that can be executed in the Windows operating system environment. Program. In step 1062, after loading the user interface, the programmer only needs to drive the motion control card 41 by calling the interface library. The contained library provided by the user interface includes four major categories: 1. For the motion driven + 4 1 & body startup and shutdown of the contained library, 2 · The data is in Byte format (CNS) 'Specification ⑵G χ 12 15858
II--I « --- f請先閱讀背面之注意事項再填寫本頁) -丨線· . A7 五、發明說明(13 ) 指定的輸入/輸出埠進行資料讀寫的含式庫;3資料以w〇rd 的格式對指定的輸入/輸出埠進行資料讀寫的含式庫;以 及4·設定中斷發生有效並同時連接中斷服務程式,以及 取消中斷有效設定的含式庫。 ' 裝 訂 於步驟1063,開發運動控制系統的應用程式。在電 腦之作業系統上安裝好運動控制卡41後,使用者可於個 人電腦4之視窗系統環境下,可利用系統所提供的程式設 计環境(例如Visual C + +及Visual Basic),來開發運動控 制系統的前端程式,如資料輸入、控制系統參數設定、人| I 機介面部份,而另外後端的運動控制程式部份,則可以直 接藉由運動控制卡41上所提供特有的運動控制指令組來 完成’如此一來在運動控制的程式設計上,以及人機介面 的圖形製作上,都會十分快速而有效。 而由於採用視窗作業系統做為開發平台,軟硬體的開 放程度都很高,所以任何以視窗系統為基礎(Windows-Based)的應用程式以及其相關的周邊軟硬體技術皆可以直 接與運動控制器相結合,例如,以Visual C++為開發工具 來撰寫的範例程式,其中部份的圖形是直接引用視窗系統 控制(windows common controls)來完成,而運動控制部份 則是直接架構在運動控制卡41上,其中除了展現特有的 直線圓弧補間運動指令外,同時也從理論及實際計數器上 % I讀回目前的位置,藉以驗證控制卡41出去驅動馬達的脈 波數與設計者所設計的脈波數相同。 第7圖為表示第3圖之系統之另一實施例的運作流程 本紙張尺度適用中國國家鮮(CNS)A4規格(2】G X 297公祭) “色} 13 15858 A7 A7 經 濟 部 智 慧 財 產 局 員 玉 消 費 合 作 社 印 制 五、發明說明(14 ) 圖,其令之輸入裝置3為一使用教導盒,亦即,利用使用 教導盒當成輸入裝置3而執行四抽運動控制的流程程序。 如圖中所示,首先於步綠2(n,將磁碟片中之運動控制卡 41的驅動程式複製到個人電腦4的記憶裝置之硬碟的 一個作業系統之目錄中。 〃 ' —接著於步驟202,再將驅動程式與硬體相關的參數設 疋值登入到作業系統之登錄播中,以便讓其他如驅動程式 或應用程式,可以直接引用這些參數。 於步驟203,先行將硬體在電腦上的位置及中斷值二 個參數作硬體設定。 一 於步驟204,在完成運動控制卡41的硬體參數設定 後,並已確定將運動控制卡41之驅動程式以及硬體相關 的參數設定值登入到作業系統之登錄檔後,將運動控制卡 41與個人電腦4之主機板44以ISA匯流排介面連接後, 並重新將個人電腦4予以重新開機。 於步驟205,將磁片中的使用者介面安裝到個人電腦 4的記憶裝置43之硬碟中之某一目錄下,安裝使用者介 面在於用來連接驅動程式層與使用者撰寫的應用程式層, 在載入使用者介面後,使用者只需透過呼叫該介面程式庫 來驅動運動控制卡41即可。 於步驟206,由於已將運動控制卡41的驅動程式以 及運動控制指令組均載入電腦作業系統中,所以使用者可 利用使用教導盒來輸入所設計之程式、指令、參數,而由 使用教導盒上之LCD顯示幕可以得知程式執行及各項系 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 14 15858 · Μ--------^--------線 (請先閱讀背面之注意事項再填寫本頁) 五、發明說明(15 ) 統狀態,並可於機台發生錯誤時,顯示錯誤訊息,方便使 用者瞭解與處料類狀況。當輸人裝置3為教導盒時,結 合包含運動控制卡41、數位輸入/輸出卡42之個人電腦4, 使用者可以利用提供之指令集迅速發展適合其機台的應用 f體免去几長撰寫低階程式語言的步驟。此教導盒可利 用之扣令集有,控制軟體方面,7〇餘個指令涵蓋了運動 控制(位置,速度,加速度等),1/〇控制,邏輯運算,三 角,數運算,比較指令,副程式呼叫#,5GG個預設坐標 點可以由使用者自行設定内纟,方便爾後快速讀取應用。 教導盒之程式撰寫採步驟程序方式,每一步驟之執行與 句ΤΓ由外部之輸入接點決定,而在步驟執行完畢後, 可认擇輪出接點為ON,使用者可依此靈活規劃本身機 σ與外部设備(如輸送帶)之互動。而搭配程式使用教導II--I «--- f Please read the notes on the back before filling out this page)-丨 ·· A7 V. Description of the invention (13) An implicit library for reading and writing data from designated input / output ports; 3 The data library reads and writes data from the specified input / output port in the format of w0rd; and 4. The interrupt library that sets the interrupt to take effect and connects to the interrupt service program at the same time, and cancels the effective setting of the interrupt. 'Binding At step 1063, develop an application for the motion control system. After the motion control card 41 is installed on the operating system of the computer, the user can use the programming environment provided by the system (such as Visual C ++ and Visual Basic) to develop in the window system environment of the personal computer 4. The front-end programs of the motion control system, such as data input, control system parameter settings, human | I machine interface part, and the other back-end motion control program parts, can directly use the unique motion control provided on the motion control card 41 Instruction set to complete 'In this way, it is very fast and effective in the design of motion control programming and the graphics of the man-machine interface. And because the Windows operating system is used as a development platform, the degree of openness of software and hardware is very high, so any Windows-based application and its related peripheral software and hardware technologies can directly interact with sports. Controllers are combined, for example, a sample program written with Visual C ++ as a development tool. Some of the graphics are directly referenced from windows common controls to complete, while the motion control part is directly based on motion control. On the card 41, in addition to showing the unique linear arc tweening motion instruction, it also reads the current position from the theoretical and actual counter% I to verify the pulse number of the control card 41 to drive the motor and the designer ’s design. The number of pulse waves is the same. Figure 7 shows the operation flow of another embodiment of the system shown in Figure 3. The paper size applies to China National Fresh (CNS) A4 specifications (2) GX 297 sacrifice. "Color} 13 15858 A7 A7 Member of the Intellectual Property Bureau, Ministry of Economic Affairs The consumer cooperative prints a description of the invention (14). The input device 3 is a use teaching box, that is, a flow program for performing four-draw motion control using the use teaching box as the input device 3. As shown in the figure As shown in step green 2 (n), the driver of the motion control card 41 in the magnetic disk is copied to the directory of an operating system of the hard disk of the memory device of the personal computer 4. 〃 '—Next in step 202, Then set the parameter settings of the driver and the hardware to the registry of the operating system, so that other parameters such as the driver or application can directly reference these parameters. In step 203, the hardware on the computer is first The two parameters of position and interrupt value are set in hardware. First, in step 204, after setting the hardware parameters of the motion control card 41, it has been determined that the driver of the motion control card 41 is set to After the hardware-related parameter settings are logged into the operating system's log file, the motion control card 41 is connected to the motherboard 44 of the personal computer 4 via the ISA bus interface, and the personal computer 4 is restarted. At step 205 , The user interface in the magnetic disk is installed to a directory in the hard disk of the memory device 43 of the personal computer 4, and the user interface is installed to connect the driver layer and the application program layer written by the user. After entering the user interface, the user only needs to drive the motion control card 41 by calling the interface library. In step 206, the driver and the motion control instruction set of the motion control card 41 have been loaded into the computer operating system. Therefore, the user can use the teaching box to input the designed programs, instructions, and parameters, and the LCD display on the teaching box can be used to know the program execution and all the paper standards are applicable to the Chinese National Standard (CNS) A4 specifications (210 X 297 mm) 14 15858 · Μ -------- ^ -------- line (please read the precautions on the back before filling this page) 5. Description of the invention (15 ) Status, and can display error messages when the machine has an error, which is convenient for users to understand and process the materials. When the input device 3 is a teaching box, it is combined with a person including a motion control card 41 and a digital input / output card 42 Computer 4, users can use the provided instruction set to quickly develop an application suitable for their machine. The system eliminates the long steps of writing low-level programming languages. This teaching box has a set of deductions and control software. The remaining instructions cover motion control (position, speed, acceleration, etc.), 1 / 〇 control, logic operation, triangle, number operation, comparison instruction, subroutine call #, 5GG preset coordinate points can be set by the user. Alas, it is convenient to quickly read the application later. The programming of the teaching box adopts a step-by-step method. The execution of each step and sentence TΓ are determined by external input contacts. After the steps are completed, the round-out contact can be selected to be ON, and the user can flexibly plan according to this. The interaction between the machine σ and external equipment (such as a conveyor belt). And use the program to teach
孤使用者可以輕易地輸入設計之程式,而由其上之LCD 顯示幕可以得知程式執行及各項系統狀態,並可於機台發 生錯誤時,顯示錯誤訊息,方便使用者瞭解與處理這類狀 況。 於步驟207’當四軸運動控制裝置2所欲執行的運動 控制程式完成後,即開始執行此運動控制程式用以驅動運 動控制轴控卡41,以運動控制卡41在個人電腦4之架構 下做為以個人電腦為基礎(PC-Based)之運動控制器的控 制核心。 於步驟208 ’將運動控制卡41工作所產生的訊號經 由個人電腦4之含有中央處理器之主機板44而供給數位 514769 經濟部智慧財產局員Η消費合作社印製 A7 五、發明說明(16 ) 輸入/輪出卡42,並由數位輪入/輸出卡42而輸出到與此 四轴運動控制裝置2連接之下一級之週邊驅動裝置f亦即 自此四軸運動控制裝置4輸出控制訊號到與其連接之下一 級之週邊驅動裝置。 第8圖為一流程圖,其中顯示於第7圖中如何利用使 用教導盒來輸入所設計之程式、指令、參數來開發運動控 制系統的應用程式之程序的步驟。如第8圖所示之利用使 用教導盒來輸入程式、指令、參數之過程,首先,於步驟 2061,在教導盒之所提供的五種操作模式中,可任選一種 以進行操作。此所提供之五種操作模式為:(1)H〇me :此 模式是用來回到原點,此種型式可在系統參數中予以設 定,同時,各轴回到原點之順序以及速度亦可利用系統參 數予以設定,此回歸原點可用[Esc]鍵以進行放棄、取消; (2) Run :此模式是用來執行一個使用者程式,在關機之前 使用者最後程式編號將會保留在下一次開機時出現; (3) Pr〇gram Edit :此模式是用來做為程式編輯之用,含有 step edit逐步編輯、5〖60』(^手動逐步教導(此子模式為手 動教導功能,使用者可以手動微調操縱主軸)、step ins步 驟插入(此子模式是在一使用者程式内插入一步驟)、Step del步驟刪除(此子模式是在一使用者程式内刪除一步 驟)、prg del程式刪除(此子模式是用來刪除一使用者程 式)、prg copy程式複製(此子模式是用來複製一使用者程 式至另一個程式)、program backup程式備份(此子模式為 備伤使用者程式或切割路控到軟碟上)、pr〇gram download 本紙張尺度適用中國國家標準(CNS)A4規格(210 χ 297公髮) 16 15858 t--------訂---------線 f請先閱讀背面之注音?事項再填寫本頁} 514769 消 A7 五、發明說明(17 ) 、 程式下載(此子模式為下載軟碟上的使用者程式或切割路 徑到系統上)以及point set座標點設定(此子模式可設定 500個預設座標點)等子模式;(4)Test :此模式為測試一 使用者程式以及運動控制軸控卡内的y〇接點;(5)set up 汉疋系統模式’包含system parameter setting(此子模式 為規劃整個系統之設定)、axis paraineter setting(此子模 式為規劃各軸參數之設定)、c〇minand display on/off(系統 工程師可用此子模式來控制各個指令之顯示與否,使用者 將無法使用被隱藏的部份指令)、mode display on/off(系 統工程師可用此子模式來控制各個模式之顯示與否,使用 者將無法使用被隱藏的部份模式)以及change passw〇rd(此 子权式為在step模式下更改密碼)。 於步驟2062,操作模式之選擇順序可用、或、 鍵來循環切換同一階控制模式顯示,確認後按下、〇κ" 鍵以進入下一層操作模式,或按、ESC_鍵即可回到上一 層模式,而其之間的關係如第13圖中所示。使用者在各 個模式之間可做切換,例如,利用^或、鍵來循 環切換而由pr〇gramedit模式切換到test模式以進行操 作’而再利用V < Ύ鍵來循環切換由test模式切 換進入模式。而對於進入下一層之操作模式而言, 可按下' OK’鍵以進入到下一層操作模式中,例如,於Orphaned users can easily enter the designed program, and the LCD display on it can know the program execution and the status of various systems, and can display error messages when an error occurs on the machine, which is convenient for users to understand and handle this. Class status. At step 207 ', when the motion control program to be executed by the four-axis motion control device 2 is completed, the motion control program is started to drive the motion control axis control card 41, and the motion control card 41 is under the structure of the personal computer 4. As the control core of PC-based motion controller. At step 208 ', the signal generated by the motion control card 41 is supplied to the digital computer 514769 via the main board 44 containing the central processing unit of the personal computer 4. It is printed by the Intellectual Property Bureau of the Ministry of Economic Affairs and the Consumer Cooperative Society. / Wheel-out card 42 and output by digital wheel-in / out card 42 to the peripheral drive device f connected to the four-axis motion control device 2 at a lower level, that is, the four-axis motion control device 4 outputs a control signal to it. Connect peripheral drives of the next stage. Fig. 8 is a flowchart showing the steps of how to use the teaching box to input the designed programs, instructions, and parameters to develop the application program of the motion control system in Fig. 7. The process of using the teaching box to input programs, instructions, and parameters as shown in Figure 8 is first performed in step 2061. Among the five operation modes provided by the teaching box, any one can be selected for operation. The five operation modes provided here are: (1) Home: This mode is used to return to the origin. This type can be set in the system parameters. At the same time, the order and speed of each axis to return to the origin are also It can be set by using system parameters. This return to the origin can be abandoned or canceled by using the [Esc] key. (2) Run: This mode is used to execute a user program. The last program number of the user will be kept below before shutting down. Appears when power on once; (3) Pr〇gram Edit: This mode is used for program editing, including step edit, 5 〖60 』(^ Manual step by step teaching (this sub mode is manual teaching function, use You can manually fine-tune the operation of the main axis), step ins (insert a step in a user program), step del (delete a step in a user program), prg del Program delete (this sub-mode is used to delete a user program), prg copy program copy (this sub-mode is used to copy a user program to another program), program backup program backup (this The sub-mode is to prepare the user program or cut the road control to the floppy disk), pr0gram download This paper size is applicable to China National Standard (CNS) A4 specification (210 χ 297 public) 16 15858 t ------ --Order --------- Line f, please read the phonetic on the back? Matters, then fill out this page} 514769 Cancel A7 V. Invention Description (17), Program Download (This sub-mode is on the download floppy disk User program or cutting path to the system) and sub-modes such as point set (this sub-mode can set 500 preset coordinate points); (4) Test: This mode is to test a user program and motion control axis Y0 contact in the control card; (5) set up Chinese system mode 'includes system parameter setting (this sub-mode is the setting for planning the entire system), axis paraineter setting (this sub-mode is the setting for planning each axis parameter) , C〇minand display on / off (system engineers can use this sub-mode to control the display of each instruction, users will not be able to use some of the hidden instructions), mode display on / off (system engineers can use this sub-mode to Control the display of each mode No, the user will not be able to use some of the hidden modes) and change password (this sub-right is to change the password in step mode). At step 2062, the order of operation mode selection is available, or or to cycle through The same level of control mode is displayed. After confirming, press the 〇κ " key to enter the next-level operation mode, or press the ESC_ key to return to the previous-level mode, and the relationship between them is shown in Figure 13. Users can switch between various modes, for example, use the ^ or or key to cycle through and switch from pr0gramedit mode to test mode for operation ', and then use the V < Ύ key to cycle through the test mode. Enter the mode. For entering the next-level operation mode, you can press the 'OK' key to enter the next-level operation mode. For example, in
Program edit 模式下,按下、 早捃斗 埏以進入下一層之九個 子模式,而於子模式p〇int… 入更下之子模式中;於㈣模竹二按'〇K鍵以進 *7---- St模式下,按下、0Κ"鍵以推 15858 (請先閱讀背面之注意事項再填寫本頁) 訂---- 17 514769 __B7 五、發明說明(18 入下一層之五個子模式;於setup模式下,按下,οκ, 鍵以進入下層之五個子模式。不論於各個模式亦或子模 式中,可用—或*鍵來循環切換同一階控制模式, 以挑選所需之模式亦或子模式,例如,於五個主模式中, 可利用V或Ύ鍵來循環切換而將模式由program edit 模式而變為test模式,而於pr〇gram edit模式再經由’—, 或鍵來循環切換到setup模式。至於系統參數,則 可在〜模式令更改。而由使用教導盒上之LCD顯 示幕可以得知程式執行及各項系統狀態,並可於機台發生 錯誤時’顯示錯誤訊息’方便使用者瞭解與處理這類狀況。 於步驟2063,完成利用教導盒所輸入之指令所撰寫 而成的程式。教導盒之程式撰寫採步驟程序方式,+ 驟之執行與否,均可由外部之輸人接點決以‘在步驟執 行完畢後,可選擇H接點為⑽,使用者^依此靈‘ 規劃本身機台與外部設備(如輸送帶)之互動。 第9圖為表示第3圖之系統之一再實施例的運作流程 圖’其中之輸入裝置3為一鍵盤’亦即,利用鍵盤當成輸 入裝置3而執行四轴運動控制的流程程序。如圖中所示, 首先於步驟3〇1,先行將運動控制卡4]之硬懸在電嘴上 的位置及令斷值二個參數作硬體設定。 於步驟302’將磁碟片令之運動控制卡“的驅動程 式複製到個人電滕4的記憶裝置43之硬碟的一個 統之目錄中。 菜尔 ._^^3〇3,再將驅動程式與硬趙相關的參數設 本紙張尺度適用7規格⑵0 X 297公£7 18 訂 15858 A7 五、發明說明(19 ) 疋值登入到作業系統之登錄墙中 、 、兔錄權甲从便讓其他如驅動程式 或應用程式,可以直接引用這些參數。 於步驟304,在完成運動控制卡41的硬體參數設定 後,並已確定將運動控制卡41之驅動程式以及硬體相關 的參數a疋值登人到作業系統之登錄檔後,將運動控制卡 41與個人電腦4之主機板44以ISA匯流排介面連接後, 並重新將個人電腦4予以重新開機。 於步驟305,將磁片中的使用者介面安裝到個人電腦 4的記憶裝置43之硬碟中之某一目錄下,安裝使用者介 面在於用來連接驅動程式層與使用者撰寫的應用程式層, 在載入使用者介面後,使用者只需透過呼叫該介面程式庫 來驅動運動控制卡41即可。 於步驟306,利用個人電腦4之系統所提供的程式設 計環境(例如Visual C++及Visual Basic),來開發運動控 制系統的前端程式,如資料輸入、控制系統參數設定、人 機介面部份;而另外之後端的運動控制程式部份,則可以 直接藉由運動控制卡41上所提供特有的運動控制指令組 來完成,如此一來在運動控制的程式設計上,以及人機介 面的圖形製作上,都會十分快速而有效。 於步驟3 07,當四軸運動控制裝置2所欲執行的運動 控制程式完成後,即開始執行此運動控制程式用以驅動運 動控制軸控卡41,以運動控制卡41在個人電腦4之架構 下’做為以個人電腦為基礎(PC-Based)之運動控制器的控 制核心。 本紙張尺度適用中國國家標準(CNS)A4規格(21〇 x 297公釐 (請先閱讀背面之注意事項再填寫本頁) --------^--------- 經濟部智慧財產局員工消費合作社印製 15858 514769In the Program edit mode, press and 捃 to enter the nine sub-modes of the next layer, and in the sub-mode p〇int ... to enter the lower sub-mode; press the '〇K key to enter * 7 ---- In St mode, press, 0Κ " to push 15858 (please read the precautions on the back before filling this page) Order ---- 17 514769 __B7 V. Description of the invention (18 into the next five sub-layers Mode; in setup mode, press, οκ, to enter the lower five sub-modes. No matter in each mode or sub-mode, you can use-or * key to cycle through the same order control mode to select the desired mode Or the sub mode. For example, in the five main modes, you can use V or Ύ key to cycle to change the mode from program edit mode to test mode, and in pr0gram edit mode, you can use the '-, or key. To cycle to the setup mode. As for the system parameters, you can change them in the ~ mode. The LCD display on the teaching box can be used to know the program execution and various system states, and can be displayed when an error occurs on the machine. Error message 'for users to understand Handle this kind of situation. At step 2063, complete the program written by using the instructions entered by the teaching box. The programming of the teaching box adopts the step program method, + the execution of the step can be decided by the external input contact. Based on 'After the execution of the steps, the H contact can be selected as the user, and the user ^ follows this spirit' to plan the interaction between the machine and the external equipment (such as a conveyor belt). Figure 9 shows one of the systems shown in Figure 3. The operation flowchart of the embodiment 'where the input device 3 is a keyboard', that is, a flow program for performing four-axis motion control by using the keyboard as the input device 3, as shown in the figure, first in step 301, The two parameters of the position of the motion control card 4] hung on the electric nozzle and the interruption value are set by hardware. At step 302 ', the driver program of the motion control card of the disk order is copied to the personal electric Teng 4 A unified directory of the hard disk of the memory device 43. Caier ._ ^^ 3〇3, and then set the parameters related to the driver and hard Zhao This paper size applies 7 specifications ⑵0 X 297 public £ 7 18 Order 15858 A7 V. Description of the invention (19) Threshold login In the login wall of the operating system, you can record other parameters, such as drivers or applications, to directly reference these parameters. At step 304, after completing the hardware parameter setting of the motion control card 41, it has been determined. After registering the driver of the motion control card 41 and the hardware-related parameters a to the registration file of the operating system, connect the motion control card 41 and the motherboard 44 of the personal computer 4 through the ISA bus interface, and restart The personal computer 4 is restarted. In step 305, the user interface in the magnetic disk is installed in a directory in the hard disk of the memory device 43 of the personal computer 4. The user interface is installed to connect to the driver layer. With the application program layer written by the user, after loading the user interface, the user only needs to drive the motion control card 41 by calling the interface library. In step 306, the programming environment provided by the system of the personal computer 4 (such as Visual C ++ and Visual Basic) is used to develop the front-end programs of the motion control system, such as data input, control system parameter setting, and human-machine interface part; and In addition, the rear part of the motion control program part can be directly completed by the unique motion control instruction set provided on the motion control card 41. In this way, in the design of the motion control and the graphics of the man-machine interface, Will be very fast and effective. At step 3 07, when the motion control program to be executed by the four-axis motion control device 2 is completed, the motion control program is started to drive the motion control axis control card 41, and the structure of the motion control card 41 on the personal computer 4 The following is used as the control core of a PC-based motion controller. This paper size applies to China National Standard (CNS) A4 specification (21 × 297 mm (please read the precautions on the back before filling this page) -------- ^ --------- Printed by the Employee Consumption Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs 15858 514769
於步隸308’將運動控制卡41工作所產生的訊號經 由個人電腦4之含有中央處理器之主機板44而供給數位 輸入/輸出卡42,並由數位輸入/輸出卡42而輪出到與此 四軸運動控制裝置2連接之下一級之週邊驅動裝置,亦g丨 自此四軸運動控制裝置4輸出控制訊號到與其連接之下一 級之週邊驅動裝置。 第10圖為一流程圖,其中顯示於第9圖中如何利用 電腦系統所提供之程式設計環境來開發運動控制系統的應 用程式之程序的步驟。首先,於步驟3〇61,設計了一層 使用者介面,用來連接驅動程式層與使用者撰寫的應用程 式層。當輪入裝置3為一鍵盤時,由於運動控制卡41之 驅動程式旦告了使用者應用程式層與電腦底層硬體之間的 溝通方式,所以當使用者撰寫應用程式來驅動運動控制卡 41以執行運動控制時,必須遵守驅動程式中所宣告的格 式來傳遞所有的參數,但是為了避免驅動程式中複雜的格 式旦口這成一般應用程式設計師的困擾,所以運動控制 軸控卡在程式架構上,特別設計了一層使用者介面,用來 連接驅動程式層與使用者撰寫的應用程式層,而且這組使 用者介面的函數名稱與構成格式與原來使用在d〇s環境 版的架構十分類似,如此可讓原來D〇s版的應用程式更 容易轉換成能夠在視窗作業系統環境下執行的應用程式。 於步驟3062 ’在載入使用者介面後,程式設計師只 而透過啤叫該介面程式庫來驅動運動控制卡Ο即可。使 丨用者7丨面所提供的含式庫包括有四大類·· 1·對於運動驅動 &張尺度適用中國國At step 308 ', the signals generated by the motion control card 41 work are supplied to the digital input / output card 42 through the motherboard 44 containing the central processing unit of the personal computer 4, and the digital input / output card 42 rotates to and from The four-axis motion control device 2 is connected to the peripheral drive device of the next stage, and the four-axis motion control device 4 outputs a control signal to the peripheral drive device of the next stage connected thereto. Fig. 10 is a flowchart showing the steps of how to use the programming environment provided by the computer system to develop the application program of the motion control system in Fig. 9. First, in step 3061, a layer of user interface is designed to connect the driver layer with the application layer written by the user. When the turn-in device 3 is a keyboard, since the driver of the motion control card 41 reports the communication method between the user application layer and the underlying hardware of the computer, when the user writes an application to drive the motion control card 41 When performing motion control, all parameters must be passed in accordance with the format declared in the driver, but in order to avoid the complicated format in the driver, which is a problem for ordinary application programmers, the motion control axis control card is used in the program. In terms of architecture, a layer of user interface is specially designed to connect the driver layer and the application layer written by the user, and the function names and format of this set of user interfaces are very similar to those used in the DOS environment version. Similarly, this makes it easier for the original Dos version of the application to be converted to an application that can be run in a Windows operating system environment. In step 3062, after the user interface is loaded, the programmer can simply call the interface library to drive the motion control card. There are four main types of contained libraries provided by User 7: 1. For motion-driven & Zhang scales applicable to China
I I --- (請先閱讀背面之注意事項再填寫本頁) --線· 、-一D · · 20 15858 (請先閱讀背面之注意事項再填寫本頁)I I --- (Please read the precautions on the back before filling out this page) --Line · 、-一 D · · 20 15858 (Please read the precautions on the back before filling out this page)
A7A7
DI4/0VDI4 / 0V
第η@為表示第3圖之系統之另—實施例的運作流 程圖’其中之輸入裝置3為一使用教導盒,亦即,利用使 用教導盒當成輸人裝置3而執行四軸運動控制的流程程 序。如圖中所示,首先於步驟4〇1,先行將運動控制卡41 之硬體在電社的位置及中斯值二個參數作硬體設定。 步驟402’將磁碟片中之運動控制卡41的驅動程式 經 濟 部 智 慧 財 產 局 員 工- 消 費 合. 作 社 印 製 22 複製到個人電腦4的記憶裝置43之硬碟的一個作業系統 之目錄中。 接著於步驟403,再將驅動程式與硬體相關的參數設 疋值登入到作業系統之登錄檔中,以便讓其他如驅動程式 或應用程式,可以直接引用這些參數。 於步驟404,在完成運動控制卡41的硬體參數設定 後,並已確定將運動控制卡41之驅動程式以及硬體相關 的參數疋值登入到作業系統之登錄樓後,將運動控制卡 與個人電腦4之主機板44以ISA匯流排介面連接後’ 並重新將個人電腦4予以重新開機。 於步驟405,將磁片中的使用者介面安裝到個人電腦 4的記憶裝置43之硬碟中之某一目錄下,安裝使用者介 面在於用來連接驅動程式層與使用者撰寫的應用程式層, 在載入使用者介面後,使用者只需透過呼叫該介面程式庫 來驅動運動控制卡41即可。 於步驟406,由於已將運動控制卡41的驅動程式以 及運動控制指令組均載入電腦作業系統中,所以使用者可 利用使用教導盒來輸入所設計之程式、指令、參數,而由 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公釐) 15858 -------------^--------t----------線 (請先閱讀背面之注意事項再填寫本頁) 經 濟 部 智 慧 財 產 局 員 工 消 費 合 作 社 印 製 514769 A7 ______ B7 五、發明說明(23 ) 使用教導盒上之LCD顯示幕可以得知程式執行及各項系 統狀態,並可於機台發生錯誤時,顯示錯誤訊息,方便使 用者瞭解與處理這類狀況。 於步驟407,當四轴運動控制裝置2所欲執行的運動 控制程式完成後’即開始執行此運動控制程式用以驅動運 動控制軸控卡41,以運動控制卡41在個人電腦4之架構 下,做為以個人電知為基礎(PC-Based)之運動控制器的控 制核心。 於步驟408 ’將運動控制卡41工作所產生的訊號經 由個人電腦4之含有中央處理器之主機板44而供給數位 輸入/輸出卡42,並由數位輸入/輸出卡42而輸出到與此 四軸運動控制裝置2連接之下一級之週邊驅動裝置,亦即 自此四轴運動控制裝置4輸出控制訊號到與其連接之下一 級之週邊驅動裝置。 第12圖為一流程圖,其中顯示於第u圖中如何利用 使用教導盒來輸入所設計之程式、指令、參數來開發運動 控制系統的應用程式之程序的步驟。如第12圖所示之利 用使用教導盒來輸入程式、指令、參數之過程,首先,於 步驟4061,在教導盒之所提供的五種操作模式中,可任 選一種以進行操作。此所提供之五種操作模式為·· (l)Home·此权式是用來回到原點’此種型式可在系统參 數中予以設定,同時,各軸回到原點之順序以及速度亦可 利用系統參數予以設定,此回歸原點可用以進行 放棄、取消;(2)Run :此模式是用來執行一個使用者程式, ^本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐)' -------___ 23 15858 (請先閱讀背面之注意事項再填寫本頁)The η @ is the operation flowchart of another embodiment of the system shown in FIG. 3 ', wherein the input device 3 is a use teaching box, that is, using the use teaching box as the input device 3 to perform four-axis motion control Process procedures. As shown in the figure, first at step 401, the two parameters of the position of the hardware of the motion control card 41 in the electric company and the median value are set in hardware. Step 402 'Copy the driver of the motion control card 41 in the magnetic disk to the employee of the Intellectual Property Bureau of the Ministry of Economic Affairs-Consumer Cooperation. Printed by the agency 22 and copy it to the directory of an operating system on the hard disk of the memory device 43 of the personal computer 4 . Then in step 403, the driver and hardware-related parameter settings are registered in the operating system's registry file so that other parameters, such as the driver or application, can directly reference these parameters. At step 404, after the hardware parameter setting of the motion control card 41 is completed, it has been determined that the driver of the motion control card 41 and the parameters of the hardware related parameters are registered in the registration building of the operating system, and the motion control card and the After the motherboard 44 of the personal computer 4 is connected through the ISA bus interface, the personal computer 4 is restarted. In step 405, the user interface in the magnetic disk is installed in a directory in the hard disk of the memory device 43 of the personal computer 4. The user interface is installed to connect the driver layer and the application program layer written by the user. After loading the user interface, the user only needs to drive the motion control card 41 by calling the interface library. In step 406, since the driver program of the motion control card 41 and the motion control instruction set have been loaded into the computer operating system, the user can use the teaching box to input the designed programs, instructions, and parameters. Applicable to China National Standard (CNS) A4 specification (210 x 297 mm) 15858 ------------- ^ -------- t ---------- (Please read the precautions on the back before filling out this page) Printed by the Employees' Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs 514769 A7 ______ B7 V. Description of the invention (23) Use the LCD display on the teaching box to know the program execution and various System status, and when an error occurs on the machine, an error message is displayed to facilitate users to understand and handle such situations. In step 407, when the motion control program to be executed by the four-axis motion control device 2 is completed, the motion control program is started to drive the motion control axis control card 41, and the motion control card 41 is under the structure of the personal computer 4. , As the control core of PC-Based motion controller. At step 408 ', the signal generated by the motion control card 41 is supplied to the digital input / output card 42 via the motherboard 44 containing the central processing unit of the personal computer 4, and is output to the digital input / output card 42 by the digital input / output card 42. The axis motion control device 2 is connected to the peripheral drive device of the next stage, that is, the four-axis motion control device 4 outputs a control signal to the peripheral drive device of the next stage connected thereto. Fig. 12 is a flowchart showing the steps of how to use the teaching box to input the designed programs, instructions, and parameters to develop the application program of the motion control system in Fig. U. As shown in FIG. 12, the process of using the teaching box to input programs, instructions, and parameters is first performed in step 4061. Of the five operation modes provided by the teaching box, any one can be selected for operation. The five operation modes provided are: (l) Home. This weight is used to return to the origin. This type can be set in the system parameters. At the same time, the order and speed of each axis to return to the origin are also It can be set using system parameters, and this return to the origin can be used to give up and cancel. (2) Run: This mode is used to execute a user program. ^ This paper size applies the Chinese National Standard (CNS) A4 specification (210 X 297 mm) '-------___ 23 15858 (Please read the notes on the back before filling this page)
514769 A7 五、發明說明(24 ) (請先閱讀背面之注意事項再填寫本頁) 在關機之前使用者最後程式編號將會保留在下一次開機時 出現;(3)Program Edit:此模式是用來做為程式編輯之用, 含有step edit逐步編輯、step jog手動逐步教導(此子模 式為手動教導功能,使用者可以手動微調操縱主軸)、step ins步驟插入(此子模式是在一使用者程式内插入一步 驟)、step del步驟刪除(此子模式是在一使用者程式内刪 除一步驟)、prg del程式刪除(此子模式是用來刪除一使用 者程式)、prg copy程式複製(此子模式是用來複製一使用 者程式至另一個程式)、program backup程式備份(此子模 式為備份使用者程式或切割路徑到軟碟上)、Pr〇gram download程式下載(此子模式為下載軟碟上的使用者程式 或切割路徑到系統上)以及point set座標點設定(此子模式 可設定500個預設座標點)等子模式;(4)Test :此模式為 測試一使用者程式以及運動控制轴控卡内的1/〇接點; (5)set up 設定系統模式,包含 system parameter setting(此 子模式為規劃整個系統之設定) 、axis parameter setting(此 子模式為規劃各軸參數之設定)、command display on/off(系統工程師可用此子模式來控制各個指令之顯示與 否’使用者將無法使用被隱藏的部份指令)、mode display on/off(系統工程師可用此子模式來控制各個模式之顯示與 否’使用者將無法使用被隱藏的部份模式)以及change password(此子模式為在step模式下更改密碼)。 於步驟4062,操作模式之選擇順序可用、—"或 鍵來循環切換同一階控制模式顯示,確認後按下、OK" 本紙張尺度適用中國國家標準(CNS)A4規格(2】〇 X 297公釐) 24 15858 514769 A7 五、發明說明(25 ) 鍵以進入下一層操作模式,或按'Esc〃鍵即可回到上一 層模式,而其之間的關係如第13圖中所示。使用者在各 個模式之間可做切換,例如,利用、—〃或、鍵來循 環切換而由pr0gram edit模式切換到““模式以進行操 作,而再利用 '<或Ύ鍵來循環切換由⑽模式切 換進入setup模式。而對於進入下一層之操作模式而言, 可按下'0K’鍵以進入到下一層操作模式中,例如,於 program edit模式下,按下、〇ir鍵以進入下一層之九個 子模式’而於子模式point set下,可再按、鍵以進 入更下之子模式中;於test模式下,按下、〇κ々鍵以進 入下一層之五個子模式;於setUp模式下,按下、 鍵以進入下一層之五個子模式。不論於各個模式亦或子模 式中,可用"或Α 鍵來循環切換同一階控制模式, 以挑選所需之模式亦或子模式,例如,於五個主模式中, 可利用、或、—"鍵來循環切換而將模式由pr〇gram edit 模式而變為test模式,而於program edit模式再經由a ―夕 或、鍵來循環切換到setup模式。至於系統參數,則 可在A setup"模式中更改。而由使用教導盒上之LCD顯 示幕可以仔知程式執行及各項系統狀態,並可於機台發生 錯誤時’顯示錯誤訊息’方便使用者瞭解與處理這類狀況。 於步驟4063,完成利用教導盒所輸入之指令所撰寫 而成的程式。教導盒之程式撰寫採步驟程序方式,每一步 驟之執行與否’均可由外部之輸入接點決定,而在步驟執 行完畢後,可選擇一輸出接點為ON,使用者可依此靈活 15858 (請先閱讀背面之注意事項再填寫本頁) ^--------^---------^_wi. 經濟部智慧財產局員工消費合作社印製 514769514769 A7 V. Description of the invention (24) (Please read the precautions on the back before filling in this page) The user's last program number will be kept at the next boot before shutdown; (3) Program Edit: This mode is used to For program editing, it includes step edit, step jog manual step by step teaching (this sub mode is a manual teaching function, the user can manually fine-tune the operation of the main shaft), step ins step insertion (this sub mode is a user program Insert a step), step del delete (this submode deletes a step in a user program), prg del program delete (this submode is used to delete a user program), prg copy program copy (this Sub mode is used to copy one user program to another program, program backup program backup (this sub mode is to backup user programs or cut paths to a floppy disk), Pr0gram download program download (this sub mode is download User program on the floppy disk or cutting path to the system) and point set coordinates (this sub-mode can set 500 preset coordinates Equal sub mode; (4) Test: This mode is to test a user program and 1/0 contact in the motion control axis control card; (5) set up Set the system mode, including system parameter setting (this sub mode is planning The setting of the entire system), axis parameter setting (this sub-mode is to plan the setting of the parameters of each axis), command display on / off (system engineers can use this sub-mode to control the display of each instruction or not. The user will not be able to use and be hidden Part of the instructions), mode display on / off (system engineers can use this sub-mode to control the display of each mode 'users will not be able to use some of the hidden modes) and change password (this sub-mode is in step mode Change password). In step 4062, the selection order of the operation modes is available. — “Or key to cycle through the display of the same level of control mode. After confirming, press and OK. The paper size applies the Chinese National Standard (CNS) A4 specification (2) 〇X 297 (Mm) 24 15858 514769 A7 V. Description of the invention (25) key to enter the next-level operation mode, or press the 'Esc〃 key to return to the previous-level mode, and the relationship between them is shown in Figure 13. The user can switch between various modes, for example, use the-,-, or keys to cycle through and switch from pr0gram edit mode to "" mode for operation, and then use the '< or Ύ keys to cycle through ⑽Switch the mode to setup mode. For entering the next-level operation mode, you can press the '0K' key to enter the next-level operation mode. For example, in the program edit mode, press the and 0ir keys to enter the nine sub-modes of the next level. ' In the sub mode point set, you can press the and keys again to enter the lower sub mode. In the test mode, press the 〇κ々 key to enter the next five sub modes. In the setUp mode, press the Press to enter the next five sub-modes. Regardless of each mode or sub mode, you can use the " or Α key to cycle through the same level of control mode to select the desired mode or sub mode. For example, in the five main modes, you can use, or,- " key to cyclically switch and change the mode from pr0gram edit mode to test mode, and in program edit mode, cycle through a-or or key to cycle to setup mode. As for the system parameters, they can be changed in A setup " mode. And the LCD display on the teaching box can be used to know the program execution and the status of various systems, and to 'display an error message' when the machine has an error, which is convenient for users to understand and deal with such situations. In step 4063, the program written by using the instruction input by the teaching box is completed. The programming of the teaching box adopts the step-by-step method. The execution of each step can be determined by external input contacts. After the steps are completed, an output contact can be selected to be ON. The user can follow this flexibility. 15858 (Please read the precautions on the back before filling out this page) ^ -------- ^ --------- ^ _ wi. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 514769
五、發明說明(26 ) 經濟部智慧財產局員工消費合"作社印製 規劃本身機台與外部設備(如輸送帶)之互動。 第13圖為教導盒所提供之模式以及子模式的示意 圖。由圖中可清楚的得知教導盒所提供之模式以及子模 式,此所提供之五種操作模式為··(1)H〇me :此模式是用 來回到原點,此種型式可在系統參數中予以設定,同時, 各軸回到原點之順序以及速度亦可利用系統參數予以設 定,此回歸原點可用[Esc]鍵以進行放棄、取消;(2)Run : 此模式是用來執行一個使用者程式,在關機之前使用者最 後程式編號將會保留在下一次開機時出現;(3)Pr〇gram Edit :此模式是用來做為程式編輯之用,含有step edit逐 步編輯、step jog手動逐步教導(此子模式為手動教導功 月b ’使用者可以手動微調操縱主軸)、stepins#驟插入(此 子模式是在一使用者程式内插入一步驟)、step del步驟刪 除(此子模式是在一使用者程式内刪除一步驟)、prg del程 式刪除(此子模式疋用來刪除一使用者程式)、prg⑶py程 式複製(此子模式是用來複製一使用者程式至另一個程 式)、program backup程式備份(此子模式為備份使用者程 式或切割路徑到軟碟上)、program download程式下載(此 子模式為下載軟碟上的使用者程式或切割路徑到系統上) 以及point set座標點設定(此子模式可設定500個預設座 標點)等子模式;(4)Test :此模式為測試一使用者程式以 及運動控制轴控卡内的I/O接點;(5)set up設定系統模式, 包含system parameter setting(此子模式為規劃整個系統 之設定)、axis parameter setting(此子模式為規劃各軸參 ^--------^---------線 (請先閱讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 26 15858 514769 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明(27 ) 數之设定)、cominand display on/off(系統工程師可用此子 模式來控制各個指令之顯示與否,使用者將無法使用被隱 藏的部份指令)、mode display on/off(系統工程師可用此 子模式來控制各個模式之顯示與否,使用者將無法使用被 隱藏的部份模式)以及change password(此子模式為在step 模式下更改密碼)。 綜合以上的實施例以及方法,我們可以得到此四軸運 動控制方法及裝置,即是提供使用者利用電腦架構控制而 來進行四軸運動控制,此四軸運動控制裝置包括一個包含 一運動控制卡、一數位輸入/輸出卡的個人電腦以及一輸 入裝置。而運用此四轴運動控制裝置以進行運動控制時, 首先執行將運動控制卡的驅動程式複製到工業用個人電腦 的一個作業系統之目錄中,並將驅動程式與硬體相關的參 數設定值登入到作業系統之登錄檔的程序,以便讓其他如 驅動程式或應用程式,可以直接引用這些參數以及指令 組’以及將運動控制卡置入個人電腦並成功地驅動後,並 接著進行將使用者介面由磁片中安裝到個人電腦之硬碟甲 之某一目錄下的程序,而安裝使用者介面在於用來連接驅 動程式層與使用者撰寫的應用程式層,在載入使用者介面 後’使用者只需透過呼叫該介面程式庫來驅動運動控制轴 控卡即可。使用者可利用輸入裝置(鍵盤或使用教導盒)來 撰寫應用程式而驅動運動控制卡以執行運動控制,或是讀 取於磁碟中的應用程式而驅動運動控制卡以執行運動控 制,而由於採用視窗作業系統做為開發平台,軟硬體的開 (請先閱讀背面之注意事項再填寫本頁) 訂---- 線 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 27 15858V. Description of Invention (26) Consumption of Employees of the Intellectual Property Bureau of the Ministry of Economic Affairs " Printed by Zuosha Co., Ltd. Planning the interaction between the machine itself and external equipment (such as conveyor belts). Fig. 13 is a schematic diagram of the modes and sub modes provided by the teaching box. The mode and sub-mode provided by the teaching box can be clearly known from the figure. The five operation modes provided are: (1) Home: This mode is used to return to the origin. This type can be found at It can be set in the system parameters. At the same time, the order and speed of returning to the origin of each axis can also be set by the system parameters. This return to the origin can be abandoned or canceled by using the [Esc] key; (2) Run: This mode is used To run a user program, the last program number of the user will be kept at the next boot before shutting down; (3) Pr0gram Edit: This mode is used for program editing, including step edit, step jog manual step-by-step teaching (this sub-mode is manual teaching of the month b 'users can manually fine-tune the operation of the main shaft), stepins # step insertion (this sub-mode is to insert a step in a user program), step del step delete ( This sub-mode deletes a step in a user program), prg del program delete (this sub-mode 疋 is used to delete a user program), prg⑶py program copy (this sub-mode is used to copy a User program to another program), program backup program backup (this submode is to backup the user program or cutting path to a floppy disk), program download program download (this submode is to download the user program on the floppy disk or cut (Path to the system) and point set coordinate point setting (this sub mode can set 500 preset coordinate points) and other sub modes; (4) Test: This mode is to test a user program and I in the motion control axis control card. / O contact; (5) set up to set the system mode, including system parameter setting (this sub-mode is the setting for planning the entire system), axis parameter setting (this sub-mode is for planning each axis parameter ^ ------- -^ --------- line (please read the precautions on the back before filling this page) This paper size is applicable to China National Standard (CNS) A4 (210 X 297 mm) 26 15858 514769 Ministry of Economy Wisdom Printed by the Consumer Cooperative of the Property Bureau A7 B7 V. Description of invention (27) Number setting), cominand display on / off (System engineers can use this sub-mode to control the display of each instruction, users will not be able to use the hiddenHidden instructions), mode display on / off (system engineers can use this sub-mode to control the display of each mode, users will not be able to use some of the hidden modes) and change password (this sub-mode is in step Password in mode). Based on the above embodiments and methods, we can obtain the four-axis motion control method and device, which is to provide users with four-axis motion control using computer architecture control. The four-axis motion control device includes a motion control card. A personal computer with a digital input / output card and an input device. When using this four-axis motion control device for motion control, first copy the driver of the motion control card to a directory of an operating system of an industrial personal computer, and log in the parameter settings of the driver and hardware. The procedure to the registry file of the operating system, so that other parameters such as drivers or applications can directly reference these parameters and instruction sets, and after the motion control card is placed in the personal computer and successfully driven, then the user interface is then carried out. Programs installed in a certain directory on the hard disk of the personal computer from the magnetic disk, and the installation user interface is used to connect the driver layer and the application program layer written by the user, and 'use after loading the user interface The user only needs to drive the motion control axis control card by calling the interface library. The user can use an input device (keyboard or use a teaching box) to write an application to drive the motion control card to perform motion control, or an application read in a disk to drive the motion control card to perform motion control. Windows operating system is used as the development platform, and the software and hardware are opened (please read the precautions on the back before filling this page). ---- The size of the paper is applicable to the Chinese National Standard (CNS) A4 (210 X 297). %) 27 15858
514/W A7514 / W A7
五、發明說明(28 ) 經濟部智慧財產局員工消費合作社印製 放程度都很高,所以任何以視窗系統為基礎^dows-V. Description of the invention (28) Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs, the level of printing is very high, so any window system is used as the basis ^ dows-
Baseci) 的應用程式以及其相關 的周邊軟硬趙技術皆可以直 接與運動控制器相結合’此四轴運動控制方法與裝置的優 點有: L可讓使用者於與電腦主機連接之輸入裝置進行操作 時’可免去冗長撰寫低階程式語言的步驟,而能利用運動 控制卡所提供的指令組來簡便的進行四轴運動控制; 2. 提供-種四軸運動控置方法與裝置,可讓使用者於 與電滕主機連接之鍵盤’利用含有運動控制卡之電滕主機 來開發系統之四、運動㈣程式’而當進行操作時可免去 冗長撰寫低階程式語的步驟’而能利用運動控制卡所提 供的指令組來簡便的進行四軸運動控制; 3. 提供一種四轴運動控置方法與裝置,可讓使用者於 與電滕主機連接之使用教導盒,利用含有運動控制卡之電 腦主機來輸人指令集,而當進行操作時可免去冗長撰寫低 階程式語f的步驟’巾能利用運動控制卡所提供的指令組 來簡便的進行四軸運動控制; 4·可利用運動控制軸控卡所提供之驅動程式以及運動 控制扣令组,配合視窗系統所提供的程式語言設計環境(例 如Visual C++及Visual Basic),利用鍵盤當成輸入裝置來 開發運動控制系統程式,而當進行操作時可免去冗長撰寫 低階程式語言的步驟而簡便的進行四軸運動控制;以及 5·可利用運動控制軸控卡所提供之驅動程式以及運動 控制指令組,利用使用教導盒當成輪入裝置,而自教導盒 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) ---------------------t---------線 (請先閱讀背面之注意事項再填寫本頁) 28 15858 514769Baseci) application and its related hardware and software technology can be directly combined with the motion controller. The advantages of this four-axis motion control method and device are: L allows users to perform on the input device connected to the host computer During operation, the steps of writing low-level programming language can be avoided, and the four-axis motion control can be easily performed by using the instruction set provided by the motion control card; 2. Provide a four-axis motion control method and device, which can Let users use the keyboard connected with the electric host to 'use the electric host with motion control card to develop the system's fourth, motion program', and can avoid the long steps of writing low-level programming words when operating. Use the instruction set provided by the motion control card to conveniently perform four-axis motion control; 3. Provide a four-axis motion control method and device that allow users to use the teaching box connected to the electric host and use motion control The host computer of the card is used to input the instruction set, and when performing the operation, the step of writing the low-level formula f can be avoided. The motion control card can be used. The instruction set provided is used for simple four-axis motion control; 4. The driver provided by the motion control axis control card and the motion control deduction set can be used in conjunction with the programming language design environment provided by the window system (such as Visual C ++ and Visual Basic), using the keyboard as an input device to develop the motion control system program, and when performing the operation, it can easily perform the four-axis motion control without the steps of writing a low-level programming language; and 5. Can use the motion control axis control card The provided driver program and motion control instruction set use the teaching box as a turn-in device, and the paper size of the self-teaching box applies the Chinese National Standard (CNS) A4 specification (210 X 297 mm) ------- -------------- t --------- line (please read the notes on the back before filling this page) 28 15858 514769
五、發明說明(29 ) 輸入操作指令、參數’當進行操作時可旁麥 j j尤紊几長撰寫低階 程式語言的步驟,而能簡便的進行四軸運動控制。 以上所述僅為本發明之較佳實施例而已,並非用以限 定本發明之範圍;凡其它未脫離本發明所揭示之精神下所 完成之等效改變或修飾,均應包含在下述之專利範圍内。 [元件符號] (請先閱讀背面之注意事項再填寫本頁)V. Description of the invention (29) Input operation instructions and parameters ’When performing operations, you can write steps in a low-level programming language, and perform simple four-axis motion control. The above are merely preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent changes or modifications made without departing from the spirit disclosed by the present invention shall be included in the following patents Within range. [Component symbol] (Please read the precautions on the back before filling this page)
2 四軸運動控制裝置 3 輸入裝置 4 個人電腦 41 運動控制卡 42 數位輸入/輸出卡 43 記憶裝置 44 主機板 5、6 驅動器 7 > 8 週邊機械設備 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 29 158582 Four-axis motion control device 3 Input device 4 Personal computer 41 Motion control card 42 Digital input / output card 43 Memory device 44 Motherboard 5, 6 Drive 7 > 8 Peripheral machinery and equipment Ministry of Economic Affairs Intellectual Property Bureau Employees Consumer Cooperative printed Paper size applies to China National Standard (CNS) A4 (210 X 297 mm) 29 15858
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW89100386A TW514769B (en) | 2000-01-12 | 2000-01-12 | Four-axis motion control method and apparatus thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW89100386A TW514769B (en) | 2000-01-12 | 2000-01-12 | Four-axis motion control method and apparatus thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
TW514769B true TW514769B (en) | 2002-12-21 |
Family
ID=27786745
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW89100386A TW514769B (en) | 2000-01-12 | 2000-01-12 | Four-axis motion control method and apparatus thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW514769B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI410369B (en) * | 2006-12-08 | 2013-10-01 | Hon Hai Prec Ind Co Ltd | System and method for inspecting material spreading belts |
TWI464589B (en) * | 2009-06-16 | 2014-12-11 | Hon Hai Prec Ind Co Ltd | System and method for controlling motion of a measuring machine |
-
2000
- 2000-01-12 TW TW89100386A patent/TW514769B/en not_active IP Right Cessation
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI410369B (en) * | 2006-12-08 | 2013-10-01 | Hon Hai Prec Ind Co Ltd | System and method for inspecting material spreading belts |
TWI464589B (en) * | 2009-06-16 | 2014-12-11 | Hon Hai Prec Ind Co Ltd | System and method for controlling motion of a measuring machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2266446C (en) | Emulator for visual display object files and method of operation thereof | |
TW494356B (en) | Real-time process control simulation method and apparatus | |
EP2804058B1 (en) | System and method for emulation of an automation control system | |
US6513058B2 (en) | Distribution of motion control commands over a network | |
JP2008159046A (en) | Motion control system | |
JPH02230355A (en) | Dynamically structurable portable type computer system | |
US7174549B2 (en) | Computer system and method for storing product keys thereof | |
JPH1083287A (en) | Computer system and its operating method | |
CN110497362A (en) | The electronic tool and method of multiple settings are replicated from a machine tool to another | |
TW514769B (en) | Four-axis motion control method and apparatus thereof | |
US20140249794A1 (en) | Configuration with embedded firmware for offline instrument user settings implementation | |
JP4566904B2 (en) | System, control program and recording medium recording the program, and image data creation program and recording medium recording the program | |
JP2006331278A (en) | Programmable display, control program, storage medium recording the program, screen forming device, screen forming program, and storage medium recording the program | |
JP2016126483A (en) | Programmable display | |
JP2003044108A (en) | Registering device for editor, registering program, and recording medium where the same is recorded | |
JP2007179112A5 (en) | ||
JP2000315105A (en) | Management system for nc machine tool and its management program | |
JP2001075791A (en) | Editor device and recording medium recording editor program | |
JP7118290B1 (en) | Input/output module and control system | |
JP7447574B2 (en) | Support equipment, support programs and support methods | |
JP2007094972A (en) | Programmable display, control program, storage medium recording the program, screen generating device, screen generating program and storage medium recording the program | |
JP2004227392A (en) | Display device | |
JP2021194746A (en) | Robot control device | |
WO2022074521A1 (en) | Ludic-educational modular system | |
JPH08263245A (en) | Display picture preparing device for programmable display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent | ||
MM4A | Annulment or lapse of patent due to non-payment of fees |