TWI381277B - System and method for converting a measurement program - Google Patents
System and method for converting a measurement program Download PDFInfo
- Publication number
- TWI381277B TWI381277B TW95129531A TW95129531A TWI381277B TW I381277 B TWI381277 B TW I381277B TW 95129531 A TW95129531 A TW 95129531A TW 95129531 A TW95129531 A TW 95129531A TW I381277 B TWI381277 B TW I381277B
- Authority
- TW
- Taiwan
- Prior art keywords
- program
- measurement
- target
- module
- conversion
- Prior art date
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Description
本發明涉及一種資料轉換系統及方法,特別是涉及一種量測程式轉換系統及方法。 The present invention relates to a data conversion system and method, and more particularly to a measurement program conversion system and method.
在高品質產品的製造和高效率生產環境的構建中,測量技術的應用起了很大的作用,其重要性與日俱增,各種擁有極佳測量精度及可靠性的量測設備不斷的在企業中得到推廣和應用。任何一種加工設備,其在製備過程中必然會出現由熱變形引起的偏移和由治具磨損產生的偏差,減小這些偏移和偏差,必然需要高精度的量測設備對其產品進行量測。目前,各個量測設備製造公司都在不斷的研發和改進自身的量測設備以滿足市場不斷變化的要求,例如:目前市場上出現的一種快速掃描量測設備QV(Quick Vision)。 In the construction of high-quality products and the construction of high-efficiency production environments, the application of measurement technology has played a major role, and its importance is increasing day by day. Various measurement equipments with excellent measurement accuracy and reliability are continuously obtained in enterprises. Promotion and application. In any processing equipment, the offset caused by thermal deformation and the deviation caused by the wear of the jig are inevitable during the preparation process, and these offsets and deviations are reduced, which inevitably requires high-precision measuring equipment to measure the amount of the product. Measurement. At present, various measuring equipment manufacturing companies are constantly developing and improving their own measuring equipment to meet the ever-changing requirements of the market. For example, a fast scanning measuring device QV (Quick Vision) appears on the market.
事實上,很多企業擁有多家公司開發的量測設備對一種產品進行精密量測,然而,通常不同公司的量測設備之間的量測程式是不相容的,這些量測設備在對一種產品進行精密量測時,必須配備不同格式的產品量測程式,這就要求工作人員為每一種量測設備編制相應格式的量測程式,進而造成量測作業過程的繁瑣及量測作業時間的浪費。 In fact, many companies have measurement equipment developed by a number of companies to accurately measure a product. However, the measurement programs between measurement devices of different companies are usually incompatible. When the product is accurately measured, it must be equipped with a product measurement program of different formats. This requires the staff to prepare a measurement program of the corresponding format for each measurement device, which will cause the cumbersome measurement process and the measurement operation time. waste.
鑒於以上內容,有必要提供一種量測程式轉換系統及方法以迅速且準確的進行量測程式的轉換,避免量測作業 過程的繁瑣和量測作業時間的浪費。 In view of the above, it is necessary to provide a measurement program conversion system and method for quickly and accurately converting measurement programs to avoid measurement operations. The cumbersome process and the waste of measuring the working time.
一種量測程式轉換系統,包括一個用於存儲需轉換的量測程式的量測程式存儲區,一個用於存儲轉換後的目標程式的目標程式存儲區,及一個用於轉換該量測程式的轉換模組。該轉換模組包括:讀取子模組,用於從該量測程式存儲區中讀取需轉換的量測程式;量測元素轉換子模組,用於在該量測程式中包括量測元素程式時,將該量測元素程式轉換為量測元素目標程式;創建元素轉換子模組,用於在該量測程式中包括創建元素程式時,將該創建元素程式轉換為創建元素目標程式;座標系轉換子模組,用於在該量測程式中包括座標系設置程式時,將該座標系設置程式轉換為座標系設置目標程式;尺寸輸出轉換子模組,用於在該量測程式中包括尺寸輸出程式時,將該尺寸輸出程式轉換為尺寸輸出目標程式;及傳送子模組,用於將上述轉換的所有目標程式傳送至該目標程式存儲區中存儲。 A measurement program conversion system includes a measurement program storage area for storing a measurement program to be converted, a target program storage area for storing the converted target program, and a conversion program for converting the measurement program. Conversion module. The conversion module includes: a read sub-module for reading a measurement program to be converted from the measurement program storage area; and a measurement element conversion sub-module for including measurement in the measurement program In the element program, the measurement element program is converted into a measurement element target program; and an element conversion sub-module is created, which is used to convert the created element program to create an element target program when the element program is created in the measurement program. The coordinate system conversion sub-module is configured to convert the coordinate system setting program into a coordinate system setting target program when the coordinate program setting program is included in the measurement program; and the size output conversion sub-module is used for the measurement When the program includes the size output program, the size output program is converted into a size output target program; and the transfer sub-module is used to transfer all the target programs of the conversion to the target program storage area for storage.
一種量測程式轉換方法,包括如下步驟:(a)從量測程式存儲區中讀取需轉換的量測程式;(b)在該量測程式中包括量測元素程式時,將該量測元素程式轉換為量測元素目標程式;(c)在該量測程式中包括創建元素程式時,將該創建元素程式轉換為創建元素目標程式;(d)在該量測程式中包括座標系設置程式時,將該座標系設置程式轉換為座標系設置目標程式;(e)在該量測程式中包括尺寸輸出程式時,將該尺寸輸出程式轉換為尺寸輸出目標程式;(f)將上述轉換的所有目標程式傳送至 該目標程式存儲區中存儲。 A measurement program conversion method includes the following steps: (a) reading a measurement program to be converted from a measurement program storage area; (b) measuring the measurement element program when the measurement program is included in the measurement program The element program is converted into a measurement element target program; (c) the creation element program is converted into a creation element object program when the measurement program is included in the measurement program; (d) the coordinate system setting is included in the measurement program. In the program, the coordinate system setting program is converted into a coordinate system setting target program; (e) when the size output program is included in the measurement program, the size output program is converted into a size output target program; (f) the above conversion All target programs are transferred to The target program is stored in the storage area.
相較習知技術,所述的量測程式轉換系統及方法,充分考量了量測程式轉換過程的自動化,避免了量測作業過程的繁瑣和量測作業時間的浪費。 Compared with the prior art, the measurement program conversion system and method fully considers the automation of the measurement program conversion process, and avoids the tedious measurement process and the waste of the measurement operation time.
參閱圖1所示,係本發明量測程式轉換系統較佳實施方式的硬體架構圖。該系統包括一個量測程式存儲區15,一個轉換模組17,一個目標程式存儲區19,一個用於連接元器件間信號傳輸的的通用串列匯流排13,及一個用於處理元器件間信號的CPU(central processing unit ,中央處理器)10。該CPU 10透過該通用串列匯流排13與該量測程式存儲區15、轉換模組17及目標程式存儲區19進行通信。該量測程式存儲區15用於存儲需轉換的量測程式。該轉換模組17用於將該量測程式存儲區15中存儲的量測程式轉換為需獲得的目標程式,該量測程式與目標程式的格式不同。該目標程式存儲區19用於存儲該轉換模組17轉換的目標程式。 Referring to Figure 1, there is shown a hardware architecture diagram of a preferred embodiment of the measurement program conversion system of the present invention. The system includes a measurement program storage area 15, a conversion module 17, a target program storage area 19, a universal serial bus 13 for connecting signal transmission between components, and a processing component room. The CPU (central processing unit) of the signal 10. The CPU 10 communicates with the measurement program storage area 15, the conversion module 17, and the target program storage area 19 via the universal serial bus 13. The measurement program storage area 15 is used to store a measurement program to be converted. The conversion module 17 is configured to convert the measurement program stored in the measurement program storage area 15 into a target program to be obtained, which is different from the format of the target program. The target program storage area 19 is used to store the target program converted by the conversion module 17.
參閱圖2所示,係轉換模組17的子功能模組圖。該轉換模組17包括讀取子模組170、量測元素轉換子模組171、創建元素轉換子模組172、燈光轉換子模組173、座標系轉換子模組174、尺寸輸出轉換子模組175及傳送子模組176。 Referring to FIG. 2, it is a sub-function module diagram of the conversion module 17. The conversion module 17 includes a reading sub-module 170, a measurement element conversion sub-module 171, a creation element conversion sub-module 172, a light conversion sub-module 173, a coordinate system conversion sub-module 174, and a size output conversion sub-module. Group 175 and transfer sub-module 176.
該讀取子模組170,用於從該量測程式存儲區15中讀取需轉換的量測程式。該量測程式包括量測元素程式、創建元素程式、燈光設置程式、座標系設置程式及/或尺寸輸 出程式;該目標程式與該量測程式相對應,其包括量測元素目標程式、創建元素目標程式、燈光設置目標程式、座標系設置目標程式及/或尺寸輸出目標程式。 The read sub-module 170 is configured to read the measurement program to be converted from the measurement program storage area 15. The measurement program includes a measurement element program, an element creation program, a light setting program, a coordinate system setting program, and/or a size input. The target program corresponds to the measurement program, and includes a measurement element target program, a creation element target program, a light setting target program, a coordinate system setting target program, and/or a size output target program.
該量測元素轉換子模組171,用於將該量測程式中的量測元素程式轉換為量測元素目標程式。量測元素包括要量測的點、線、面及圓。量測元素程式包括量測點程式、量測線程式、量測面程式及/或量測圓程式;量測元素目標程式與該量測元素程式相對應。進一步地,該量測元素轉換子模組171用於透過關鍵字從該量測程式中搜索出需轉換的量測元素程式,將搜索出的量測元素程式中的量測點程式轉換為量測點目標程式,將搜索出的量測元素程式中的量測線程式轉換為量測線目標程式,將搜索出的量測元素程式中的量測面程式轉換為量測面目標程式,及將搜索出的量測元素程式中的量測圓程式轉換為量測圓目標程式。 The measurement element conversion sub-module 171 is configured to convert the measurement element program in the measurement program into a measurement element target program. The measurement elements include the points, lines, faces, and circles to be measured. The measurement element program includes a measurement point program, a measurement thread type, a measurement surface program, and/or a measurement circle program; the measurement element target program corresponds to the measurement element program. Further, the measurement element conversion sub-module 171 is configured to search for a measurement element program to be converted from the measurement program by using a keyword, and convert the measurement point program in the searched measurement element program into a quantity. The measuring point target program converts the measurement thread in the searched measurement element program into a measuring line target program, and converts the measuring surface program in the searched measuring element program into a measuring surface target program, and Converts the measurement circle program in the searched measurement element program to the measurement circle target program.
該創建元素轉換子模組172,用於將該量測程式中的創建元素程式轉換為創建元素目標程式。創建元素包括透過量測元素要創建的量測點、量測線、量測面及量測圓。創建元素程式包括創建點程式、創建線程式、創建面程式及/或創建圓程式;創建元素目標程式與該創建元素程式相對應。進一步地,該創建元素轉換子模組172用於透過關鍵字從該量測程式中搜索出需轉換的創建元素程式,將搜索出的創建元素程式中的創建點程式轉換為創建點目標程式,將搜索出的創建元素程式中的創建線程式轉換為創建線目標程式,將搜索出的創建元素程式中的 創建面程式轉換為創建面目標程式,及將搜索出的創建元素程式中的創建圓程式轉換為創建圓目標程式。 The create element conversion sub-module 172 is configured to convert the created element program in the measurement program into a create element target program. The creation of the element includes the measurement point, the measurement line, the measurement surface, and the measurement circle to be created by the measurement element. Creating an element program includes creating a point program, creating a thread, creating a surface program, and/or creating a circle program; creating an element object program corresponds to the element creation program. Further, the creating element conversion sub-module 172 is configured to search for a creation element program to be converted from the measurement program by using a keyword, and convert the created point program in the searched creation element program into a creation point target program. Convert the created thread in the searched creation element program to create a line target program that will search for the created element in the program The creation of the face program is converted to create a face target program, and the created circle program in the searched creation element program is converted into a circle object creation program.
該燈光轉換子模組173,用於當量測有燈光設置的要求時將該量測程式中的燈光設置程式轉換為燈光設置目標程式。進一步地,該燈光轉換子模組173用於透過關鍵字從該量測程式中搜索出需轉換的燈光設置程式,根據使用該量測程式的量測機台與需要使用的量測機台的燈光值的差別計算出應補償燈光值,及將搜索出的燈光設置程式結合計算出的應補償燈光值轉換為燈光設置目標程式。 The light conversion sub-module 173 is configured to convert the light setting program in the measurement program into a light setting target program when the requirement for the light setting is equivalent. Further, the light conversion sub-module 173 is configured to search for a light setting program to be converted from the measurement program by using a keyword, according to the measuring machine using the measuring program and the measuring machine to be used. The difference between the light values is calculated to compensate the light value, and the searched light setting program is combined with the calculated compensated light value into a light setting target program.
該座標系轉換子模組174,用於將該量測程式中的座標系設置程式轉換為座標系設置目標程式。座標系設置程式包括補正面程式、旋轉座標軸程式、平移座標軸程式、座標軸歸零程式及/或座標系調用程式;座標系設置目標程式與該座標系設置程式相對應。進一步地,該座標系轉換子模組174用於透過關鍵字從該量測程式中搜索出需轉換的座標系設置程式,將搜索出的座標系設置程式中的補正面程式轉換為補正面目標程式,將搜索出的座標系設置程式中的旋轉座標軸程式轉換為旋轉座標軸目標程式,將搜索出的座標系設置程式中的平移座標軸程式轉換為平移座標軸目標程式,將搜索出的座標系設置程式中的座標軸歸零程式轉換為座標軸歸零目標程式,將搜索出的座標系設置程式中的座標系調用程式轉換為座標系調用目標程式。 The coordinate system conversion sub-module 174 is configured to convert the coordinate system setting program in the measurement program into a coordinate system setting target program. The coordinate system setting program includes a complement front program, a rotary coordinate axis program, a translation coordinate axis program, a coordinate axis zero return program, and/or a coordinate system calling program; the coordinate system setting target program corresponds to the coordinate system setting program. Further, the coordinate system conversion sub-module 174 is configured to search for a coordinate system setting program to be converted from the measurement program by using a keyword, and convert the complementary positive program in the searched coordinate system setting program into a complementary positive target. The program converts the rotated coordinate axis program in the searched coordinate system setting program into a rotary coordinate axis target program, converts the translation coordinate coordinate axis program in the searched coordinate system setting program into a translation coordinate coordinate axis target program, and searches for the coordinate coordinate setting program. The coordinate axis zeroing program is converted into a coordinate axis zeroing target program, and the coordinate system calling program in the searched coordinate system setting program is converted into a coordinate system calling target program.
該尺寸輸出轉換子模組175,用於將該量測程式中的尺寸 輸出程式轉換為尺寸輸出目標程式。尺寸輸出程式包括輸出特徵程式、輸出距離程式、輸出直線度程式、輸出圓度程式、輸出平行度程式、輸出垂直度程式、輸出位置度程式及/或輸出文字資訊程式。輸出特徵規定需輸出的量測資料,例如:量測點數據包括座標(x,y,z);量測圓資料包括半徑、直徑及座標(x,y,z)。直線度、圓度、平行度、垂直度及位置度用於度量物件的幾何屬性,例如:直線度也稱為直線偏差,用於度量實際量測線與理論直線的偏差。進一步地,該尺寸輸出轉換子模組175用於透過關鍵字從該量測程式中搜索出需轉換的尺寸輸出程式,將搜索出的尺寸輸出程式中的輸出特徵程式轉換為輸出特徵目標程式,將搜索出的尺寸輸出程式中的輸出距離程式轉換為輸出距離目標程式,將搜索出的尺寸輸出程式中的輸出直線度程式轉換為輸出直線度目標程式,將搜索出的尺寸輸出程式中的輸出圓度程式轉換為輸出圓度目標程式,將搜索出的尺寸輸出程式中的輸出平行度程式轉換為輸出平行度目標程式,將搜索出的尺寸輸出程式中的輸出垂直度程式轉換為輸出垂直度目標程式,將搜索出的尺寸輸出程式中的輸出位置度程式轉換為輸出位置度目標程式,將搜索出的尺寸輸出程式中的輸出文字資訊程式轉換為輸出文字資訊目標程式。 The size output conversion sub-module 175 is used to size the measurement program The output program is converted to a size output target program. The size output program includes an output feature program, an output distance program, an output straightness program, an output roundness program, an output parallelism program, an output verticality program, an output position program, and/or an output text information program. The output characteristics specify the measurement data to be output. For example, the measurement point data includes coordinates (x, y, z); the measurement circle data includes radius, diameter, and coordinates (x, y, z). Straightness, roundness, parallelism, perpendicularity, and position are used to measure the geometric properties of an object. For example, straightness, also known as straightness deviation, is used to measure the deviation of the actual measurement line from the theoretical line. Further, the size output conversion sub-module 175 is configured to search for a size output program to be converted from the measurement program by using a keyword, and convert the output feature program in the searched size output program into an output feature target program. Converting the output distance program in the searched size output program into an output distance target program, converting the output straightness program in the searched size output program into an output straightness target program, and outputting the output in the size output program The roundness program is converted into an output roundness target program, and the output parallelism program in the searched size output program is converted into an output parallelism target program, and the output verticality program in the searched size output program is converted into output verticality. The target program converts the output position degree program in the searched size output program into an output position degree target program, and converts the output text information program in the searched size output program into an output text information target program.
該傳送子模組176,用於將轉換的目標程式傳送至該目標程式存儲區19中存儲。 The transfer sub-module 176 is configured to transfer the converted target program to the target program storage area 19 for storage.
對運用該量測程式轉換系統以實現將量測程式快速且準 確的轉換為目標程式的步驟,進行如下闡述。 Use this measurement program to convert the system to achieve fast and accurate measurement The steps to convert to the target program are as follows.
首先,讀取子模組170從該量測程式存儲區15中讀取需轉換的量測程式。 First, the read sub-module 170 reads the measurement program to be converted from the measurement program storage area 15.
接著,量測元素轉換子模組171將該量測程式中的量測元素程式轉換為量測元素目標程式,創建元素轉換子模組172將該量測程式中的創建元素程式轉換為創建元素目標程式,燈光轉換子模組173將該量測程式中的燈光設置程式轉換為燈光設置目標程式,座標系轉換子模組174將該量測程式中的座標系設置程式轉換為座標系設置目標程式,尺寸輸出轉換子模組175將該量測程式中的尺寸輸出程式轉換為尺寸輸出目標程式。 Next, the measurement element conversion sub-module 171 converts the measurement element program in the measurement program into a measurement element target program, and creates an element conversion sub-module 172 to convert the created element program in the measurement program into a creation element. The target program, the light conversion sub-module 173 converts the light setting program in the measurement program into a light setting target program, and the coordinate system conversion sub-module 174 converts the coordinate system setting program in the measurement program into a coordinate system setting target. The program, size output conversion sub-module 175 converts the size output program in the measurement program into a size output target program.
之後,傳送子模組176將轉換的目標程式輸出至該目標程式存儲區19中。 Thereafter, the transfer sub-module 176 outputs the converted target program to the target program storage area 19.
參閱圖3所示,係本發明量測程式轉換方法較佳實施方式的具體實施流程圖。首先,讀取子模組170從該量測程式存儲區15中讀取需轉換的量測程式(步驟S20)。隨後,在該量測程式中包含量測元素程式時,量測元素轉換子模組171將該量測程式中的量測元素程式轉換為量測元素目標程式(步驟S22)。接著,在該量測程式中包含創建元素程式時,創建元素轉換子模組172將該量測程式中的創建元素程式轉換為創建元素目標程式(步驟S24)。接著,在該量測程式中包含燈光設置程式時,燈光轉換子模組173將該量測程式中的燈光設置程式轉換為燈光設置目標程式(步驟S26)。接著,在該量測程式中包含座標 系設置程式時,座標系轉換子模組174將該量測程式中的座標系設置程式轉換為座標系設置目標程式(步驟S28)。接著,在該量測程式中包含尺寸輸出程式時,尺寸輸出轉換子模組175將該量測程式中的尺寸輸出程式轉換為尺寸輸出目標程式(步驟S30)。最後,傳送子模組176將轉換的所有目標程式傳送至該目標程式存儲區19中存儲(步驟S32)。 Referring to FIG. 3, it is a specific implementation flowchart of a preferred embodiment of the measurement program conversion method of the present invention. First, the reading sub-module 170 reads the measurement program to be converted from the measurement program storage area 15 (step S20). Then, when the measurement element program is included in the measurement program, the measurement element conversion sub-module 171 converts the measurement element program in the measurement program into a measurement element target program (step S22). Next, when the creation element program is included in the measurement program, the creation element conversion sub-module 172 converts the creation element program in the measurement program into the creation element target program (step S24). Next, when the light setting program is included in the measurement program, the light conversion sub-module 173 converts the light setting program in the measurement program into a light setting target program (step S26). Next, include coordinates in the measurement program When the program is set, the coordinate system conversion sub-module 174 converts the coordinate system setting program in the measurement program into a coordinate system setting target program (step S28). Next, when the size output program is included in the measurement program, the size output conversion sub-module 175 converts the size output program in the measurement program into a size output target program (step S30). Finally, the transfer sub-module 176 transfers all the converted target programs to the target program storage area 19 for storage (step S32).
參閱圖4所示,係步驟S22的實施流程圖。首先,量測元素轉換子模組171透過關鍵字從該量測程式中搜索出需轉換的量測元素程式,所述關鍵字包括量測點程式的關鍵字、量測線程式的關鍵字、量測面程式的關鍵字及量測圓的關鍵字(步驟S220)。接著,在搜索出的量測元素程式中包含量測點程式時,量測元素轉換子模組171將搜索出的量測元素程式中的量測點程式轉換為量測點目標程式(步驟S222)。接著,在搜索出的量測元素程式中包含量測線程式時,量測元素轉換子模組171將搜索出的量測元素程式中的量測線程式轉換為量測線目標程式(步驟S224)。接著,在搜索出的量測元素程式中包含量測面程式時,量測元素轉換子模組171將搜索出的量測元素程式中的量測面程式轉換為量測面目標程式(步驟S226)。最後,在搜索出的量測元素程式中包含量測圓程式時,量測元素轉換子模組171將搜索出的量測元素程式中的量測圓程式轉換為量測圓目標程式(步驟S228)。 Referring to FIG. 4, it is a flowchart of the implementation of step S22. First, the measurement element conversion sub-module 171 searches for the measurement element program to be converted from the measurement program by using a keyword, and the keyword includes a keyword of the measurement point program, a measurement thread type keyword, The keyword of the measurement surface program and the keyword of the measurement circle (step S220). Then, when the searched measurement element program includes the measurement point program, the measurement element conversion sub-module 171 converts the measurement point program in the searched measurement element program into the measurement point target program (step S222). ). Then, when the searched measurement element program includes the measurement thread type, the measurement element conversion sub-module 171 converts the measurement thread in the searched measurement element program into the measurement line target program (step S224). ). Next, when the searched measurement element program includes the measurement surface program, the measurement element conversion sub-module 171 converts the measurement surface program in the searched measurement element program into the measurement surface target program (step S226). ). Finally, when the searched measurement element program includes the measurement circle program, the measurement element conversion sub-module 171 converts the measurement circle program in the searched measurement element program into the measurement circle target program (step S228). ).
參閱圖5所示,係步驟S24的實施流程圖。首先,創建元 素轉換子模組172透過關鍵字從該量測程式中搜索出需轉換的創建元素程式,所述關鍵字包括創建點程式的關鍵字、創建線程式的關鍵字、創建面程式的關鍵字及創建圓的關鍵字(步驟S240)。接著,在搜索出的創建元素程式中包含創建點程式時,創建元素轉換子模組172將搜索出的創建元素程式中的創建點程式轉換為創建點目標程式(步驟S242)。接著,在搜索出的創建元素程式中包含創建線程式時,創建元素轉換子模組172將搜索出的創建元素程式中的創建線程式轉換為創建線目標程式(步驟S244)。接著,在搜索出的創建元素程式中包含創建面程式時,創建元素轉換子模組172將搜索出的創建元素程式中的創建面程式轉換為創建面目標程式(步驟S246)。最後,在搜索出的創建元素程式中包含創建圓程式時,創建元素轉換子模組172將搜索出的創建元素程式中的創建圓程式轉換為創建圓目標程式(步驟S248)。 Referring to FIG. 5, it is a flowchart of the implementation of step S24. First, create a meta The conversion sub-module 172 searches for the created element program to be converted from the measurement program by using keywords, including keywords for creating a point program, creating a thread-type keyword, and creating a keyword for the surface program. A keyword of a circle is created (step S240). Next, when the created creation point program includes the creation point program, the creation element conversion sub-module 172 converts the created creation point program in the searched creation element program into the creation point target program (step S242). Next, when the created thread creation formula is included in the searched creation element program, the creation element conversion sub-module 172 converts the creation thread in the searched creation element program into the creation line target program (step S244). Next, when the created creation element program includes the creation surface program, the creation element conversion sub-module 172 converts the created creation surface program in the searched creation element program into the creation surface target program (step S246). Finally, when the created creation element program includes the creation circle program, the creation element conversion sub-module 172 converts the created circle program in the searched creation element program into the creation circle object program (step S248).
參閱圖6所示,係步驟S26的實施流程圖。首先,燈光轉換子模組173透過關鍵字從該量測程式中搜索出需轉換的燈光設置程式(步驟S260)。接著,燈光轉換子模組173根據使用該量測程式的量測機台與需要使用的量測機台的燈光值的差別計算出應補償燈光值(步驟S262)。最後,燈光轉換子模組173將搜索出的燈光設置程式結合計算出的應補償燈光值轉換為燈光設置目標程式(步驟S264)。 Referring to FIG. 6, it is a flowchart of the implementation of step S26. First, the light conversion sub-module 173 searches for the light setting program to be converted from the measurement program by using a keyword (step S260). Next, the light conversion sub-module 173 calculates the compensation light value based on the difference between the measurement machine using the measurement program and the light value of the measurement machine to be used (step S262). Finally, the light conversion sub-module 173 converts the searched light setting program into the light setting target program in combination with the calculated compensation light value (step S264).
參閱圖7所示,係步驟S28的實施流程圖。首先,座標系 轉換子模組174透過關鍵字從該量測程式中搜索出需轉換的座標系設置程式,所述關鍵字包括補正面程式的關鍵字、旋轉座標軸程式的關鍵字、平移座標軸程式的關鍵字、座標軸歸零程式的關鍵字及座標系調用程式的關鍵字(步驟S280)。接著,在搜索出的座標軸設置程式中包含補正面程式時,座標系轉換子模組174將搜索出的座標系設置程式中的補正面程式轉換為補正面目標程式(步驟S282)。接著,在搜索出的座標軸設置程式中包含旋轉座標軸程式時,座標系轉換子模組174將搜索出的座標系設置程式中的旋轉座標軸程式轉換為旋轉座標軸目標程式(步驟S284)。接著,在搜索出的座標軸設置程式中包含平移座標軸程式時,座標系轉換子模組174將搜索出的座標系設置程式中的平移座標軸程式轉換為平移座標軸目標程式(步驟S286)。接著,在搜索出的座標軸設置程式中包含座標軸歸零程式時,座標系轉換子模組174將搜索出的座標系設置程式中的座標軸歸零程式轉換為座標軸歸零目標程式(步驟S288)。接著,在搜索出的座標軸設置程式中包含座標系調用程式時,座標系轉換子模組174將搜索出的座標系設置程式中的座標系調用程式轉換為座標系調用目標程式(步驟S290)。 Referring to FIG. 7, the flowchart of the implementation of step S28 is shown. First, the coordinate system The conversion sub-module 174 searches for the coordinate system setting program to be converted from the measurement program by using a keyword, and the keyword includes a keyword for complementing the front program, a keyword for rotating the coordinate axis program, a keyword for translating the coordinate axis program, The keyword and coordinate of the coordinate axis zeroing program are keywords of the calling program (step S280). Next, when the searched coordinate axis setting program includes the complementary front program, the coordinate system conversion sub-module 174 converts the complementary front-end program in the searched coordinate system setting program into the complementary front-end target program (step S282). Next, when the searched coordinate axis setting program includes the rotary coordinate axis program, the coordinate system conversion sub-module 174 converts the rotated coordinate axis program in the searched coordinate system setting program into the rotary coordinate axis target program (step S284). Next, when the searched coordinate axis setting program includes the translation coordinate axis program, the coordinate system conversion sub-module 174 converts the translation coordinate coordinate axis program in the searched coordinate system setting program into the translation coordinate axis target program (step S286). Next, when the coordinate axis setting program is included in the searched coordinate axis setting program, the coordinate system conversion sub-module 174 converts the coordinate axis zeroing program in the searched coordinate system setting program into the coordinate axis zeroing target program (step S288). Next, when the coordinate axis calling program is included in the searched coordinate axis setting program, the coordinate system converting sub-module 174 converts the coordinate system calling program in the searched coordinate system setting program into the coordinate system calling target program (step S290).
參閱圖8所示,係步驟S30的實施流程圖。首先,尺寸輸出轉換子模組175用於透過關鍵字從該量測程式中搜索出需轉換的尺寸輸出程式,所述關鍵字包括輸出特徵程式的關鍵字、輸出距離程式的關鍵字、輸出直線度程式的關鍵字、輸出圓度程式的關鍵字、輸出平行度程式的關 鍵字、輸出垂直度程式的關鍵字、輸出位置度程式的關鍵字及輸出文字資訊程式的關鍵字(步驟S300)。接著,在搜索出的尺寸輸出程式中包含輸出特徵程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出特徵程式轉換為輸出特徵目標程式(步驟S301)。接著,在搜索出的尺寸輸出程式中包含輸出距離程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出距離程式轉換為輸出距離目標程式(步驟S302)。接著,在搜索出的尺寸輸出程式中包含輸出直線度程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出直線度程式轉換為輸出直線度目標程式(步驟S303)。接著,在搜索出的尺寸輸出程式中包含輸出圓度程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出圓度程式轉換為輸出圓度目標程式(步驟S304)。接著,在搜索出的尺寸輸出程式中包含輸出平行度程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出平行度程式轉換為輸出平行度目標程式(步驟S305)。接著,在搜索出的尺寸輸出程式中包含輸出垂直度程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出垂直度程式轉換為輸出垂直度目標程式(步驟S306)。接著,在搜索出的尺寸輸出程式中包含輸出位置度程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出位置度程式轉換為輸出位置度目標程式(步驟S307)。接著,在搜索出的尺寸輸出程式中包含輸出文字資訊程式時,尺寸輸出轉換子模組175將搜索出的尺寸輸出程式中的輸出文字資訊程式轉換為輸 出文字資訊目標程式(步驟S308)。 Referring to FIG. 8, it is a flowchart of the implementation of step S30. First, the size output conversion sub-module 175 is configured to search for a size output program to be converted from the measurement program by using a keyword, where the keyword includes a keyword of the output feature program, a keyword of the output distance program, and an output line. The keyword of the program, the keyword of the output roundness program, and the output parallel program The key, the keyword of the output verticality program, the keyword of the output position program, and the keyword of the output text information program (step S300). Next, when the output size program is included in the searched size output program, the size output conversion sub-module 175 converts the output feature program in the searched size output program into an output feature target program (step S301). Next, when the output size program is included in the searched size output program, the size output conversion sub-module 175 converts the output distance program in the searched size output program into an output distance target program (step S302). Next, when the output straightness program is included in the searched size output program, the size output conversion sub-module 175 converts the output straightness program in the searched size output program into an output straightness target program (step S303). Next, when the output circularity program is included in the searched size output program, the size output conversion sub-module 175 converts the output circularity program in the searched size output program into an output circularity target program (step S304). Next, when the output parallelism program is included in the searched size output program, the size output conversion sub-module 175 converts the output parallelism program in the searched size output program into an output parallelism target program (step S305). Next, when the output size program is included in the searched size output program, the size output conversion sub-module 175 converts the output verticality program in the searched size output program into an output verticality target program (step S306). Next, when the searched size output program includes the output position degree program, the size output conversion sub-module 175 converts the output position degree program in the searched size output program into the output position degree target program (step S307). Then, when the searched size output program includes the output text information program, the size output conversion sub-module 175 converts the output text information program in the searched size output program into the input The text information target program is output (step S308).
本發明雖以較佳實施例揭露如上,然其並非用以限定本發明。任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 The present invention has been described above in terms of preferred embodiments, and is not intended to limit the invention. The scope of the present invention is defined by the scope of the appended claims, unless otherwise claimed.
10‧‧‧中央處理器 10‧‧‧Central processor
13‧‧‧通用串列匯流排 13‧‧‧Common serial bus
15‧‧‧量測程式存儲區 15‧‧‧Measure program storage area
17‧‧‧轉換模組 17‧‧‧Transition module
19‧‧‧目標程式存儲區 19‧‧‧ Target program storage area
170‧‧‧讀取子模組 170‧‧‧Read submodule
171‧‧‧量測元素轉換子模組 171‧‧‧Measurement element conversion submodule
172‧‧‧創建元素轉換子模組 172‧‧‧Create element conversion submodule
173‧‧‧燈光轉換子模組 173‧‧‧Light Conversion Submodule
174‧‧‧座標系轉換子模組 174‧‧‧ coordinate system conversion sub-module
175‧‧‧尺寸輸出轉換子模組 175‧‧‧ size output conversion sub-module
176‧‧‧傳送子模組 176‧‧‧Transfer submodule
圖1係本發明量測程式轉換系統較佳實施方式的硬體架構圖。 1 is a hardware architecture diagram of a preferred embodiment of a metrology program conversion system of the present invention.
圖2係圖1中轉換模組的子功能模組圖。 2 is a sub-function module diagram of the conversion module of FIG.
圖3係本發明量測程式轉換方法較佳實施方式的具體實施流程圖。 FIG. 3 is a specific implementation flowchart of a preferred embodiment of a method for converting a measurement program according to the present invention.
圖4係圖3中轉換量測元素程式步驟的實施流程圖。 FIG. 4 is a flow chart showing the implementation of the step of converting the measurement element in FIG.
圖5係圖3中轉換創建元素程式步驟的實施流程圖。 FIG. 5 is a flow chart showing the implementation of the step of converting the element creation program in FIG.
圖6係圖3中轉換燈光設置程式步驟的實施流程圖。 Figure 6 is a flow chart showing the implementation of the steps of converting the light setting program in Figure 3.
圖7係圖3中轉換座標系設置程式步驟的實施流程圖。 Figure 7 is a flow chart showing the implementation of the steps of the conversion coordinate system setting program in Figure 3.
圖8係圖3中轉換尺寸輸出程式步驟的實施流程圖。 FIG. 8 is a flow chart showing the implementation of the conversion size output program step in FIG.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW95129531A TWI381277B (en) | 2006-08-11 | 2006-08-11 | System and method for converting a measurement program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW95129531A TWI381277B (en) | 2006-08-11 | 2006-08-11 | System and method for converting a measurement program |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200809534A TW200809534A (en) | 2008-02-16 |
TWI381277B true TWI381277B (en) | 2013-01-01 |
Family
ID=44767174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW95129531A TWI381277B (en) | 2006-08-11 | 2006-08-11 | System and method for converting a measurement program |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI381277B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0879674B1 (en) * | 1996-11-07 | 2003-04-02 | Mitutoyo Corporation | Generation of measurement program in nc machining and machining management based on the measurement program |
TW200516230A (en) * | 2003-11-11 | 2005-05-16 | Hon Hai Prec Ind Co Ltd | A system and method for measuring point-cloud |
US6965800B2 (en) * | 2001-06-29 | 2005-11-15 | National Instruments Corporation | System of measurements experts and method for generating high-performance measurements software drivers |
TW200622900A (en) * | 2004-12-30 | 2006-07-01 | Systex Corp | Program transforming system and method corresponding to different computer operation systems |
-
2006
- 2006-08-11 TW TW95129531A patent/TWI381277B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0879674B1 (en) * | 1996-11-07 | 2003-04-02 | Mitutoyo Corporation | Generation of measurement program in nc machining and machining management based on the measurement program |
US6965800B2 (en) * | 2001-06-29 | 2005-11-15 | National Instruments Corporation | System of measurements experts and method for generating high-performance measurements software drivers |
TW200516230A (en) * | 2003-11-11 | 2005-05-16 | Hon Hai Prec Ind Co Ltd | A system and method for measuring point-cloud |
TW200622900A (en) * | 2004-12-30 | 2006-07-01 | Systex Corp | Program transforming system and method corresponding to different computer operation systems |
Also Published As
Publication number | Publication date |
---|---|
TW200809534A (en) | 2008-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109163675B (en) | Method for detecting angular pendulum shaft position accuracy based on laser tracker | |
RU2013129857A (en) | LASER CONFOCAL TOUCH MEASURING SYSTEM | |
CN102721393B (en) | On-site self-calibration method for measurement system error of precise rotary table | |
CN107480356B (en) | Component design and inspection integrated method based on CATIA and laser tracker | |
CN113211445B (en) | Robot parameter calibration method, device, equipment and storage medium | |
CN109870111A (en) | Involute cylindrical gear total cumulative pitch error measurement method based on machine vision | |
CN1631614A (en) | Digit controlled machine tool real time error compensator for off centering machine tool exterior coordinate system | |
TWI381277B (en) | System and method for converting a measurement program | |
CN103759939B (en) | Large speed ratio high-accuracy speed reduction unit drive error testing experiment table and method of testing thereof | |
WO2021161530A1 (en) | Workpiece mounting method for machining apparatus, workpiece mounting support system, and workpiece mounting support program | |
CN101118487B (en) | Measurement programmed switching system and method | |
CN101082488B (en) | Image split joint method for long-distance telemetering measurement | |
JP2019101012A (en) | Device for reading measured value from analog measuring tool | |
CN101660895B (en) | Computer system and method for accurately positioning element to be measured | |
CN103487073B (en) | A kind of cylinder potentiometer general purpose type measuring apparatus | |
CN112525131B (en) | Method and system for measuring curvature of workpiece by non-contact distance sensor array | |
CN112595280B (en) | Method for measuring angled complex surface shape | |
KR20120126432A (en) | Realistic 3D Architecture Modeling Method using Survey Instrument | |
CN111780967B (en) | Turntable transmission precision optical composite detection method capable of correcting eccentric error | |
US7177460B2 (en) | Structure for sophisticated surveying instrument with coordinate board for position identification | |
CN114896839A (en) | Method, system and equipment for establishing precision machine tool assembly dimension chain under thermal action | |
Guo et al. | Geometric error modeling and decoupling identification of rotary axis of five-axis machine tool based on spatial trajectory planning | |
CN111189396A (en) | Displacement detection method of incremental absolute grating ruler based on neural network | |
Zhang et al. | A data-driven high-precision modeling method of machine tool spatial error under the influence of Abbe error | |
Li et al. | Comparative analysis of circular and linear fringe projection profilometry: from calibration to 3D reconstruction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |