TW201525632A - Numerical control system of coordinate synchronization and numerical controlling method thereof - Google Patents

Numerical control system of coordinate synchronization and numerical controlling method thereof Download PDF

Info

Publication number
TW201525632A
TW201525632A TW102149191A TW102149191A TW201525632A TW 201525632 A TW201525632 A TW 201525632A TW 102149191 A TW102149191 A TW 102149191A TW 102149191 A TW102149191 A TW 102149191A TW 201525632 A TW201525632 A TW 201525632A
Authority
TW
Taiwan
Prior art keywords
machine
coordinate system
processing machine
position coordinate
robot arm
Prior art date
Application number
TW102149191A
Other languages
Chinese (zh)
Other versions
TWI494724B (en
Inventor
Jiu-Lou Yan
Sheng-An Yang
Original Assignee
Syntec Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Syntec Inc filed Critical Syntec Inc
Priority to TW102149191A priority Critical patent/TWI494724B/en
Publication of TW201525632A publication Critical patent/TW201525632A/en
Application granted granted Critical
Publication of TWI494724B publication Critical patent/TWI494724B/en

Links

Landscapes

  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

A numerical control system of coordinate synchronization includes a handheld input device, a numerical controller, at least one CNC machine, and at least one robot. The numerical controller includes a processing unit to calculate the rotation and translation relationship between the coordinates of the CNC machine and the robot, and thus performs the coordinate synchronization. As a result, the purpose of simplifying the procedure of editing NC programs and improving production efficiency can be achieved.

Description

具有座標同步功能之數值控制系統及其數值控制方法 Numerical control system with coordinate synchronization function and numerical control method thereof

本發明係有關於一種數值控制系統及其數值控制方法,特別是有關於一種具有座標同步功能之數值控制系統與其數值控制方法。 The invention relates to a numerical control system and a numerical control method thereof, in particular to a numerical control system with coordinate synchronization function and a numerical control method thereof.

業界進行加工機與機械手臂同時運作時,係利用個別獨立的操作系統進行操作,而加工機與機械手臂的座標系並不相同,如需要將加工機與機械手臂的工具中心點(Tool Center Point,TCP)移動至同一位置點時,則必須分別撰寫屬於特定座標系的加工程式,並且加工機或是機械手臂的每個動作都需要使用教導功能逐一進行,而由於座標系的不同,每個教導功能的位置點在不同座標系下均不相同,在進行相互位置座標確認時,必須在個別的操作系統操作。再者,若加工條件稍微修改,則必須重新進行座標確認的動作以及編修程式語言與教導點位置。此外,加工機與機械手臂之操作系統的程式語言並不相同,在整體加工過程中,需架設兩種操作系統,並且操作人員必須熟知兩種程式語言撰寫,如此一來,不僅增加加工、人力成本,同時也使得整體操作流程更加複雜。 When the processing machine and the robot arm are operated at the same time, the operation is performed by an independent operating system, and the coordinate system of the processing machine and the robot arm is not the same. For example, the tool center point of the processing machine and the robot arm is needed (Tool Center Point) , TCP) When moving to the same position, the machining program belonging to a specific coordinate system must be written separately, and each action of the processing machine or the robot arm needs to be performed one by one using the teaching function, and each of the coordinates is different. The position of the teaching function is different under different coordinate systems, and must be operated by an individual operating system when confirming mutual position coordinates. Furthermore, if the machining conditions are slightly modified, the coordinate confirmation operation and the programming language and the teaching point position must be re-executed. In addition, the programming language of the processing machine and the robotic arm operating system is not the same. In the whole processing process, two operating systems need to be set up, and the operator must be familiar with writing two programming languages, thus increasing the processing and manpower. The cost also complicates the overall operational process.

為了解決先前技術所述之問題,本發明之主要目的在於一種數值控制方法,用以控制一第一機台及一第二機台,包括下列步驟:移動第一機台之一工具中心點至一第一位置點,並紀錄第一位置點以第一機台之位置座標系觀察所得到之座標值;移 動第二機台之一工具中心點至第一位置點,並紀錄第一位置點以第二機台之位置座標系觀察所得到之座標值;移動第一機台之工具中心點至一第二位置點,並紀錄第二位置點以第一機台之位置座標系觀察所得到之座標值;移動第二機台之工具中心點至第二位置點,並紀錄第二位置點以第二機台之位置座標系觀察所得到之座標值;移動第一機台之工具中心點至一第三位置點,並紀錄第三位置點以第一機台之位置座標系觀察所得到之座標值;移動第二機台之工具中心點至第三位置點,並記錄第三位置點以第二機台之位置座標系觀察所得到之座標值;根據第一位置點、第二位置點及第三位置點分別以第一機台之位置座標系及第二機台之位置座標系觀察所得到之座標值計算第一機台之位置座標系與第二機台之位置座標系之一旋轉關係方程式;根據旋轉關係方程式,計算第一機台之位置座標系與第二機台之位置座標系之一位移關係方程式;儲存旋轉關係方程式與位移關係方程式;以及根據第一機台之位置座標系、第二機台之位置座標系、旋轉關係方程式與位移關係方程式,控制第一機台與第二機台。 In order to solve the problems described in the prior art, the main object of the present invention is a numerical control method for controlling a first machine and a second machine, comprising the steps of: moving a tool center point of the first machine to a first position point, and recording the coordinate value obtained by observing the first position point at the position coordinate system of the first machine; Move one of the tool center points of the second machine to the first position point, and record the coordinate value obtained by observing the first position point with the position coordinate system of the second machine; moving the tool center point of the first machine to the first Two position points, and record the coordinate value obtained by observing the second position point with the position coordinate system of the first machine; moving the tool center point of the second machine to the second position point, and recording the second position point to the second position The position coordinate of the machine is the coordinate value obtained by observing the coordinate value; moving the center point of the tool of the first machine to a third position point, and recording the coordinate value obtained by observing the position coordinate system of the position of the first machine at the third position point Moving the tool center point of the second machine to the third position point, and recording the coordinate value obtained by observing the third position point by the position coordinate system of the second machine; according to the first position point, the second position point, and the The three position points respectively calculate the rotation relationship between the position coordinate system of the first machine and the position coordinate system of the second machine by the coordinate value obtained by observing the position coordinate system of the first machine and the position coordinate system of the second machine. Equation; according to the rotation relationship a program for calculating a displacement relationship equation of a position coordinate system of the first machine and a position coordinate system of the second machine; storing a rotational relationship equation and a displacement relationship equation; and a coordinate system according to the position of the first machine, the second machine The position coordinate system, the rotational relationship equation and the displacement relationship equation control the first machine and the second machine.

所述的數值控制方法,其中移動第一機台之工具中心點至第一位置點之步驟包含下列步驟:第一機台之工具中心點處設置一淺圓盤,淺圓盤之一圓心對準第一機台之工具中心點,移動第一機台使圓心對準第一位置點。 The numerical control method, wherein the step of moving the tool center point of the first machine to the first position point comprises the following steps: setting a shallow disc at the center point of the tool of the first machine, and one of the center points of the shallow disc The center point of the tool of the first machine is moved, and the first machine is moved so that the center of the circle is aligned with the first position.

所述的數值控制方法,其中移動第二機台之工具中心點至第一位置點的步驟包含下列步驟:於第二機台之工具中心點設置一圓球,圓球與淺圓盤直徑相同,圓球之球心對準第二機台之工具中心點,移動第二機台使圓球與淺圓盤接合且球心恰對準第一位置點。 The numerical control method, wherein the step of moving the tool center point of the second machine to the first position point comprises the following steps: setting a ball at the center point of the tool of the second machine, the ball having the same diameter as the shallow disk, The center of the ball is aligned with the center point of the tool of the second machine, and the second machine is moved to engage the ball with the shallow disk and the ball is aligned with the first position.

所述的數值控制方法,其中第一機台係一加工機與一機械手臂其中之一。 The numerical control method, wherein the first machine is one of a processing machine and a mechanical arm.

本發明再一主要目的在於提供一種具有座標同步功能之數值控制系統,包括至少一加工機、至少一機械手臂、一手持輸入裝置及一數值控制器,加工機與機械手臂分別沿著一加工 機位置座標系與一機械手臂位置座標系進行定位,加工機位置座標系與機械手臂位置座標系內建於數值控制器中,手持輸入裝置、加工機及機械手臂電性連接於數值控制器,其特徵在於:數值控制器包含:一使用者介面,其與手持輸入裝置電性連接,用以接收自手持輸入裝置所輸入之加工機之定位指令及機械手臂之定位指令,並用以紀錄經選取之至少三個非共線之不同位置點分別以加工機之位置座標系及機械手臂之位置座標系觀察所得到之座標值;及一核心處理器,其與使用者介面電性連接,並與加工機及機械手臂電性連接,用以經由使用者介面接收加工機之定位指令、機械手臂之定位指令、以及至少三個非共線之不同位置點分別以加工機之位置座標系及機械手臂之位置座標系觀察所得到之座標值,並根據加工機位置座標系、機械手臂位置座標系及至少三個非共線之不同位置點分別以加工機之位置座標系及機械手臂之位置座標系觀察所得到之座標值,計算加工機之位置座標系與機械手臂之位置座標系之一旋轉關係方程式,並根據旋轉關係方程式進一步計算加工機之位置座標系與機械手臂之位置座標系之一位移關係方程式,核心處理器儲存旋轉關係方程式及位移關係方程式,並根據加工機位置座標系及加工機之定位指令控制加工機,以及根據機械手臂位置座標系、機械手臂之定位指令、旋轉關係方程式及位移關係方程式控制機械手臂;其中,至少三個非共線之不同位置點係位於加工機與機械手臂之作業重疊區域。 A further main object of the present invention is to provide a numerical control system having a coordinate synchronization function, comprising at least one processing machine, at least one mechanical arm, a hand-held input device and a numerical controller, and the processing machine and the mechanical arm are respectively processed along one side. The machine position coordinate system is positioned with a mechanical arm position coordinate system. The machine position coordinate system and the mechanical arm position coordinate system are built in the numerical controller, and the handheld input device, the processing machine and the mechanical arm are electrically connected to the numerical controller. The numerical controller is characterized in that: the numerical controller comprises: a user interface electrically connected to the handheld input device for receiving the positioning command of the processing machine input from the handheld input device and the positioning command of the robot arm, and is used for recording and selecting The coordinate points obtained by observing the position coordinate system of the processing machine and the position coordinate system of the mechanical arm are respectively at least three non-collinear points; and a core processor electrically connected to the user interface, and The processing machine and the mechanical arm are electrically connected to receive the positioning instruction of the processing machine through the user interface, the positioning command of the robot arm, and the position points of the processing machine and the mechanical arm respectively at different positions of the at least three non-collinear lines The coordinate of the position is the coordinate value obtained by observing, and according to the position coordinate system of the processing machine, the coordinate system of the mechanical arm position At least three non-collinear points are respectively observed by the position coordinate system of the processing machine and the coordinate value obtained by the position coordinate system of the robot arm, and the rotational relationship between the position coordinate system of the processing machine and the position coordinate system of the mechanical arm is calculated. Equation, and further calculate the displacement relationship equation of the position coordinate system of the processing machine and the position coordinate system of the mechanical arm according to the rotation relationship equation, the core processor stores the rotation relationship equation and the displacement relationship equation, and according to the coordinate position coordinate system and the processing machine of the processing machine The positioning command controls the processing machine, and controls the robot arm according to the coordinate position coordinate system of the robot arm, the positioning command of the robot arm, the rotational relationship equation and the displacement relationship equation; wherein at least three non-collinear points are located at the processing machine and the machine The overlapping area of the arm's work.

所述的具有座標同步功能之數值控制系統,其中核心處理器包含:一運算單元,其內建有加工機位置座標系與機械手臂位置座標系,用以接收至少三個非共線之不同位置點分別以加工機之位置座標系與機械手臂之位置座標系觀察所得到之座標值,並計算加工機位置座標系與機械手臂位置座標系之旋轉關係方程式與位移關係方程式;一共享記憶體,其與運算單元電性連接,其接收並儲存加工機位置座標系、機械手臂位置座標系、旋轉關係方程式及位移關係方程式;一加工機控制模組,其與手持輸入裝置及共享記憶體電性連接,其接收加工機之定位指令、加 工機之位置座標系、旋轉關係方程式及位移關係方程式,並用以控制加工機;以及一機械手臂控制模組,其與手持輸入裝置及共享記憶體電性連接,其接收機械手臂之定位指令、機械手臂之位置座標系、旋轉關係方程式及位移關係方程式,並用以控制機械手臂。 The numerical control system with coordinate synchronization function, wherein the core processor comprises: an arithmetic unit having a processing machine coordinate system and a mechanical arm position coordinate system for receiving at least three non-collinear positions Point points are obtained by observing the coordinate values obtained by the coordinate system of the position coordinate system of the processing machine and the position of the mechanical arm, and calculating the rotational relationship equation and the displacement relationship equation of the coordinate system of the position of the processing machine and the coordinate position of the mechanical arm; a shared memory, It is electrically connected with the computing unit, and receives and stores the processing machine coordinate system, the mechanical arm position coordinate system, the rotational relationship equation and the displacement relationship equation; a processing machine control module, and the handheld input device and the shared memory electrical property Connection, which receives the positioning command of the processing machine, plus a position coordinate system, a rotation relationship equation and a displacement relationship equation of the machine, and used to control the processing machine; and a mechanical arm control module electrically connected with the handheld input device and the shared memory, and receiving the positioning command of the robot arm, The coordinate position of the robot arm, the rotational relationship equation and the displacement relationship equation are used to control the robot arm.

經上述可知藉由本發明之具有座標同步功能之數值控制系統,可將加工機與機械手臂之兩種不同的座標系統進行座標同步,也不須分別架設個別的控制系統,即可達到增進加工效率、降低加工、人力成本以及簡化操作流程的目的。 It can be seen from the above that the numerical control system with the coordinate synchronization function of the present invention can synchronize the coordinates of the two different coordinate systems of the processing machine and the robot arm, and does not need to separately set up individual control systems to achieve the processing efficiency. Reduce processing, labor costs, and streamline operational processes.

1‧‧‧具有座標同步功能之數值控制系統 1‧‧‧Numerical control system with coordinate synchronization

11‧‧‧手持輸入裝置 11‧‧‧Handheld input device

12‧‧‧數值控制器 12‧‧‧ Numerical controller

121‧‧‧使用者介面 121‧‧‧User interface

122‧‧‧核心處理器 122‧‧‧ core processor

1221‧‧‧運算單元 1221‧‧‧ arithmetic unit

1222‧‧‧共享記憶體 1222‧‧‧ shared memory

1223‧‧‧加工機控制模組 1223‧‧‧Processing machine control module

1224‧‧‧機械手臂控制模組 1224‧‧‧ Robot arm control module

13‧‧‧加工機 13‧‧‧Processing machine

14‧‧‧機械手臂 14‧‧‧ Robotic arm

A1‧‧‧第一位置點 A1 ‧‧‧First location

A2‧‧‧第二位置點 A2 ‧‧‧Second location

A3‧‧‧第三位置點 A3 ‧‧‧ Third location

X CNC Y CNC Z CNC ‧‧‧加工機座標軸 X CNC , Y CNC , Z CNC ‧‧‧Processing machine coordinate axis

X Robot Y Robot Z Robot ‧‧‧機械手臂座標軸 X Robot , Y Robot , Z Robot ‧‧‧Mechanical arm coordinate axis

31~37‧‧‧步驟 31~37‧‧‧Steps

第1圖係為本發明一實施例之具有座標同步功能之數值控制系統的示意圖。 1 is a schematic diagram of a numerical control system having a coordinate synchronization function according to an embodiment of the present invention.

第2圖係為本發明一實施例之具有座標同步功能之數值控制系統執行座標同步過程中的座標位置相對關係示意圖。 2 is a schematic diagram showing the relative position of coordinates in a coordinate synchronization process performed by a numerical control system having a coordinate synchronization function according to an embodiment of the present invention.

第3圖係為本發明一實施例之具有座標同步功能之數值控制系統執行座標同步程序之流程圖。 Figure 3 is a flow chart showing a coordinate synchronization procedure performed by a numerical control system having a coordinate synchronization function according to an embodiment of the present invention.

由於本發明揭露一種具有座標同步功能之數值控制(Numerical Control;NC)系統,其中所利用之數學矩陣式之基礎意義,已為相關技術領域具有通常知識者所能明瞭,故以下文中之說明,不再作完整描述。同時,以下文中所對照之圖式,係表達與本發明特徵有關之結構及功能示意,並未依據實際尺寸完整繪製,盍先敘明。 Since the present invention discloses a numerical control (NC) system having a coordinate synchronization function, the basic meaning of the mathematical matrix used therein has been known to those of ordinary skill in the related art, and therefore, as explained below, No longer a full description. At the same time, the drawings referred to in the following texts express the structure and function diagrams related to the features of the present invention, and are not completely drawn according to actual dimensions, which are first described.

