TW201702773A - Numeric control system and method of searching original point mechanism - Google Patents

Numeric control system and method of searching original point mechanism Download PDF

Info

Publication number
TW201702773A
TW201702773A TW104121451A TW104121451A TW201702773A TW 201702773 A TW201702773 A TW 201702773A TW 104121451 A TW104121451 A TW 104121451A TW 104121451 A TW104121451 A TW 104121451A TW 201702773 A TW201702773 A TW 201702773A
Authority
TW
Taiwan
Prior art keywords
origin
motor
bed
driver
signal
Prior art date
Application number
TW104121451A
Other languages
Chinese (zh)
Other versions
TWI560535B (en
Inventor
李柏瑩
李建明
陳青杉
Original Assignee
新代科技股份有限公司
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 新代科技股份有限公司 filed Critical 新代科技股份有限公司
Priority to TW104121451A priority Critical patent/TWI560535B/en
Application granted granted Critical
Publication of TWI560535B publication Critical patent/TWI560535B/en
Publication of TW201702773A publication Critical patent/TW201702773A/en

Links

Landscapes

  • Numerical Control (AREA)

Abstract

The numeric control system of searching original point comprising a controller, a driver, and a processing machine. The machine comprises a motor, mechanical bed, a motor encoder, and an incremental linear scale. When the mechanical bed is moved to the motor original point, the incremental original point outputs a detecting signal and a pulsed signal in accordance with the detecting signal to the controller. The pulsed signal is converted into a position signal when the controller receives the pulsed signal and the detecting signal which is detected first, and planning the displacement amount of the mechanical bed according to a velocity of searching original point and the position signal, and further converting the displacement amount of the mechanical bed into a new movement command. Finally, the driver drives the mechanical bed to the original point of the mechanical bed in accordance with the new movement command.

Description

具有尋找原點機制之數值控制系統及其尋找原點方法 Numerical control system with finding origin mechanism and its finding method

本發明係有關於一種數值控制系統,特別是有關於一種具有尋找原點機制之數值控制系統及其尋找原點方法。 The present invention relates to a numerical control system, and more particularly to a numerical control system having a mechanism for finding an origin and a method for finding an origin.

一般而言,在進行機械加工時,加工機台具有一固定的機械原點,而此機械原點所對應的座標系統是一個固定不變的機械座標系統,在進行加工所需使用到的其他座標系統,例如:工件座標系或是外部座標偏移系統,皆是以機械原點之座標系統為主,並進行其他座標系統相對於機械座標系統的運算或是運動規劃,因此,機械原點對於機械加工而言,可視為一個機械加工的基準點。然而,每次加工機台斷電後,機械原點位置資訊便會遺失,因此,在每次開啟加工機台進行加工前,必須進行尋找機械原點位置的動作。 Generally speaking, when machining, the processing machine has a fixed mechanical origin, and the coordinate system corresponding to the mechanical origin is a fixed mechanical coordinate system, which is used for processing. Coordinate systems, such as workpiece coordinate system or external coordinate offset system, are based on the coordinate system of the mechanical origin, and perform calculations or motion planning of other coordinate systems relative to the mechanical coordinate system. Therefore, the mechanical origin For machining, it can be considered as a benchmark for machining. However, the mechanical origin position information will be lost each time the processing machine is powered off. Therefore, it is necessary to find the position of the machine origin position before turning on the processing machine for processing.

目前尋找機械原點的方法為架設一原點開關於加工機台的床台軸向位置,使用者藉由控制器將加工機台切換至原點模式並觸發一尋找原點訊號,加工機台之床台開始朝原點開關移動,直到床台碰觸原點開關後,控制器控制連接於床台的馬達進行反轉,且馬達每轉一圈即發出一索引訊號作為標記,同時,此索引訊號代表一位置資訊,最後,讓床台停留在索引訊號所代表的位置上,並將此位置點視為機械原點,如此一來,完成尋找原點動作。 At present, the method for finding the origin of the machine is to set an axial position of the origin switch to the bed of the processing machine. The controller switches the processing machine to the origin mode by the controller and triggers a search for the origin signal. The bed starts to move toward the origin switch, until the bed touches the origin switch, the controller controls the motor connected to the bed to reverse, and the motor sends an index signal as a mark every revolution, and the index The signal represents a location information. Finally, the bed is placed at the position represented by the index signal, and the position is regarded as the mechanical origin, so that the search for the origin is completed.

以既有設置原點開關的方式而言,設置原點開關的同時,必須額外設置原點開關的相關配線,因此,在整體加工機台的安裝作業中,需額外花費安裝原點開關及其相關配線的安裝時間,且原點開關與其配線佔據整體加工機台的部分空間,使得加工機台的軸向運動距離受限,也因此造成加工尺寸受 限。此外,長期以碰觸原點開關的方式進行尋找原點,會造成原點開關受損而導致尋找原點動作異常,進而影響整體加工品質與速度。 In the case of setting the origin switch, the origin switch must be additionally set, and the relevant wiring of the origin switch must be additionally set. Therefore, in the installation work of the entire processing machine, it is necessary to install the origin switch and its additional cost. The installation time of the relevant wiring, and the origin switch and its wiring occupy part of the space of the entire processing machine, so that the axial movement distance of the processing machine is limited, and thus the processing size is affected. limit. In addition, long-term search for the origin by touching the origin switch will cause the origin switch to be damaged, resulting in abnormal operation of the origin, thereby affecting the overall processing quality and speed.

為了解決先前技術所述之問題,本發明之主要目的在於提供一種具有尋找原點機制之數值控制系統,藉由馬達編碼器紀錄馬達原點位置,並以增量式光學尺即時偵測床台距離馬達原點最近的位置而輸出偵測訊號至控制器,此位置即為床台原點位置,以此方式則無需設置原點開關於加工機台內,也因此並不會造成加工距離縮減,且不因碰觸原點開關而導致尋找原點動作異常,影響加工品質與速度。 In order to solve the problems described in the prior art, the main object of the present invention is to provide a numerical control system having a mechanism for finding an origin, which records the position of the motor origin by a motor encoder and instantly detects the bed with an incremental optical scale. The detection signal is output to the controller at the position closest to the motor origin. This position is the origin position of the bed. In this way, the origin switch is not required to be placed in the processing machine, and thus the machining distance is not reduced. It does not cause the origin operation to be abnormal due to the touch of the origin switch, which affects the processing quality and speed.

根據上述目的,本發明主要目的在於提供一種具有尋找原點機制之數值控制系統,係由一控制器、一驅動器及一加工機台所組成,驅動器具有一第一端與一第二端,控制器具有一第一端、一第二端及一第三端,控制器之第三端電性連接至驅動器之第一端,加工機台包括一床台、一馬達及一位置資訊提供裝置,馬達具有一第一端、一第二端及一第三端,馬達之第一端電性連接至驅動器之第二端,馬達之第二端電性連接至床台之一端,馬達用以帶動床台之移動,位置資訊提供裝置具有一第一端、一第二端、一第三端及一第四端,位置資訊提供裝置之第一端電性連接至馬達之第三端,位置資訊提供裝置之第二端電性連接至床台之另一端,位置資訊提供裝置之第三端電性連接至驅動器之第二端,位置資訊提供裝置之第四端電性連接至控制器之第一端與第二端,其特徵在於:控制器用以供使用者設定具有尋找原點機制之數值控制系統進入一尋找原點模式及設定一尋找原點速度,控制器觸發一尋找原點訊號,位置資訊提供裝置之第三端輸出馬達之原點位置至驅動器,驅動器將馬達之原點位置輸出至控制器,控制器接收馬達之原點位置後,發出一運動指令至驅動器,驅動器根據運動指令驅動馬達帶動床台進行移動,當床台定位至馬達之原點位置後,位置資訊提供裝置開始輸出一偵測訊號與一相對應於偵測訊號之脈衝訊號至控制器,控制器接收到最先偵測到的偵測訊號後,將脈衝訊號轉換為一位置 訊號,控制器依據尋找原點速度與位置訊號規劃一運動位移量,控制器根據運動位移量輸出一新運動指令至驅動器,驅動器根據新運動指令驅動床台定位至床台之原點位置。 According to the above object, the main object of the present invention is to provide a numerical control system having a mechanism for finding an origin, which is composed of a controller, a driver and a processing machine. The driver has a first end and a second end, and the controller has a controller. a first end, a second end and a third end, the third end of the controller is electrically connected to the first end of the driver, the processing machine comprises a bed, a motor and a position information providing device, the motor has a first end, a second end and a third end, the first end of the motor is electrically connected to the second end of the driver, the second end of the motor is electrically connected to one end of the bed, and the motor is used to drive the bed The position information providing device has a first end, a second end, a third end and a fourth end, and the first end of the position information providing device is electrically connected to the third end of the motor, and the position information providing device The second end is electrically connected to the other end of the bed, the third end of the position information providing device is electrically connected to the second end of the driver, and the fourth end of the position information providing device is electrically connected to the first end of the controller And second The controller is configured to allow the user to set a numerical control system having a mechanism for finding the origin to enter a search origin mode and set a search origin speed, and the controller triggers a search for the origin signal, and the position information providing device The origin position of the three-terminal output motor is to the driver, and the driver outputs the origin position of the motor to the controller. After receiving the origin position of the motor, the controller sends a motion command to the driver, and the driver drives the motor to drive the bed according to the motion command. Moving, when the bed is positioned to the origin position of the motor, the position information providing device starts outputting a detection signal and a pulse signal corresponding to the detection signal to the controller, and the controller receives the first detected detection. After the signal is measured, the pulse signal is converted into a position Signal, the controller plans a motion displacement amount according to finding the origin speed and the position signal, and the controller outputs a new motion command to the driver according to the motion displacement amount, and the driver drives the bed table to the origin position of the bed according to the new motion instruction.

根據上述目的,本發明再依目的在於提供一種用於數值控制系統之尋找原點之方法,用以尋找數值控制系統之一床台之原點位置,包括下列步驟:確認一電性連接至床台之馬達之原點是否完成設定;設定一尋找原點速度並將設定數值控制系統進入一尋找原點模式;觸發一尋找原點訊號並發出一運動指令至一與床台電性連接之驅動器,驅動器藉由運動指令驅動床台移動;當床台定位至馬達之原點位置後,一與驅動器電性連接之控制器開始輸出一偵測訊號與一相對應於偵測訊號之脈衝訊號,脈衝訊號之脈衝數量係代表馬達之原點位置與床台位置之間的距離;當接收到最先偵測到的偵測訊號時,控制器將脈衝訊號轉換為一位置訊號;根據尋找原點速度與位置訊號規劃床台之一運動位移量,並再將運動位移量轉換為一新運動指令後輸出至驅動器;及根據新運動指令驅動床台定位至床台之原點位置。 In accordance with the above objects, the present invention further provides a method for finding an origin of a numerical control system for finding an origin position of a bed of a numerical control system, comprising the steps of: confirming an electrical connection to the bed Whether the origin of the motor of the station is completed; setting a search for the origin speed and setting the numerical control system into a search for origin mode; triggering a search for the origin signal and issuing a motion command to a drive electrically connected to the bed, The driver drives the bed to move by the motion command; when the bed is positioned to the origin position of the motor, a controller electrically connected to the driver starts to output a detection signal and a pulse signal corresponding to the detection signal, and the pulse The number of pulses of the signal represents the distance between the origin position of the motor and the position of the bed; when receiving the first detected detection signal, the controller converts the pulse signal into a position signal; according to the speed of finding the origin And the position signal is used to plan the displacement of one of the bed tables, and then convert the motion displacement amount into a new motion command and output it to the driver; and according to the new The positioning command driving the movable bed of the bed to the original position.

經上述可知藉由本發明之具有尋找原點機制之數值控制系統,因無需加裝原點開關,故不會造成加工距離縮減,且不因碰觸原點開關而導致尋找原點動作異常,影響加工品質與速度。 It can be seen from the above that the numerical control system with the mechanism for finding the origin of the present invention does not need to be equipped with the origin switch, so the machining distance is not reduced, and the origin operation is not caused by the touch of the origin switch. Processing quality and speed.

1‧‧‧控制器 1‧‧‧ controller

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

12‧‧‧尋找原點控制模組 12‧‧‧ Looking for the origin control module

121‧‧‧脈衝訊號讀取單元 121‧‧‧pulse signal reading unit

122‧‧‧轉換單元 122‧‧‧Conversion unit

123‧‧‧運動規劃單元 123‧‧‧Sports Planning Unit

124‧‧‧偵測單元 124‧‧‧Detection unit

2‧‧‧驅動器 2‧‧‧ Drive

3‧‧‧加工機台 3‧‧‧Processing machine

31‧‧‧馬達 31‧‧‧Motor

32‧‧‧床台 32‧‧‧ Beds

33‧‧‧位置資訊提供裝置 33‧‧‧Location information providing device

331‧‧‧馬達編碼器 331‧‧‧Motor encoder

332‧‧‧增量式光學尺 332‧‧‧Incremental optical ruler

S1~S8‧‧‧步驟 S1~S8‧‧‧Steps

第1圖係本發明一實施例之具有尋找原點機制之數值控制系統的示意圖。 1 is a schematic diagram of a numerical control system having a mechanism for finding an origin according to an embodiment of the present invention.

第2圖係本發明一實施例之具有尋找原點機制之數值控制系統的內部示意圖。 Figure 2 is an internal schematic diagram of a numerical control system having an origin finding mechanism in accordance with an embodiment of the present invention.

第3圖係本發明一實施例之具有尋找原點機制之尋找原點之方法流程圖。 Figure 3 is a flow chart showing a method for finding the origin of the origin finding mechanism according to an embodiment of the present invention.

由於本發明揭露一種具有尋找原點機制之數值控制系統,其中所利用之馬達帶動床台的方式,已為相關技術領域具有通常知識者所能明瞭,故 以下文中之說明,不再作完整描述。同時,以下文中所對照之圖式,係表達與本發明之管件分類、辨識及量測等特徵有關之之系統結構及功能示意,並未依據實際尺寸完整繪製,盍先敘明。 Since the present invention discloses a numerical control system having a mechanism for finding the origin, the manner in which the motor is used to drive the bed is well understood by those skilled in the relevant art. The description below is not fully described. At the same time, the drawings in the following texts express the system structure and function diagrams related to the classification, identification and measurement of the pipe fittings of the present invention, and are not completely drawn according to the actual dimensions, which are first described.

本發明係有關於一種用於具有尋找原點機制之數值控制系統,特別是有關於包含一控制器、一驅動器及一加工機台之具有尋找原點機制之數值控制系統。 The present invention relates to a numerical control system for having a mechanism for finding an origin, and more particularly to a numerical control system having a mechanism for finding an origin including a controller, a driver, and a processing machine.

首先,請參閱第1圖,第1圖係本發明一實施例之具有尋找原點機制之數值控制系統的示意圖。 First, please refer to FIG. 1. FIG. 1 is a schematic diagram of a numerical control system having a mechanism for finding an origin according to an embodiment of the present invention.

如第1圖所示,本發明一實施例之具有尋找原點機制之數值控制系統係由一控制器1、一驅動器2及一加工機台3所組成,控制器1具有一第一端、一第二端及一第三端,驅動器2具有一第一端與一第二端,加工機台3包括一馬達31、一床台32及一位置資訊提供裝置33,馬達31具有一第一端、一第二端及一第三端,位置資訊提供裝置33具有一第一端、一第二端、一第三端及一第四端,控制器31之第一端與第二端電性連接至位置資訊提供裝置33之第四端,控制器1之第三端電性連接至驅動器2之第一端,驅動器2之第二端電性連接至馬達31之第一端與位置資訊提供裝置33之第三端,馬達31之第二端電性連接至床台32之一端,馬達31之第三端電性連接至位置資訊提供裝置33之第一端,位置資訊提供裝置33之第二端電性連接至床台32之另一端;其中,控制器1用以供使用者設定具有尋找原點機制之數值控制系統進入一尋找原點模式及設定一尋找原點速度。 As shown in FIG. 1, a numerical control system having a mechanism for finding an origin is composed of a controller 1, a driver 2, and a processing machine 3. The controller 1 has a first end. a second end and a third end, the driver 2 has a first end and a second end, and the processing machine 3 includes a motor 31, a bed 32 and a position information providing device 33. The motor 31 has a first The position information providing device 33 has a first end, a second end, a third end and a fourth end, and the first end and the second end of the controller 31 are electrically connected to the end, the second end and the third end. Connected to the fourth end of the location information providing device 33, the third end of the controller 1 is electrically connected to the first end of the driver 2, and the second end of the driver 2 is electrically connected to the first end of the motor 31 and the position information. The third end of the motor 31 is electrically connected to one end of the bed 32, and the third end of the motor 31 is electrically connected to the first end of the position information providing device 33, and the position information providing device 33 The second end is electrically connected to the other end of the bed 32; wherein the controller 1 is used for setting the user Looking numerical control system into the origin of a homing mechanism and setting a homing mode speed.

請繼續參閱第1圖,首先,使用者須確認馬達31的原點位置是否完成設定,若尚未完成設定時,則將數值控制系統切換為手動模式,使用者藉由手動方式移動床台32至馬達31之原點位置;接著,使用者設定具有尋找原點機制之數值控制系統進入尋找原點模式及設定尋找原點速度,控制器1觸發一尋找原點訊號,且位置資訊提供裝置33之第三端輸出馬達31之原點位置至驅動器2,驅動器2將馬達31之原點位置輸出至控制器1,控制器1接收馬達31之原點位置後發出一運動指令至驅動器2,驅動器2接收運動指令後,驅動馬達31帶動床台32進行 移動,當床台32定位至馬達31之原點位置後,位置資訊提供裝置33開始輸出一偵測訊號與一相對應於偵測訊號之脈衝訊號至控制器1,脈衝訊號之脈衝數量係代表馬達31之原點位置與床台32之位置之間的距離,當控制器1接收到最先偵測到的偵測訊號時,控制器1將脈衝訊號轉換為一位置訊號,此位置訊號係代表床台32之原點位置,控制器1根據尋找原點速度與位置訊號規劃床台32之一運動位移量,並再將運動位移量轉換為一新運動指令後輸出至驅動器2,驅動器2根據新運動指令驅動床台32定位至床台原點位置。 Please continue to refer to FIG. 1. First, the user must confirm whether the home position of the motor 31 is completed. If the setting has not been completed, the numerical control system is switched to the manual mode, and the user manually moves the bed 32 to The origin position of the motor 31; then, the user sets a numerical control system having a mechanism for finding the origin to enter the search origin mode and set the search origin speed, the controller 1 triggers a search for the origin signal, and the position information providing device 33 The third end outputs the origin position of the motor 31 to the driver 2, and the driver 2 outputs the origin position of the motor 31 to the controller 1. After receiving the origin position of the motor 31, the controller 1 issues a motion command to the driver 2, and the driver 2 After receiving the motion command, the drive motor 31 drives the bed 32 to perform After the bed 32 is positioned to the origin position of the motor 31, the position information providing device 33 starts outputting a detection signal and a pulse signal corresponding to the detection signal to the controller 1, and the number of pulses of the pulse signal is representative. The distance between the origin position of the motor 31 and the position of the bed 32, when the controller 1 receives the first detected detection signal, the controller 1 converts the pulse signal into a position signal, and the position signal is Representing the origin position of the bed 32, the controller 1 plans the displacement amount of one of the bed tables 32 according to the origin speed and the position signal, and then converts the motion displacement amount into a new motion command and outputs it to the driver 2, and the driver 2 The bed 32 is driven to the home position of the bed according to the new motion command.

接著,請參閱第2圖,第2圖係本發明一實施例之具有尋找原點機制之數值控制系統的內部示意圖。 Next, please refer to FIG. 2, which is an internal schematic diagram of a numerical control system having an origin finding mechanism according to an embodiment of the present invention.

如第2圖所示,控制器1係由一使用者介面11與一尋找原點控制模組12所組成,使用者介面11電性連接於尋找原點控制模組12,尋找原點控制模組12包括一脈衝訊號讀取單元121、一轉換單元122、一運動規劃單元123及一偵測單元124,脈衝訊號讀取單元121之一端連接至轉換單元122之一端,運動規劃單元123之一第一端連接至轉換單元122之另一端與使用者介面11,運動規劃單元123之一第二端連接至偵測單元124之一端,運動規劃單元123之一第三端連接至驅動器2之第一端;加工機台3之位置資訊提供裝置33包括一馬達編碼器331與一增量式光學尺332,馬達編碼器331具有一第一端與一第二端,馬達編碼器331例如是一絕對式馬達編碼器,增量式光學尺332具有一第一端與一第二端,馬達編碼器331之第一端電性連接至馬達31之第三端,馬達編碼器331之第二端電性連接至驅動器2之第二端,增量式光學尺332之第一端電性連接至床台32之另一端,增量式光學尺332之第二端電性連接至偵測單元124之另一端與脈衝訊號讀取單元121之另一端,馬達編碼器331係用以儲存馬達原點位置並傳遞馬達31之原點位置至驅動器2,增量式光學尺332用以輸出偵測訊號與相對應於偵測訊號之脈衝訊號至控制器1之偵測單元124。 As shown in FIG. 2, the controller 1 is composed of a user interface 11 and a search origin control module 12. The user interface 11 is electrically connected to the search origin control module 12 to find the origin control mode. The group 12 includes a pulse signal reading unit 121, a converting unit 122, a motion planning unit 123, and a detecting unit 124. One end of the pulse signal reading unit 121 is connected to one end of the converting unit 122, and one of the motion planning units 123 The first end is connected to the other end of the conversion unit 122 and the user interface 11, the second end of the motion planning unit 123 is connected to one end of the detection unit 124, and the third end of the motion planning unit 123 is connected to the second of the driver 2. The position information providing device 33 of the processing machine 3 includes a motor encoder 331 and an incremental optical scale 332. The motor encoder 331 has a first end and a second end, and the motor encoder 331 is, for example, a The absolute motor encoder 332 has a first end and a second end. The first end of the motor encoder 331 is electrically connected to the third end of the motor 31, and the second end of the motor encoder 331 Electrically connected to the second of the driver 2 The first end of the incremental optical scale 332 is electrically connected to the other end of the bed 32. The second end of the incremental optical scale 332 is electrically connected to the other end of the detecting unit 124 and the pulse signal reading unit. At the other end of the 121, the motor encoder 331 is used for storing the motor origin position and transmitting the origin position of the motor 31 to the driver 2. The incremental optical scale 332 is used for outputting the detection signal and the pulse corresponding to the detection signal. The signal is sent to the detecting unit 124 of the controller 1.

接著,請繼續參閱第2圖,使用者介面11用以供使用者設定具有尋找原點機制之數值控制系統進入尋找原點模式及設定尋找原點速度,使用者介 面11經設定進入尋找原點模式後,即觸發尋找原點訊號,同時,馬達編碼器331之第二端輸出所儲存的馬達31之原點位置至驅動器2,驅動器2將馬達31之原點位置輸出至運動規劃單元123之第三端,運動規劃單元123之第三端接收馬達31之原點位置後,進行運動規劃並於運動規劃單元123之第三端發出運動指令至驅動器2,驅動器2接收運動指令後,驅動馬達31帶動床台32進行移動,當床台32定位至馬達31之原點位置後,增量式光學尺332開始分別輸出偵測訊號與相對應於偵測訊號之脈衝訊號至偵測單元124與脈衝訊號讀取單元121,當偵測單元124接收到最先偵測到的偵測訊號時,將偵測訊號輸出至運動規劃單元123,且脈衝訊號讀取單元121將所接收到的脈衝訊號輸出至轉換單元,轉換單元將脈衝訊號轉換為位置訊號並輸出位置訊號至運動規劃單元123,此位置訊號係代表床台32之原點位置,運動規劃單元123接收到偵測訊號後,根據尋找原點速度與位置訊號規劃床台之運動位移量,並將運動位移量輸出至轉換單元122將運動位移量轉換為新運動指令,轉換單元122輸出新運動指令至運動規劃單元123,運動規劃單元123將新運動指令輸出至驅動器2,驅動器2根據新運動指令驅動馬達31帶動床台32定位至床台原點位置,如此一來,完成尋找床台原點的動作。 Then, please continue to refer to FIG. 2, the user interface 11 is used for the user to set the numerical control system with the mechanism for finding the origin to enter the search origin mode and set the search origin speed. After the face 11 is set to enter the search origin mode, the search for the origin signal is triggered. At the same time, the second end of the motor encoder 331 outputs the stored origin position of the motor 31 to the driver 2, and the driver 2 takes the origin of the motor 31. The position is output to the third end of the motion planning unit 123. After receiving the origin position of the motor 31, the third end of the motion planning unit 123 performs motion planning and sends a motion instruction to the driver 2 at the third end of the motion planning unit 123. 2 After receiving the motion command, the driving motor 31 drives the bed 32 to move. When the bed 32 is positioned to the origin position of the motor 31, the incremental optical scale 332 starts to output the detecting signal and the corresponding detecting signal respectively. The pulse signal to the detecting unit 124 and the pulse signal reading unit 121, when the detecting unit 124 receives the first detected detecting signal, outputs the detecting signal to the motion planning unit 123, and the pulse signal reading unit 121, the received pulse signal is output to the conversion unit, and the conversion unit converts the pulse signal into a position signal and outputs a position signal to the motion planning unit 123, where the position signal represents the bed After the motion detection unit 123 receives the detection signal, the motion planning unit 123 plans the motion displacement amount of the bed according to the origin speed and the position signal, and outputs the motion displacement amount to the conversion unit 122 to convert the motion displacement amount into a new one. The motion command, the conversion unit 122 outputs a new motion command to the motion planning unit 123, and the motion planning unit 123 outputs a new motion command to the driver 2, and the driver 2 drives the motor 31 to drive the bed 32 to the bed origin position according to the new motion command. First, complete the action of finding the origin of the bed.

最後,請參閱第3圖,第3圖係本發明一實施例之具有尋找原點機制之尋找原點之方法流程圖,係包含以下步驟。 Finally, please refer to FIG. 3, which is a flow chart of a method for finding the origin of the origin finding mechanism according to an embodiment of the present invention, which includes the following steps.

步驟S1:使用者確認電性連接至床台32之馬達31之原點位置是否完成設定,當使用者確認馬達31之原點位置已完成設定後,則執行步驟S2,若使用者確認馬達31之原點位置尚未完成設定時,則執行步驟S3,意即將數值控制系統切換至手動模式,使用者藉由手動方式移動床台32至馬達31之原點位置;步驟S2:使用者設定尋找原點速度並將設定數值控制系統進入尋找原點模式;步驟S4:觸發尋找原點訊號,且馬達編碼器331輸出馬達31的原點位置至驅動器2,驅動器2再將馬達31的原點位置輸出至運動規劃單元123,運動 規劃單元123輸出運動指令至驅動器2,驅動器2藉由運動指令驅動馬達31帶動床台32之移動;步驟S5:當床台32定位至馬達31之原點位置後,增量式光學尺332開始分別輸出偵測訊號與相對應於偵測訊號之脈衝訊號至偵測單元124與脈衝訊號讀取單元121,脈衝訊號之脈衝數量係代表馬達31之原點位置與床台32位置之間的距離;步驟S6:當控制器1之偵測單元124接收到最先偵測到的偵測訊號時,偵測單元124將偵測訊號輸出至運動規劃單元123,且脈衝訊號讀取單元121將所接收到的脈衝訊號輸出至轉換單元122,轉換單元122將脈衝訊號轉換為位置訊號並輸出至運動規劃單元123,此位置訊號係代表床台32之原點位置;步驟S7:運動規劃單元123接收到偵測訊號後,根據尋找原點速度與位置訊號規劃床台32之運動位移量,並再將運動位移量輸出至轉換單元122轉換為新運動指令並輸出至運動規劃單元123,運動規劃單元123將新運動指令輸出至驅動器2;及步驟S8:驅動器2根據新運動指令驅動床台32定位至床台32之原點位置。 Step S1: The user confirms whether the home position of the motor 31 electrically connected to the bed 32 is completed. When the user confirms that the home position of the motor 31 has been set, step S2 is performed, and if the user confirms the motor 31 If the original position has not been set yet, step S3 is executed to switch the numerical control system to the manual mode, and the user manually moves the bed 32 to the origin position of the motor 31; step S2: the user sets the original search The point speed and the set value control system enters the search origin mode; step S4: triggers the search for the origin signal, and the motor encoder 331 outputs the origin position of the motor 31 to the driver 2, and the driver 2 outputs the origin position of the motor 31 again. To the motion planning unit 123, exercise The planning unit 123 outputs a motion command to the driver 2, and the driver 2 drives the motor 31 to move the bed 32 by the motion command; Step S5: After the bed 32 is positioned to the origin position of the motor 31, the incremental optical scale 332 starts. The detection signal and the pulse signal corresponding to the detection signal are respectively output to the detecting unit 124 and the pulse signal reading unit 121, and the pulse number of the pulse signal represents the distance between the origin position of the motor 31 and the position of the bed 32. Step S6: When the detecting unit 124 of the controller 1 receives the first detected detecting signal, the detecting unit 124 outputs the detecting signal to the motion planning unit 123, and the pulse signal reading unit 121 The received pulse signal is output to the conversion unit 122, and the conversion unit 122 converts the pulse signal into a position signal and outputs it to the motion planning unit 123. The position signal represents the origin position of the bed 32; step S7: the motion planning unit 123 receives After the detection signal, the motion displacement amount of the bed 32 is planned according to the origin speed and the position signal, and the motion displacement amount is output to the conversion unit 122 to be converted into a new motion command and input. Exiting to the motion planning unit 123, the motion planning unit 123 outputs a new motion command to the driver 2; and step S8: the driver 2 drives the bed 32 to the home position of the bed 32 according to the new motion command.

上述本發明實施例中,加工機台3可以是一種用與車床、銑床、車銑複合機其中之一的加工機台,在此本發明並不設限。 In the above embodiment of the present invention, the processing machine 3 may be a processing machine used in one of a lathe, a milling machine, and a turning and milling machine, and the invention is not limited thereto.

上述本發明實施例中,藉由馬達編碼器紀錄馬達原點位置,並以增量式光學尺即時偵測床台距離馬達原點最近的位置而輸出偵測訊號至控制器,所偵測到離馬達原點最近位置之床台位置即為床台原點位置,以此方式則無需設置原點開關於加工機台內,也因此並不會造成加工距離縮減,且不因碰觸原點開關而導致尋找原點動作異常,影響加工品質與速度。 In the above embodiment of the present invention, the motor encoder records the origin position of the motor, and the incremental optical scale instantly detects the position of the bed closest to the origin of the motor, and outputs a detection signal to the controller, and the detected signal is detected. The position of the bed closest to the motor origin is the original position of the bed. In this way, it is not necessary to set the origin switch in the processing machine, so the machining distance is not reduced, and the origin switch is not touched. It leads to abnormal operation of the origin, which affects the processing quality and speed.

以上所述僅為本發明之較佳實施例,並非用以限定本發明之權利範圍;同時以上的描述,對於相關技術領域之專門人士應可明瞭 及實施,因此其他未脫離本發明所揭示之精神下所完成的等效改變或修飾,均應包含在申請專利範圍中。 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 apparent to those skilled in the relevant art. And other equivalent changes or modifications that are made without departing from the spirit of the invention, are intended to be included in the scope of the claims.

1‧‧‧控制器 1‧‧‧ controller

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

12‧‧‧尋找原點控制模組 12‧‧‧ Looking for the origin control module

121‧‧‧脈衝訊號讀取單元 121‧‧‧pulse signal reading unit

122‧‧‧轉換單元 122‧‧‧Conversion unit

123‧‧‧運動規劃單元 123‧‧‧Sports Planning Unit

124‧‧‧偵測單元 124‧‧‧Detection unit

2‧‧‧驅動器 2‧‧‧ Drive

3‧‧‧加工機台 3‧‧‧Processing machine

31‧‧‧馬達 31‧‧‧Motor

32‧‧‧床台 32‧‧‧ Beds

33‧‧‧位置資訊提供裝置 33‧‧‧Location information providing device

331‧‧‧馬達編碼器 331‧‧‧Motor encoder

332‧‧‧增量式光學尺 332‧‧‧Incremental optical ruler

Claims (7)

一種具有尋找原點機制之數值控制系統,係由一控制器、一驅動器及一加工機台所組成,該驅動器具有一第一端與一第二端,該控制器具有一第一端、一第二端及一第三端,該控制器之該第三端電性連接至該驅動器之該第一端,該加工機台包括一床台、一馬達及一位置資訊提供裝置,該馬達具有一第一端、一第二端及一第三端,該馬達之該第一端電性連接至該驅動器之該第二端,該馬達之該第二端電性連接至該床台之一端,該馬達用以帶動該床台之移動,該位置資訊提供裝置具有一第一端、一第二端、一第三端及一第四端,該位置資訊提供裝置之該第一端電性連接至該馬達之該第三端,該位置資訊提供裝置之該第二端電性連接至該床台之另一端,該位置資訊提供裝置之該第三端電性連接至該驅動器之該第二端,該位置資訊提供裝置之該第四端電性連接至該控制器之該第一端與該第二端,其特徵在於:該控制器用以供使用者設定該具有尋找原點機制之數值控制系統進入一尋找原點模式及設定一尋找原點速度,該控制器觸發一尋找原點訊號,該位置資訊提供裝置之該第三端輸出該馬達之原點位置至該驅動器,該驅動器將該馬達之原點位置輸出至該控制器,該控制器接收該馬達之原點位置後,發出一運動指令至該驅動器,該驅動器根據該運動指令驅動該馬達帶動該床台進行移動,當該床台定位至該馬達之原點位置後,該位置資訊提供裝置開始輸出一偵測訊號與一相對應於該偵測訊號之脈衝訊號至該控制器,該控制器接收到最先偵測到的該偵測訊號後,將該脈衝訊號轉換為一位置訊號,該控制器依據該尋找原點速度與該位置訊號規劃一運動位移量,該控制器根據該運動位移量輸出一新運動指令至該驅動器,該驅動器根據該新運動指令驅動該床台定位至該床台之原點位置。 A numerical control system having a mechanism for finding an origin is composed of a controller, a driver and a processing machine. The driver has a first end and a second end, and the controller has a first end and a second end. And the third end of the controller is electrically connected to the first end of the driver, the processing machine comprises a bed, a motor and a position information providing device, the motor has a first One end, a second end and a third end, the first end of the motor is electrically connected to the second end of the driver, and the second end of the motor is electrically connected to one end of the bed, The motor is configured to drive the movement of the bed. The position information providing device has a first end, a second end, a third end and a fourth end. The first end of the position information providing device is electrically connected to the The third end of the position information providing device is electrically connected to the other end of the bed, and the third end of the position information providing device is electrically connected to the second end of the driver The fourth end electrical property of the location information providing device Connecting to the first end and the second end of the controller, the controller is configured to allow the user to set the numerical control system with the mechanism for finding the origin to enter a search origin mode and set a search origin Speed, the controller triggers a search for an origin signal, the third end of the position information providing device outputs an origin position of the motor to the driver, and the driver outputs the origin position of the motor to the controller, the control After receiving the origin position of the motor, the device sends a motion command to the driver, and the driver drives the motor to move the bed according to the motion command. When the bed is positioned to the origin position of the motor, the position is The information providing device starts to output a detection signal and a pulse signal corresponding to the detection signal to the controller. After receiving the first detected detection signal, the controller converts the pulse signal into a a position signal, the controller plans a motion displacement amount according to the search origin speed and the position signal, and the controller outputs a new motion command according to the motion displacement amount to Driver, the driver drives the bed to the original position of the positioning of the bed according to the new motion command. 依據申請專利範圍第1項所述的具有尋找原點機制之數值控制機台,其中該脈衝訊號之脈衝數量係代表該馬達之原點位置與該床台之位置之間的距離。 According to the numerical control machine with the origin finding mechanism described in claim 1, wherein the pulse number of the pulse signal represents the distance between the origin position of the motor and the position of the bed. 依據申請專利範圍第1項所述的具有尋找原點機制之數值控制機台,其中該控制器包括一使用者介面與一尋找原點控制模組,該使用者介面電性連接於該尋找原點控制模組,該尋找原點控制模組包括:一脈衝訊號讀取單元,其用以接收該位置資訊提供裝置所輸出之該脈衝訊號並將該脈衝訊號輸出;一轉換單元,其一端連接至該脈衝訊號讀取單元,接收該脈衝訊號讀取單元所輸出之該脈衝訊號,並將該脈衝訊號轉換為該位置訊號,及將該運動位移量轉換為該新運動指令後輸出;一偵測單元,其一端連接至該位置資訊提供裝置,該偵測單元接收該位置資訊提供裝置所輸出之該偵測訊號並輸出該偵測訊號;及一運動規劃單元,具有一第一端、一第二端及一第三端,該運動規劃單元之該第一端連接至該轉換單元與該使用者介面,該運動規劃單元之該第二端連接至該偵測單元,該運動規劃單元之該第三端連接至該驅動器,該運動規劃單元之該第一端接收該轉換單元所輸出之該位置訊號與該使用者介面所輸出之該尋找原點速度,該運動規劃單元之該第二端接收該偵測單元所輸出之該偵測訊號,該運動規劃單元之該第三端接收該驅動器所輸出之該馬達之原點位置,該運動規劃單元發出該運動指令至該驅動器,且該運動規劃單元根據該位置訊號規劃該床台之該運動位移量,並輸出該運動位移量至該轉換單元,及於該運動規劃單元之該第三端輸出該新運動指令至該驅動器。 According to the numerical control machine with the origin finding mechanism described in claim 1, wherein the controller includes a user interface and a search origin control module, and the user interface is electrically connected to the search source. a point control module, the search origin control module includes: a pulse signal reading unit for receiving the pulse signal output by the position information providing device and outputting the pulse signal; and a conversion unit connected at one end thereof Receiving, by the pulse signal reading unit, the pulse signal output by the pulse signal reading unit, converting the pulse signal into the position signal, and converting the motion displacement into the new motion instruction; The measuring unit has one end connected to the position information providing device, the detecting unit receiving the detecting signal output by the position information providing device and outputting the detecting signal; and a motion planning unit having a first end and a a second end and a third end, the first end of the motion planning unit is connected to the conversion unit and the user interface, and the second end of the motion planning unit Connected to the detecting unit, the third end of the motion planning unit is connected to the driver, the first end of the motion planning unit receives the position signal output by the converting unit and the search output by the user interface The second end of the motion planning unit receives the detection signal output by the detection unit, and the third end of the motion planning unit receives the origin position of the motor output by the driver, the motion The planning unit sends the motion command to the driver, and the motion planning unit plans the motion displacement amount of the bed according to the position signal, and outputs the motion displacement amount to the conversion unit, and the third of the motion planning unit The terminal outputs the new motion command to the driver. 依據申請專利範圍第3項所述的具有尋找原點機制之數值控制機台,其中該加工機台之該位置資訊提供裝置包括:一馬達編碼器,其具有一第一端與一第二端,該馬達編碼器之該第一端電性連接至該馬達之該第三端,該馬達編碼器之該第二端電性連接至該驅動器之該第二端,用以儲存該馬達之原點位置並傳遞該馬達之原點位置至該驅動器;及 一增量式光學尺,其具有一第一端與一第二端,該增量式光學尺之該第一端電性連接至該床台之另一端,該增量式光學尺之該第二端電性連接至該偵測單元與該脈衝訊號讀取單元,該增量式光學尺用以分別輸出該偵測訊號與相對應於該偵測訊號之該脈衝訊號至該偵測單元與該脈衝訊號讀取單元。 A numerical control machine having a mechanism for finding an origin according to claim 3, wherein the position information providing device of the processing machine comprises: a motor encoder having a first end and a second end The first end of the motor encoder is electrically connected to the third end of the motor, and the second end of the motor encoder is electrically connected to the second end of the motor for storing the original of the motor Point position and pass the origin position of the motor to the drive; and An incremental optical scale having a first end and a second end, the first end of the incremental optical scale being electrically connected to the other end of the bed, the incremental optical ruler The two ends are electrically connected to the detecting unit and the pulse signal reading unit, and the incremental optical meter is configured to respectively output the detecting signal and the pulse signal corresponding to the detecting signal to the detecting unit and The pulse signal reading unit. 依據申請專利範圍第4項所述的具有尋找原點機制之數值控制機台,其中該馬達編碼器係一絕對式馬達編碼器。 A numerical control machine having a mechanism for finding an origin according to the fourth aspect of the patent application, wherein the motor encoder is an absolute motor encoder. 一種用於數值控制系統之尋找原點之方法,用以尋找該數值控制系統之一床台之原點位置,包括下列步驟:確認一電性連接至該床台之馬達之原點是否完成設定;設定一尋找原點速度並將設定該數值控制系統進入一尋找原點模式;觸發一尋找原點訊號並發出一運動指令至一與該床台電性連接之驅動器,該驅動器藉由該運動指令驅動該床台移動;當該床台定位至該馬達之原點位置後,一與該驅動器電性連接之控制器開始輸出一偵測訊號與一相對應於該偵測訊號之脈衝訊號,該脈衝訊號之脈衝數量係代表該馬達之原點位置與該床台位置之間的距離;當接收到最先偵測到的該偵測訊號時,該控制器將該脈衝訊號轉換為一位置訊號;根據該尋找原點速度與該位置訊號規劃該床台之一運動位移量,並再將該運動位移量轉換為一新運動指令後輸出至該驅動器;及根據該新運動指令驅動該床台定位至該床台之原點位置。 A method for finding an origin of a numerical control system for finding an origin position of a bed of the numerical control system, comprising the steps of: confirming whether an origin of a motor electrically connected to the bed is set Setting a search for the origin speed and setting the numerical control system to a search origin mode; triggering a search for the origin signal and issuing a motion command to a driver electrically connected to the bed, the driver by the motion command Driving the bed to move; when the bed is positioned to the origin position of the motor, a controller electrically connected to the driver starts to output a detection signal and a pulse signal corresponding to the detection signal, The number of pulses of the pulse signal represents the distance between the origin position of the motor and the position of the bed; when receiving the first detected detection signal, the controller converts the pulse signal into a position signal And calculating a motion displacement amount of the bed according to the search origin speed and the position signal, and converting the motion displacement amount into a new motion command, and outputting to the driver; According to the new movement command to drive the bed to the original position of the positioning of the bed. 依據申請專利範圍第6項所述的用於數值控制系統之尋找原點之方法,另包括下列步驟:當該馬達之原點並未完成設定時,將該數值控制系統切換至一手動模式,使用者藉由手動方式移動該床台至該馬達之原點位置。 The method for finding an origin of a numerical control system according to claim 6 of the patent application scope, further comprising the steps of: switching the numerical control system to a manual mode when the origin of the motor is not completed, The user manually moves the bed to the origin of the motor.
TW104121451A 2015-07-02 2015-07-02 Numeric control system and method of searching original point mechanism TWI560535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104121451A TWI560535B (en) 2015-07-02 2015-07-02 Numeric control system and method of searching original point mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104121451A TWI560535B (en) 2015-07-02 2015-07-02 Numeric control system and method of searching original point mechanism

Publications (2)

Publication Number Publication Date
TWI560535B TWI560535B (en) 2016-12-01
TW201702773A true TW201702773A (en) 2017-01-16

Family

ID=58227161

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104121451A TWI560535B (en) 2015-07-02 2015-07-02 Numeric control system and method of searching original point mechanism

Country Status (1)

Country Link
TW (1) TWI560535B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI627518B (en) * 2016-12-28 2018-06-21 新代科技股份有限公司 Computer Numerical Controlling System and Controlling Method Thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3902138B2 (en) * 2002-01-17 2007-04-04 三菱電機株式会社 Numerical control method and apparatus
US7090177B2 (en) * 2003-11-19 2006-08-15 Eastman Kodak Company Device for optics alignment and mounting
TWI383277B (en) * 2008-08-29 2013-01-21 Innovation Matrix Inc The working coordinate correction method of plane motor
TW201039165A (en) * 2009-04-21 2010-11-01 Lih Jaan Prec Machinery Co Ltd Servo computer numerical control (CNC) system for precision grinding
CN101776879B (en) * 2009-12-29 2012-03-07 上海维宏电子科技有限公司 Method for returning to mechanical reference point in numerical control machine tool system
CN102207731B (en) * 2010-03-30 2013-09-04 发那科株式会社 Machine tool having function of setting measurement reference point of workpiece
CN102707662B (en) * 2012-05-15 2014-06-25 广州数控设备有限公司 Zero returning control method based on industrial Ethernet bus technology

Also Published As

Publication number Publication date
TWI560535B (en) 2016-12-01

Similar Documents

Publication Publication Date Title
JP2010238174A (en) Positioning device and positioning method
CN105045199A (en) Screw rod return stroke error detection compensation method based on PLC
CN102624375A (en) Signal processing device compatible with multiple kinds of interfaces of encoders and rotary transformers
JP2015219232A (en) Encoder
CN103760921B (en) The initial point Precise Position System of the multiple sensor fusion of low precision and localization method
US10081151B2 (en) Servo press and control method
TW201702773A (en) Numeric control system and method of searching original point mechanism
CN103853094A (en) Numerical control machine tool CNC (Computer Numerical Control) system
CN103940347B (en) Increment type grating scale failure detector and detection method thereof
CN204010487U (en) A kind of position control teaching experiment platform
CN202024750U (en) Environmental temperature protection device and three coordinate measuring machine
KR0168068B1 (en) Positioning information reader & reading method
CN203982204U (en) Metal works rectilinear motion positioning control system based on eddy current sensor
CN103615999A (en) Motion synchronization precision detecting device based on linear motors
CN205594425U (en) Numerical value control system with searching initial point mechanism
CN104158452A (en) AC servo permanent magnetic driver
CN104976972B (en) System for measuring orthogonality of workbench and method for positioning workbench to return
JP2010012562A (en) Micro machine and micro milling machine
CN203792099U (en) Device for determining control signal output through absolute position
CN203758481U (en) Motion synchronization precision detecting device based on linear motors
CN206767016U (en) The multiposition line-shifting machine intelligent apparatus of sensor control
JP6949272B1 (en) Mobile system and position estimation method
CN103616000A (en) Motion synchronization precision detection device
CN111113152A (en) Detection compensation device, detection compensation method, and computer-readable storage medium
CN105955193A (en) Numerical control system with origin search mechanism and origin search method thereof