本發明係有關於一種具有座標同步之數值控制系統,特別是有關於包含至少一加工機、至少一機械手臂、一數值控制器及一手持輸入裝置之具有座標同步功能之數值控制系統。 The present invention relates to a numerical control system having coordinate synchronization, and more particularly to a numerical control system having coordinate synchronization functions including at least one processing machine, at least one robot arm, a numerical controller, and a hand-held input device.

首先,請參閱第1圖,係為本發明一實施例之具有 座標同步功能之數值控制系統的示意圖。 First, please refer to FIG. 1 , which is an embodiment of the present invention. Schematic diagram of a numerical control system for coordinate synchronization functions.

如第1圖所示,本發明一實施例之具有座標同步功能之數值控制系統1具有一手持輸入裝置11、一數值控制器12、至少一加工機13以及至少一機械手臂14,其中,手持輸入裝置11為用以變更加工機13與機械手臂14之運作,例如是移動定位或是加工動作,而手持輸入裝置11可以是一手持盒或是手輪,加工機13例如是一車床、一銑床以及一切割機等可結合數值控制方式之加工機,其沿著一加工機位置座標系進行定位,並用以供至少一加工工件(圖中未顯示)分別放置其中並對加工工件進行一加工處理,機械手臂14例如是具有取放、焊接、塗膠、去毛邊、拋光以及噴砂等功能之機械手臂,其沿著一機械手臂位置座標系進行定位,並用以對加工工件分別進行一加工動作,而數值控制器12電性連接於手持輸入裝置11、加工機13及機械手臂14,其包含一使用者介面121與一核心處理器122,使用者介面121與手持輸入裝置11電性連接,核心處理器122分別與使用者介面121、加工機13及機械手臂14電性連接,加工機位置座標系與機械手臂位置座標系內建於核心處理器122中,而使用者可透過手持輸入裝置11與使用者介面121控制加工機13及機械手臂14的移動定位或是加工動作。 As shown in FIG. 1, a numerical control system 1 having a coordinate synchronization function according to an embodiment of the present invention has a handheld input device 11, a numerical controller 12, at least one processing machine 13, and at least one mechanical arm 14, wherein The input device 11 is for changing the operation of the processing machine 13 and the robot arm 14, for example, moving positioning or processing, and the handheld input device 11 can be a hand-held box or a hand wheel, and the processing machine 13 is, for example, a lathe, A milling machine and a cutting machine, which can be combined with a numerical control mode, are positioned along a coordinate system of a processing machine, and are used for at least one workpiece (not shown) to be placed therein and processed for the workpiece. For processing, the robot arm 14 is, for example, a robotic arm having functions of pick-and-place, welding, gluing, deburring, polishing, and sand blasting, and is positioned along a coordinate position of a robot arm to perform a machining operation on the workpiece. The numerical controller 12 is electrically connected to the handheld input device 11, the processing machine 13, and the robot arm 14, and includes a user interface 121 and a core. The user interface 121 is electrically connected to the handheld input device 11. The core processor 122 is electrically connected to the user interface 121, the processing machine 13, and the robot arm 14, respectively, and the position coordinates of the processing machine and the coordinate position of the robot arm. Built in the core processor 122, the user can control the movement positioning or processing of the processing machine 13 and the robot arm 14 through the handheld input device 11 and the user interface 121.

請繼續參考第1圖。其中,核心處理器122包含一運算單元1221、與運算單元1221電性連接之一共享記憶體1222、與手持輸入裝置11及共享記憶體1222電性連接之一加工機控制模組1223以及與手持輸入裝置11及共享記憶體1222電性連接之一機械手臂控制模組1224,加工機位置座標系與機械手臂位置座標系內建於運算單元1221中。首先,當使用者開始進行加工機13及機械手臂14的座標同步動作時,先透過手持輸入裝置11輸入一加工機定位指令至使用者介面121,或是直接透過使用者介面121傳送加工機定位指令,使用者介面121再將加工機定位指令傳送至加工機控制模組1223,而加工機控制模組1223接收並傳送加工機定位指令至加工機13,使加工機13之工具中心點開 始移動並定位於一第一位置點,並利用使用者介面121紀錄加工機13之工具中心點在此第一位置點時,其以加工機位置座標系觀察之的座標。接著,使用者利用手持輸入裝置11輸入一機械手臂定位指令至使用者介面121,或是直接透過使用者介面121傳送機械手臂定位指令,使用者介面121再將機械手臂定位指令傳送至機械手臂控制模組1224,而機械手臂控制模組1224接收並傳送機械手臂定位指令至機械手臂14,使機械手臂14之工具中心點開始移動並碰觸第一位置點,當機械手臂14之工具中心點在此第一位置點時,使用者藉由使用者介面121紀錄機械手臂14之工具中心點以機械手臂位置座標系觀之的座標。此處的碰觸方式可以是接觸式或是非接觸式,接觸式例如是在加工機中設置一淺圓盤之一圓心為加工機13之工具中心點,且在機械手臂上設置與淺圓盤直徑相同之一圓球之一球心,做為機械手臂14之工具中心點,藉由淺圓盤之圓心與圓球之球心接合以達成加工機13之工具中心點與機械手臂14之工具中心點的直接接觸,而非接觸式可選自光學方式與電磁方式其中之一。 Please continue to refer to Figure 1. The core processor 122 includes an operation unit 1221, a shared memory 1222 electrically connected to the computing unit 1221, a processing machine control module 1223 electrically connected to the handheld input device 11 and the shared memory 1222, and a handheld device. The input device 11 and the shared memory 1222 are electrically connected to one of the robot arm control modules 1224, and the machine position coordinate system and the robot arm position coordinate system are built in the arithmetic unit 1221. First, when the user starts the coordinate synchronization operation of the processing machine 13 and the robot arm 14, a processing machine positioning command is input to the user interface 121 through the handheld input device 11, or the processing machine positioning is directly transmitted through the user interface 121. The user interface 121 then transmits the processing machine positioning command to the processing machine control module 1223, and the processing machine control module 1223 receives and transmits the processing machine positioning command to the processing machine 13 to open the tool center of the processing machine 13. The machine is moved and positioned at a first position, and the user interface 121 is used to record the coordinates of the tool center point of the processing machine 13 at the first position point, which is observed by the machine position coordinate system. Then, the user inputs a robot arm positioning command to the user interface 121 by using the handheld input device 11 or directly transmits the robot arm positioning command through the user interface 121, and the user interface 121 transmits the robot arm positioning command to the robot arm control. The module 1224, and the robot control module 1224 receives and transmits the robot arm positioning command to the robot arm 14, so that the tool center point of the robot arm 14 starts to move and touches the first position point, when the tool center point of the robot arm 14 is at At the first position, the user records the coordinates of the tool center point of the robot arm 14 by the user interface 121. The touch mode here may be contact type or non-contact type, for example, a center of a shallow disc is arranged in the processing machine as a tool center point of the processing machine 13, and a shallow disc is arranged on the robot arm. One of the spheres of the same diameter as the center of the tool of the robot arm 14 is joined to the center of the sphere by the center of the shallow disc to achieve the tool center point of the processing machine 13 and the tool center of the robot arm 14 The direct contact of the dots, and the non-contact type, may be selected from one of an optical mode and an electromagnetic mode.

其次,透過手持輸入裝置11輸入加工機定位指令至使用者介面121,或是直接透過使用者介面121傳送加工機定位指令至加工機控制模組1223,而加工機控制模組1223接收並傳送加工機定位指令至加工機13,使加工機13之工具中心點開始移動並定位於一第二位置點,並利用使用者介面121紀錄加工機13之工具中心點在此第二位置點時,其以加工機位置座標系觀之的座標。接著,使用者利用手持輸入裝置11輸入機械手臂定位指令至使用者介面121,或是直接透過使用者介面121傳送機械手臂定位指令至機械手臂控制模組1224,而機械手臂控制模組1224接收並傳送機械手臂定位指令至機械手臂14,使機械手臂14之工具中心點開始移動並碰觸第二位置點,當機械手臂14之工具中心點在此第二位置點時,使用者藉由使用者介面121紀錄機械手臂14之工具中心點以機械手臂位置座標系觀之的座標。 Next, the processing machine positioning command is input to the user interface 121 through the handheld input device 11, or the processing machine positioning command is directly transmitted to the processing machine control module 1223 through the user interface 121, and the processing machine control module 1223 receives and transmits the processing. Positioning the command to the processing machine 13 to cause the tool center point of the processing machine 13 to start moving and positioning at a second position point, and using the user interface 121 to record the tool center point of the processing machine 13 at the second position point, The coordinates of the machine position coordinates. Then, the user inputs the robot arm positioning command to the user interface 121 by using the handheld input device 11 or directly transmits the robot arm positioning command to the robot arm control module 1224 through the user interface 121, and the robot arm control module 1224 receives the Transfer the robot arm positioning command to the robot arm 14 so that the tool center point of the robot arm 14 starts to move and touch the second position point. When the tool center point of the robot arm 14 is at the second position point, the user uses the user. The interface 121 records the coordinates of the center point of the tool of the robot arm 14 as a coordinate of the position of the robot arm.

再其次,使用者透過手持輸入裝置11輸入加工機定 位指令至使用者介面121,或是直接透過使用者介面121傳送加工機定位指令至加工機控制模組1223,而加工機控制模組1223接收並傳送加工機定位指令至加工機13,使加工機13之工具中心點開始移動並定位於一第三位置點,並利用使用者介面121紀錄加工機13之工具中心點在此第三位置點時,其以加工機位置座標系觀之的座標。接著,使用者利用手持輸入裝置11輸入機械手臂定位指令至使用者介面121,或是直接透過使用者介面121傳送機械手臂定位指令至機械手臂控制模組1224,而機械手臂控制模組1224接收並傳送機械手臂定位指令至機械手臂14,使機械手臂14之工具中心點開始移動並碰觸第三位置點,當機械手臂14之工具中心點在此第三位置點時,使用者藉由使用者介面121紀錄機械手臂14之工具中心點以機械手臂位置座標系觀之的座標。以上所述之第一位置點、第二位置點及第三位置點為加工機工作區域與機械手臂工作區域的重疊作業區域中,相異不共線的任意三個位置點。 Secondly, the user inputs the processing machine through the handheld input device 11. The bit command is sent to the user interface 121, or the processing machine positioning command is transmitted directly to the processing machine control module 1223 through the user interface 121, and the processing machine control module 1223 receives and transmits the processing machine positioning command to the processing machine 13 for processing. The tool center point of the machine 13 starts to move and is positioned at a third position point, and uses the user interface 121 to record the tool center point of the processing machine 13 at the third position point, and the coordinates of the machine position coordinate system . Then, the user inputs the robot arm positioning command to the user interface 121 by using the handheld input device 11 or directly transmits the robot arm positioning command to the robot arm control module 1224 through the user interface 121, and the robot arm control module 1224 receives the Transfer the robot arm positioning command to the robot arm 14 so that the tool center point of the robot arm 14 starts to move and touch the third position point. When the tool center point of the robot arm 14 is at the third position point, the user uses the user. The interface 121 records the coordinates of the center point of the tool of the robot arm 14 as a coordinate of the position of the robot arm. The first position point, the second position point and the third position point described above are any three position points which are different from each other in the overlapping work area of the working area of the processing machine and the working area of the robot arm.

當完成紀錄加工機13之工具中心點及機械手臂14之工具中心點在第一位置點、第二位置點及第三位置點這三個位置點之座標後,使用者介面121傳送加工機位置座標系與機械手臂位置座標系之三個位置點之座標至運算單元1221,運算單元1221根據加工機位置座標系、機械手臂座標系及加工機位置座標系與機械手臂位置座標系之三個位置點之座標開始計算加工機位置座標系與機械手臂位置座標系之一旋轉關係方程式,運算單元1221根據旋轉關係方程式進一步計算加工機位置座標系與機械手臂位置座標系之一位移關係方程式,當運算單元1221完成計算加工機位置座標系與機械手臂位置座標系之旋轉關係方程式及位移關係方程式後,將加工機位置座標系、機械手臂位置座標系、旋轉關係方程式及位移關係方程式傳送至共享記憶體1222中儲存,共享記憶體1222接收並傳送加工機位置座標系、旋轉關係方程式及位移關係方程式至加工機控制模組1223,並傳送機械手臂位置座標系、旋轉關係方程式及位移關係方程式至機械手臂控制 模組1224,當使用者欲進行加工機13與機械手臂14之座標同步動作時,經由手持輸入裝置11及使用者介面121分別輸出加工機定位指令與機械手臂定位指令至加工機控制模組1223與機械手臂控制模組1224,加工機控制模組1223接收加工機定位指令、加工機位置座標系、旋轉關係方程式及位移關係方程式,並根據加工機定位指令與加工機位置座標係控制加工機13,機械手臂控制模組1224可藉由機械手臂定位指令、機械手臂位置座標系、旋轉關係方程式及位移關係方程式進行與加工機13之座標同步動作並控制機械手臂14。也就是說,在進行加工作業過程中,加工機13及機械手臂14的位置座標系可自動且直接透過旋轉關係方程式及位移關係方程式進行轉換,因而某一位置點的定位座標無論從加工機13之位置座標系觀之或從機械手臂14之位置座標系觀之均為一致,而不需分別在加工機位置座標系或是機械手臂位置座標系個別重新計算其定位座標,也不須各自設置加工機13或是機械手臂14的數值控制裝置,除了可節省加工成本、加工時間外,同時也可簡化整體加工流程,並且大幅提升整體加工效率。 After completing the coordinates of the tool center point of the recording machine 13 and the tool center point of the robot arm 14 at the three position points of the first position point, the second position point and the third position point, the user interface 121 transmits the processing machine position. The coordinate system and the position of the three positions of the coordinate position coordinate system of the robot arm are connected to the arithmetic unit 1221. The arithmetic unit 1221 is based on the three positions of the coordinate position coordinate system of the processing machine, the coordinate system of the robot arm, the position coordinate system of the processing machine, and the coordinate system of the mechanical arm position. The coordinates of the point start to calculate a rotational relationship equation between the coordinate position coordinate system of the processing machine and the coordinate system of the mechanical arm position, and the arithmetic unit 1221 further calculates a displacement relationship equation of the coordinate system of the machining machine position and the coordinate system of the mechanical arm position according to the rotational relationship equation, when the operation is performed After completing the calculation of the rotational relationship equation and the displacement relationship equation of the coordinate position coordinate system of the processing machine and the coordinate system of the mechanical arm position, the unit 1221 transmits the coordinate system of the machining position, the coordinate system of the robot arm, the rotational relationship equation and the displacement relationship equation to the shared memory. Stored in 1222, shared memory 1222 receives and transmits Sending machine position coordinate system, rotation relationship equation and displacement relation equation to processing machine control module 1223, and transmitting robot arm position coordinate system, rotation relationship equation and displacement relationship equation to robot arm control The module 1224 outputs a processing machine positioning command and a robot arm positioning command to the processing machine control module 1223 via the handheld input device 11 and the user interface 121 when the user wants to synchronize the coordinates of the processing machine 13 and the robot arm 14 . And the robot arm control module 1224, the processing machine control module 1223 receives the processing machine positioning command, the processing machine position coordinate system, the rotation relationship equation and the displacement relationship equation, and controls the processing machine 13 according to the processing machine positioning instruction and the processing machine position coordinate system. The robot arm control module 1224 can perform the synchronous operation with the coordinates of the processing machine 13 and control the robot arm 14 by the robot arm positioning command, the mechanical arm position coordinate system, the rotational relationship equation, and the displacement relationship equation. That is to say, during the processing operation, the position coordinate system of the processing machine 13 and the robot arm 14 can be automatically and directly converted through the rotational relationship equation and the displacement relationship equation, so that the positioning coordinates of a certain position point are from the processing machine 13 The coordinate coordinates of the position are all consistent with the coordinates of the position of the robot arm 14, and the positioning coordinates are not separately calculated in the coordinate position coordinate system or the mechanical arm position coordinate system, and the positioning coordinates are not separately calculated. The numerical control device of the processing machine 13 or the robot arm 14 not only saves processing cost and processing time, but also simplifies the overall processing flow and greatly improves the overall processing efficiency.

此外,本發明中,座標同步的方式可以是如實施例所示,以加工機位置座標系為基準點,再將機械手臂位置座標系與為基準點之加工機位置座標系進行座標同步,也可以是以機械手臂位置座標系為基準點,再將加工機位置座標系與為基準點之機械手臂位置座標系進行座標同步,也可以是以加工機位置座標系為基準點,再將另一加工機位置座標系與為基準點之加工機位置座標系進行座標同步,也可以是以機械手臂位置座標系為基準點,再將另一機械手臂位置座標系與為基準點之機械手臂位置座標系進行座標同步。 In addition, in the present invention, the coordinate synchronization manner may be as shown in the embodiment, taking the position coordinate system of the processing machine as a reference point, and then synchronizing the coordinate position coordinate system of the robot arm with the coordinate system coordinate system of the processing machine position as the reference point. The coordinate position coordinate system of the robot arm can be used as a reference point, and the coordinate position coordinate system of the processing machine can be coordinated with the coordinate system coordinate system of the reference point, or the coordinate system of the processing machine position can be used as a reference point, and then another The coordinate position coordinate of the processing machine is coordinately synchronized with the coordinate system coordinate system of the reference point, or the coordinate position coordinate system of the robot arm is used as a reference point, and the coordinate position coordinate of the other robot arm is also used as the coordinate position coordinate of the mechanical arm position as the reference point. The coordinates are synchronized.

接著,請參考第2圖,係為本發明一實施例之具有座標同步功能之數值控制系統執行座標同步過程中的座標位置相對關係示意圖。 Next, please refer to FIG. 2, which is a schematic diagram showing the relative relationship of coordinate positions during the coordinate synchronization process performed by the numerical control system with coordinate synchronization function according to an embodiment of the present invention.

第2圖係用以進一步說明運算單元1221運算加工機13與機械手臂14之旋轉關係方程式及位移關係方程式的過程。 The second drawing is a process for further explaining the rotational relationship equation and the displacement relation equation of the arithmetic unit 121 and the robot arm 14.

首先,R CNC R Robot 分別代表加工機位置座標系與機械手臂位置座標系之座標軸所組成的正交矩陣式,可定義為數學式(1):R CNC =[X CNC Y CNC Z CNC ] R Robot =[X Robot Y Robot Z Robot ] (1)其中,X CNC Y CNC Z CNC 為加工機位置座標系中的XYZ方向座標軸,而X Robot Y Robot Z Robot 為機械手臂位置座標系中的XYZ方向座標軸,皆為3×1之單位向量。 First, R CNC and R Robot represent the orthogonal matrix of the coordinate position coordinate system of the machine and the coordinate axis of the mechanical arm position coordinate system, which can be defined as mathematical formula (1): R CNC =[ X CNC Y CNC Z CNC ] R Robot =[ X Robot Y Robot Z Robot ] (1) Among them, X CNC , Y CNC and Z CNC are the X , Y , Z direction coordinate axes in the machine coordinate system, while X Robot , Y Robot and Z Robot are The coordinate axes of the X , Y , and Z directions in the coordinate system of the robot arm are all 3 × 1 unit vectors.

承上所述,當完成分別紀錄加工機13之工具中心點及機械手臂14之工具中心點在第一位置點A1、第二位置點A2及第三位置點A3等三個位置點之座標後,加工機位置座標系R CNC 之原點將分別與第一位置點A1、第二位置點A2及第三位置點A3形成之三個向量,而機械手臂位置座標系R Robot 之原點將分別與第一位置點A1、第二位置點A2及第三位置點A3形成之三個向量,且由於R CNC R Robot 為正交的矩陣,故必存在一旋轉矩陣R,如數學式(2)所示:R CNC =R×R Robot (2)接著,為了可求出旋轉矩陣R,則必須將R CNC R Robot 換算為非正交形式矩陣M CNC M Robot M CNC 之矩陣表示為數學式(3): 其中,表示為如數學式(4): 同樣地,M Robot 也可表示為如數學式(5): 其中,表示如數學式(6): 由於M CNC 中,每行(Column)皆為之三個向量所組成之矩陣,又A1A2A3三個位置點在X CNC Y CNC Z CNC 座標軸之位置座標系下所形成之向量,故M CNC 中的每行(Column)為向量的線性組合,且兩兩向量之間相減的向量方向並不相等,導致M CNC 矩陣中兩兩行間也不相等,故M CNC 必為滿秩(Full Rank),也就是M CNC 具有反矩陣,相同地,M Robot 之矩陣中,每行(Column)皆為之三個向量所組成之矩陣,又A1A2A3三個位置點在X Robot Y Robot Z Robot 座標軸之位置座標系下所形成之向量,故M Robot 中的每行(Column)為向量的線性組合,並且兩兩向量之間相減的向量方向並不相等,導致M Robot 矩陣中兩兩行間也不相等,故M Robot 必具有反矩陣,而M CNC M Robot 分別為加工機位置座標系與機械手臂位置座標系在第一位置點A1、第二位置點A2及第三位置點A3等三個位置點之計算而得,故可將M CNC M Robot 表示為數學式(7):M CNC =R×M Robot (7)由數學式(7)可得旋轉矩陣R,如數學式(8)所示: 旋轉矩陣R即為加工機位置座標系與機械手臂位置座標系之旋轉關係方程式。 As described above, when the center points of the tool center point of the processing machine 13 and the tool center point of the robot arm 14 are respectively completed, the coordinates of the three position points of the first position point A1 , the second position point A2, and the third position point A3 are completed. The origin of the machine coordinate system R CNC will be formed with the first position point A1 , the second position point A2 and the third position point A3, respectively. , and The three vectors, and the origin of the robot arm coordinate system R Robot will form with the first position point A1 , the second position point A2 and the third position point A3, respectively. , and The three vectors, and because R CNC and R Robot are orthogonal matrices, there must be a rotation matrix R , as shown in equation (2): R CNC = R × R Robot (2) Next, in order to When the rotation matrix R is out, R CNC and R Robot must be converted into non-orthogonal form matrix M CNC and M Robot . The matrix of M CNC is expressed as mathematical formula (3): among them, , and Expressed as mathematical formula (4): Similarly, M Robot can also be expressed as Mathematical Formula (5): among them, , and Expressed as mathematical formula (6): Since M CNC , each line (Column) is , and a matrix of three vectors, , and For the three positions A1 , A2 and A3 , the vector formed under the coordinate system of the X CNC , Y CNC and Z CNC coordinate axes, so each line in the M CNC is , and a linear combination of vectors, and , and The direction of the subtraction between the two vectors is not equal, resulting in the two axes between the M CNC matrices are not equal, so M CNC must be full rank, that is, M CNC has an inverse matrix, the same, M In the Matrix of Robot , each line (Column) is , and a matrix of three vectors, , and For the three positions A1 , A2 and A3 , the vector formed under the coordinate system of the X Robot , Y Robot and Z Robot coordinate axes, so each line in the M Robot is , and a linear combination of vectors, and , and The direction of the subtraction between the two vectors is not equal, resulting in the M Robot matrix not being equal between the two rows, so M Robot must have the inverse matrix, and M CNC and M Robot are the coordinate position coordinate system and the robot arm respectively. The position coordinates are calculated from the three position points of the first position point A1 , the second position point A2 and the third position point A3 , so M CNC and M Robot can be expressed as mathematical formula (7): M CNC = R × M Robot (7) can obtain the rotation matrix R from the mathematical formula (7), as shown in the mathematical formula (8): The rotation matrix R is the rotation relationship equation between the coordinate position coordinate system of the processing machine and the coordinate system of the mechanical arm position.

再者,運算單元1221根據旋轉矩陣R,將旋轉至與平行,此時兩向量之差值即為位移關係方程式,如數學式(9)所示: 其代表在加工機位置座標系下,機械手臂位置座標系之原點移動至加工機位置座標系之原點的向量。 Furthermore, the arithmetic unit 1221 will according to the rotation matrix R Rotate to and Parallel, at this time versus The difference between the two vectors is the displacement relation equation, as shown in the mathematical formula (9): It represents the vector of the origin of the robot arm position coordinate system moving to the origin of the machine position coordinate system under the coordinate position coordinate of the processing machine.

最後,請參考第3圖,其係為本發明一實施例之具有座標同步功能之數值控制系統執行座標同步程序之流程圖。 Finally, please refer to FIG. 3, which is a flowchart of a coordinate synchronization procedure performed by a numerical control system having a coordinate synchronization function according to an embodiment of the present invention.

首先,如步驟31所示,將一第一機台之工具機中心移動至第一機台與一第二機台之作業重疊區域上的一第一位置點A1。舉例而言,如第2圖所示,當使用者開始進行加工機13及機械手臂14的座標同步動作時,先透過手持輸入裝置11發出加 工機定位指令至使用者介面121,再透過使用者介面121傳送加工機定位指令至加工機控制模組1223,或是直接利用使用者介面121發出加工機定位指令至加工機控制模組1223,而加工機控制模組1223接收並傳送加工機定位指令至加工機13,使加工機13之工具中心點開始移動並定位於第一位置點A1First, as shown in step 31, the center of the machine tool of the first machine is moved to a first position point A1 on the overlapping area of the work of the first machine and the second machine. For example, as shown in FIG. 2, when the user starts the coordinate synchronization operation of the processing machine 13 and the robot arm 14, the processor positioning command is first sent to the user interface 121 through the handheld input device 11, and then the user is passed through the user. The interface 121 transmits the processing machine positioning command to the processing machine control module 1223, or directly sends the processing machine positioning command to the processing machine control module 1223 by using the user interface 121, and the processing machine control module 1223 receives and transmits the processing machine positioning instruction. To the processing machine 13, the tool center point of the processing machine 13 starts to move and is positioned at the first position point A1 .

接著進行步驟32,即記錄第一位置點A1以第一機台之位置座標系觀之的座標值。舉例而言,如第2圖所示,利用使用者介面121紀錄加工機13之工具中心點在第一位置點A1時,以加工機位置座標系觀之的座標。 Next, step 32 is performed to record the coordinate value of the first position point A1 with the position coordinate of the first machine. For example, as shown in FIG. 2, when the tool center point of the processing machine 13 is recorded at the first position point A1 by the user interface 121, the coordinate of the machine position coordinate is used.

接著,進行步驟33,即移動第二機台之工具中心點至第一位置點A1。舉例而言,如第2圖所示,使用者利用手持輸入裝置11傳送機械手臂定位指令至使用者介面121,再經由使用者介面121傳送機械手臂定位指令至機械手臂控制模組1224,或是直接藉由使用者介面121傳送機械手臂定位指令至機械手臂控制模組1224,機械手臂控制模組1224接收並傳送機械手臂定位指令至機械手臂14,使機械手臂14之工具中心點開始移動並碰觸第一位置點A1,此碰觸方式可以是接觸式或是非接觸式。接觸式例如是在加工機中設置一淺圓盤之一圓心為加工機13之工具中心點,且在機械手臂上設置與淺圓盤直徑相同之一圓球之一球心,做為機械手臂14之工具中心點,藉由淺圓盤之圓心與圓球之球心接合以達成加工機13之工具中心點與機械手臂14之工具中心點的直接接觸,而非接觸式可選自光學方式與電磁方式其中之一。 Next, proceed to step 33, that is, moving the tool center point of the second machine to the first position point A1 . For example, as shown in FIG. 2, the user transmits the robot arm positioning command to the user interface 121 by using the handheld input device 11, and transmits the robot arm positioning command to the robot arm control module 1224 via the user interface 121, or The robot arm positioning command is transmitted to the robot arm control module 1224 directly through the user interface 121. The robot arm control module 1224 receives and transmits the robot arm positioning command to the robot arm 14 to cause the tool center point of the robot arm 14 to start moving and touching. Touch the first position point A1 , which can be contact or non-contact. The contact type is, for example, a center of a shallow disc is disposed in the processing machine as a tool center point of the processing machine 13, and one of the spheres having the same diameter as the shallow disc is disposed on the robot arm as the robot arm 14 The tool center point is joined to the center of the ball by the center of the shallow disc to achieve direct contact between the tool center point of the processing machine 13 and the tool center point of the robot arm 14, and the non-contact type can be selected from the optical mode. One of the electromagnetic methods.

再者,進行步驟34,即紀錄第一位置點A1以第二機台之位置座標系觀之的座標值。舉例而言,如第2圖所示,當機械手臂14之工具中心點在第一位置點A1時,使用者藉由使用者介面121紀錄機械手臂14之工具中心點在機械手臂位置座標系下的座標。 Furthermore, step 34 is performed to record the coordinate value of the first position point A1 with the position coordinate of the second machine. For example, as shown in FIG. 2, when the tool center point of the robot arm 14 is at the first position point A1 , the user records the tool center point of the robot arm 14 by the user interface 121 under the coordinate position of the robot arm. The coordinates of the coordinates.

依照前面步驟31~34,分別完成第一機台之工具中心點及第二機台之工具中心點在第二位置點A2及第三位置點A3之 座標值紀錄,之後執行步驟35。 According to the foregoing steps 31~34, the coordinate values of the tool center point of the first machine and the tool center point of the second machine at the second position point A2 and the third position point A3 are respectively completed, and then step 35 is performed.

步驟35,即為傳送第一機台與第二機台於第一位置點、第二位置點及第三位置點等三個位置點的座標值至數值控制系統內的運算單元,運算單元開始計算第一機台位置座標系及第二機台位置座標系之旋轉關係方程式。舉例而言,如第2圖所示,使用者介面121傳送加工機位置座標系R CNC 與機械手臂位置座標系R Robot A1A2A3三個位置點之座標至運算單元1221,運算單元1221根據內建之加工機位置座標系R CNC 、機械手臂位置座標系R Robot 、加工機位置座標系R CNC 與機械手臂位置座標系R Robot A1A2A3三個位置點之座標開始計算加工機位置座標系R CNC 與機械手臂位置座標系R Robot 之旋轉關係方程式,即前述數學式(8)所示之旋轉矩陣RStep 35, that is, transmitting the coordinate values of the three position points of the first machine position and the second machine stage at the first position point, the second position point, and the third position point to the operation unit in the numerical control system, and the operation unit starts Calculate the rotational relationship equation of the first machine position coordinate system and the second machine position coordinate system. For example, as shown in FIG. 2, the user interface 121 transmits the coordinates of the three position points A1 , A2 , and A3 of the processing machine position coordinate system R CNC and the robot arm coordinate system R Robot to the arithmetic unit 1221, and the arithmetic unit 1221 starts calculation based on the coordinates of the built-in machine position coordinate system R CNC , the robot position coordinate system R Robot , the machine position coordinate system R CNC, and the robot arm position coordinate system R Robot at positions A1 , A2 , and A3 . The rotational relationship equation between the coordinate position coordinate system R CNC and the mechanical arm position coordinate system R Robot is the rotation matrix R shown in the above mathematical formula (8).

接著,執行步驟36,即為運算單元計算第一機台位置座標系及第二機台位置座標系之位移關係方程式,並將第一機台位置座標系、第二機台位置座標系、旋轉關係方程式及位移關係方程式傳送至一記憶體單元,記憶體單元接收並傳送旋轉關係方程式及位移關係方程式至第一機台之控制模組與第二機台之控制模組,使用者透過手持輸入裝置11及使用者介面121分別傳送第一機台定位指令及第二機台定位指令至第一機台之控制模組與第二機台之控制模組。舉例而言,如第2圖所示,運算單元1221根據所計算之旋轉矩陣R進一步計算加工機位置座標系R CNC 與機械手臂位置座標系R Robot 之位移關係方程式,即數學式(9)所示之,並將加工機位置座標系R CNC 、機械手臂位置座標系R Robot 、旋轉關係方程式R及位移關係方程式傳送至共享記憶體1222,共享記憶體1222儲存並傳送加工機位置座標系R CNC 、旋轉關係方程式R及位移關係方程式至加工機控制模組1223,並且共享記憶體1222儲存並傳送機械手臂位置座標系R Robot 、旋轉關係方程式R及位移關係方程式至機械手臂控制模組1224。 Then, step 36 is executed, that is, the calculation unit calculates the displacement relationship equation of the first machine position coordinate system and the second machine position coordinate system, and the first machine position coordinate system, the second machine position coordinate system, and the rotation The relationship equation and the displacement relation equation are transmitted to a memory unit, and the memory unit receives and transmits the rotation relationship equation and the displacement relationship equation to the control module of the first machine and the control module of the second machine, and the user inputs through the hand The device 11 and the user interface 121 respectively transmit the first machine positioning command and the second machine positioning command to the control module of the first machine and the control module of the second machine. For example, as shown in FIG. 2, the operation unit 1221 further calculates a displacement relationship equation between the machine position coordinate system R CNC and the robot position coordinate system R Robot according to the calculated rotation matrix R , that is, the mathematical formula (9) Show And the machine position coordinate system R CNC , the mechanical arm position coordinate system R Robot , the rotational relationship equation R and the displacement relationship equation Transfer to the shared memory 1222, the shared memory 1222 stores and transfers the processor position coordinate system R CNC , the rotational relationship equation R, and the displacement relationship equation To the processing machine control module 1223, and the shared memory 1222 stores and transmits the robot arm coordinate system R Robot , the rotational relationship equation R, and the displacement relationship equation To the robotic arm control module 1224.

最後,進行步驟37,即第一機台之控制模組及第二機台之控制模組依據第一機台定位指令、第二機台定位指令、第 一機台位置座標系、第二機台位置座標系、旋轉關係方程式及位移關係方程式進行第一機台位置座標系與第二機台位置座標系之座標同步動作並控制第一機台與第二機台。舉例而言,如第2圖所示,加工機控制模組1223接收手持輸入裝置11及使用者介面121所傳送之加工機定位指令,並且接收共享記憶體1222所傳送之加工機位置座標系R CNC 、旋轉關係方程式R及位移關係方程式,機械手臂控制模組1224接收手持輸入裝置11及使用者介面121所傳送之機械手臂定位指令,並且接收共享記憶體1222所傳送之機械手臂位置座標系R Robot 、旋轉關係方程式R及位移關係方程式,故加工機控制模組1223及機械手臂控制模組1224可藉由加工機定位指令、機械手臂定位指令、加工機位置座標系R CNC 、機械手臂位置座標系R Robot 、旋轉關係方程式R及位移關係方程式進行加工機位置座標系與機械手臂位置座標系之座標同步動作並控制加工機13與機械手臂14。 Finally, step 37 is performed, that is, the control module of the first machine and the control module of the second machine are based on the first machine positioning command, the second machine positioning command, the first machine position coordinate system, and the second machine The position coordinate system, the rotation relationship equation and the displacement relationship equation perform the synchronous operation of the coordinates of the first machine position coordinate system and the second machine position coordinate system and control the first machine and the second machine. For example, as shown in FIG. 2, the processing machine control module 1223 receives the processing machine positioning command transmitted by the handheld input device 11 and the user interface 121, and receives the processing machine coordinate system R transmitted by the shared memory 1222. CNC , rotational relationship equation R and displacement relation equation The robot arm control module 1224 receives the robot arm positioning command transmitted by the handheld input device 11 and the user interface 121, and receives the robot arm coordinate system R Robot , the rotational relationship equation R, and the displacement relationship equation transmitted by the shared memory 1222. Therefore, the processing machine control module 1223 and the robot arm control module 1224 can be processed by the processing machine positioning command, the robot arm positioning command, the processing machine position coordinate system R CNC , the mechanical arm position coordinate system R Robot , the rotational relationship equation R and the displacement Relational equation The processing machine position coordinate system is synchronized with the coordinates of the robot arm position coordinate system and the processing machine 13 and the robot arm 14 are controlled.

以上所述僅為本發明之較佳實施例,並非用以限定本發明之權利範圍;同時以上的描述,對於相關技術領域之專門人士應可明瞭及實施,因此其他未脫離本發明所揭示之精神下所完成的等效改變或修飾,均應包含在申請專利範圍中。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. The above description should be understood and implemented by those skilled in the relevant art, so that the other embodiments are not disclosed. Equivalent changes or modifications made under the spirit shall be included in the scope of the patent application.

31~37‧‧‧步驟 31~37‧‧‧Steps

Claims (6)

一種數值控制方法,用以控制一第一機台及一第二機台,包括下列步驟:移動該第一機台之一工具中心點至一第一位置點,並紀錄該第一位置點以該第一機台之位置座標系觀察所得到之座標值;移動該第二機台之一工具中心點至該第一位置點,並紀錄該第一位置點以該第二機台之位置座標系觀察所得到之座標值;移動該第一機台之該工具中心點至一第二位置點,並紀錄該第二位置點以該第一機台之位置座標系觀察所得到之座標值;移動該第二機台之該工具中心點至該第二位置點,並紀錄該第二位置點以該第二機台之位置座標系觀察所得到之座標值;移動該第一機台之該工具中心點至一第三位置點,並紀錄該第三位置點以該第一機台之位置座標系觀察所得到之座標值;移動該第二機台之該工具中心點至該第三位置點,並記錄該第三位置點以該第二機台之位置座標系觀察所得到之座標值;根據該第一位置點、該第二位置點及該第三位置點分別以該第一機台之位置座標系及該第二機台之位置座標系觀察所得到之座標值計算該第一機台之位置座標系與該第二機台之位置座標系之一旋轉關係方程式;根據該旋轉關係方程式,計算該第一機台之位置座標系與該第二機台之位置座標系之一位移關係方程式; 儲存該旋轉關係方程式與該位移關係方程式;以及根據該第一機台之位置座標系、該第二機台之位置座標系、該旋轉關係方程式與該位移關係方程式,控制該第一機台與該第二機台。 A numerical control method for controlling a first machine and a second machine includes the steps of: moving a tool center point of the first machine to a first position point, and recording the first position point The position coordinate of the first machine is obtained by observing the obtained coordinate value; moving a tool center point of the second machine to the first position point, and recording the first position point to the position coordinate of the second machine Observing the obtained coordinate value; moving the tool center point of the first machine to a second position point, and recording the coordinate value obtained by observing the second position point by the position coordinate system of the first machine; Moving the tool center point of the second machine to the second position point, and recording the second position point to observe the coordinate value obtained by the position coordinate system of the second machine; moving the first machine Pointing the tool center point to a third position point, and recording the coordinate value obtained by observing the third position point by the position coordinate system of the first machine; moving the tool center point of the second machine to the third position Point and record the third position point to the second machine The position coordinate is obtained by observing the obtained coordinate value; according to the first position point, the second position point and the third position point, respectively, the position coordinate system of the first machine and the position coordinate system of the second machine Observing the obtained coordinate value to calculate a rotational relationship equation of the position coordinate system of the first machine and the position coordinate system of the second machine; according to the rotation relationship equation, calculating the position coordinate system of the first machine and the a displacement relationship equation of the position coordinate system of the second machine; And storing the rotation relationship equation and the displacement relationship equation; and controlling the first machine according to the position coordinate system of the first machine, the position coordinate system of the second machine, the rotation relationship equation and the displacement relationship equation The second machine. 依據申請專利範圍第1項所述的數值控制方法,其中移動該第一機台之該工具中心點至該第一位置點之步驟包含下列步驟:該第一機台之該工具中心點處設置一淺圓盤,該淺圓盤之一圓心對準該第一機台之該工具中心點,移動該第一機台使該圓心對準該第一位置點。 According to the numerical control method of claim 1, wherein the step of moving the tool center point of the first machine to the first position point comprises the following steps: setting the tool center point of the first machine a shallow disc, the center of one of the shallow discs being aligned with the center point of the tool of the first machine, and moving the first machine to align the center with the first position. 依據申請專利範圍第2項所述的數值控制方法,其中移動該第二機台之該工具中心點至該第一位置點的步驟包含下列步驟:於該第二機台之該工具中心點設置一圓球,該圓球與該淺圓盤直徑相同,該圓球之球心對準該第二機台之該工具中心點,移動該第二機台使該圓球與該淺圓盤接合且該球心恰對準該第一位置點。 According to the numerical control method of claim 2, the step of moving the tool center point of the second machine to the first position point comprises the following steps: setting the tool center point of the second machine a ball having the same diameter as the shallow disk, the center of the ball being aligned with the center point of the tool of the second machine, moving the second machine to engage the ball with the shallow disk and The ball is aligned with the first position. 依據申請專利範圍第1項所述的數值控制方法,其中該第一機台係一加工機與一機械手臂其中之一。 The numerical control method according to claim 1, wherein the first machine is one of a processing machine and a mechanical arm. 一種具有座標同步功能之數值控制系統,包括至少一加工機、至少一機械手臂、一手持輸入裝置及一數值控制器,該加工機與該機械手臂分別沿著一加工機位置座標系與一機械手臂位置座標系進行定位,該加工機位置座標系與該機械手臂位置座標系內建於該數值控制器中,該手持輸入裝置、該加工機及該機械手臂電性連接於該數值控制器,其特徵在於:該數值控制器包含:一使用者介面,其與該手持輸入裝置電性連接,用以接收自該手持輸入裝置所輸入之該加工機之定位指令及該 機械手臂之定位指令,並用以紀錄經選取之至少三個非共線之不同位置點分別以該加工機之位置座標系及該機械手臂之位置座標系觀察所得到之座標值;及一核心處理器,其與該使用者介面電性連接,並與該加工機及該機械手臂電性連接,用以經由該使用者介面接收該加工機之定位指令、該機械手臂之定位指令、以及至少該三個非共線之不同位置點分別以該加工機之位置座標系及該機械手臂之位置座標系觀察所得到之座標值,並根據該加工機位置座標系、該機械手臂位置座標系及至少該三個非共線之不同位置點分別以該加工機之位置座標系及該機械手臂之位置座標系觀察所得到之座標值,計算該加工機之位置座標系與該機械手臂之位置座標系之一旋轉關係方程式,並根據該旋轉關係方程式進一步計算該加工機之位置座標系與該機械手臂之位置座標系之一位移關係方程式,該核心處理器儲存該旋轉關係方程式及該位移關係方程式,並根據該加工機位置座標系及該加工機之定位指令控制該加工機,以及根據該機械手臂位置座標系、該機械手臂之定位指令、該旋轉關係方程式及該位移關係方程式控制該機械手臂;其中,至少該三個非共線之不同位置點係位於該加工機與該機械手臂之作業重疊區域。 A numerical control system having a coordinate synchronization function, comprising at least one processing machine, at least one mechanical arm, a hand-held input device and a numerical controller, the processing machine and the mechanical arm respectively along a processing machine position coordinate system and a mechanical machine The arm position coordinate system is positioned, the machine position coordinate system and the mechanical arm position coordinate system are built in the numerical controller, and the handheld input device, the processing machine and the mechanical arm are electrically connected to the numerical controller. The numerical controller is characterized in that: the numerical controller comprises: a user interface electrically connected to the handheld input device, configured to receive a positioning instruction of the processing machine input from the handheld input device, and Positioning command of the robot arm, and used to record the coordinate values obtained by observing the position coordinate system of the processing machine and the position coordinate system of the robot arm at different positions of the selected at least three non-collinear lines; and a core processing The device is electrically connected to the user interface and electrically connected to the processing machine and the mechanical arm for receiving a positioning instruction of the processing machine, a positioning instruction of the robot arm, and at least the user interface The different position points of the three non-collinear lines are respectively obtained by observing the coordinate values obtained by the position coordinate system of the processing machine and the position coordinate system of the robot arm, and according to the coordinate position coordinate system of the processing machine, the coordinate system of the mechanical arm position, and at least The position points of the three non-collinear lines are respectively observed by the position coordinate system of the processing machine and the coordinate system of the position of the robot arm, and the position coordinate system of the processing machine and the position coordinate system of the robot arm are calculated. a rotation relationship equation, and further calculating a position coordinate system of the processing machine and a position coordinate of the robot arm according to the rotation relationship equation a displacement relationship equation, the core processor stores the rotation relationship equation and the displacement relationship equation, and controls the processing machine according to the position coordinate system of the processing machine and the positioning instruction of the processing machine, and according to the coordinate position coordinate system of the robot arm, The positioning command of the robot arm, the rotation relationship equation and the displacement relationship equation control the robot arm; wherein at least the three non-collinear points are located at an overlapping area of the processing machine and the robot arm. 依據申請專利範圍第5項所述的具有座標同步功能之數值控制系統,其中該核心處理器包含:一運算單元,其內建有該加工機位置座標系與該機械手臂位置座標系,用以接收至少該三個非共線之不同位置點分別以該加工機之位置座標系與該機械手臂之位置座標 系觀察所得到之座標值,並計算該加工機位置座標系與該機械手臂位置座標系之該旋轉關係方程式與該位移關係方程式;一共享記憶體,其與該運算單元電性連接,其接收並儲存該加工機位置座標系、該機械手臂位置座標系、該旋轉關係方程式及該位移關係方程式;一加工機控制模組,其與該手持輸入裝置及該共享記憶體電性連接,其接收該加工機之定位指令、該加工機之位置座標系、該旋轉關係方程式及該位移關係方程式,並用以控制該加工機;以及一機械手臂控制模組,其與該手持輸入裝置及該共享記憶體電性連接,其接收該機械手臂之定位指令、該機械手臂之位置座標系、該旋轉關係方程式及該位移關係方程式,並用以控制該機械手臂。 The numerical control system with coordinate synchronization function according to claim 5, wherein the core processor comprises: an operation unit, wherein the processing machine position coordinate system and the mechanical arm position coordinate system are built therein; Receiving at least the different positions of the three non-collinear lines respectively, the position coordinates of the processing machine and the position coordinates of the robot arm Observing the obtained coordinate value, and calculating the rotation relationship equation between the processing machine coordinate system and the mechanical arm position coordinate system and the displacement relationship equation; a shared memory, which is electrically connected to the operation unit, and receives the same And storing the processing machine coordinate system, the mechanical arm position coordinate system, the rotation relationship equation and the displacement relationship equation; a processing machine control module electrically connected to the handheld input device and the shared memory, and receiving the same a positioning command of the processing machine, a position coordinate system of the processing machine, the rotation relationship equation and the displacement relationship equation, and used to control the processing machine; and a mechanical arm control module, the handheld input device and the shared memory The electro-mechanical connection receives the positioning command of the robot arm, the position coordinate system of the robot arm, the rotation relationship equation and the displacement relationship equation, and is used to control the robot arm.
TW102149191A 2013-12-31 2013-12-31 Numerical control system of coordinate synchronization and numerical controlling method thereof TWI494724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102149191A TWI494724B (en) 2013-12-31 2013-12-31 Numerical control system of coordinate synchronization and numerical controlling method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102149191A TWI494724B (en) 2013-12-31 2013-12-31 Numerical control system of coordinate synchronization and numerical controlling method thereof

Publications (2)

Publication Number Publication Date
TW201525632A true TW201525632A (en) 2015-07-01
TWI494724B TWI494724B (en) 2015-08-01

Family

ID=54197612

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102149191A TWI494724B (en) 2013-12-31 2013-12-31 Numerical control system of coordinate synchronization and numerical controlling method thereof

Country Status (1)

Country Link
TW (1) TWI494724B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI729168B (en) * 2017-07-13 2021-06-01 達明機器人股份有限公司 Method for setting work area of robot

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5396160A (en) * 1991-03-11 1995-03-07 General Motors Corporation Method of real-time machine path planning from a math model
JP3904945B2 (en) * 2002-02-28 2007-04-11 スター精密株式会社 Optimal data conversion method and numerical control machine tool for NC program
JP4467625B2 (en) * 2008-03-31 2010-05-26 三菱電機株式会社 Numerical control apparatus and numerical control method
JP4829359B2 (en) * 2010-03-31 2011-12-07 ファナック株式会社 Calculation method of probe mounting position of on-machine measuring device
CN103197607B (en) * 2012-01-05 2015-01-14 江俊逢 Servo driver and starting point and finishing point synchronous method in open type numerical control system

Also Published As

Publication number Publication date
TWI494724B (en) 2015-08-01

Similar Documents

Publication Publication Date Title
JP6787966B2 (en) Robot control device and display device using augmented reality and mixed reality
JP6379874B2 (en) Teaching system, robot system, and teaching method
JP6114361B1 (en) Offline robot programming device
JP2011048621A (en) Robot off-line teaching method
CN108581590B (en) Truss type mechanical arm control method and system for automatic feeding and discharging of machine tool
CN203449306U (en) Master-slave-type double-industrial-robot coordination operation control system
Bolmsjö et al. Robotic arc welding–trends and developments for higher autonomy
US10684609B2 (en) Program code generating method for tilted plane machining by multi-axis machine tool and device thereof
JP2014176940A (en) Robot system, method for controlling robot and method for manufacturing workpiece
JP6418483B2 (en) Processing trajectory generating apparatus and method
JP7415037B2 (en) Robot programming device and robot programming method
CN104750023A (en) Model based welding robot offline training data acquisition method
CN102941426A (en) Intelligent deflection system matched with robot
CN105598975A (en) Method for determining movement tracks of industrial robot
CN112958974A (en) Interactive automatic welding system based on three-dimensional vision
TWI494724B (en) Numerical control system of coordinate synchronization and numerical controlling method thereof
JP6390832B2 (en) Processing trajectory generating apparatus and method
CN111590586A (en) Man-machine interaction terminal and method for offline programming of mechanical arm
JP2022076814A (en) Program generation system, robot system, program generation method and generation program
JP7280455B1 (en) Machining simulation device, numerically controlled lathe, machine tool system, workpiece machining method, and program
CN111283323B (en) Welding method, welding device, terminal equipment and storage medium
TWI684841B (en) Program code generating method and device of multi-axis machine tool for machining inclined plane the same
CN103809507B (en) There is numerical control system and the numerical control method thereof of coordinate synchronizing function
TWM509713U (en) Multi-joint mechanical arm control system having track teaching function
Yu et al. Off-lineprogramming and remote control for a palletizing robot