TWI333612B - System and method for generating measuring programs - Google Patents

System and method for generating measuring programs Download PDF

Info

Publication number
TWI333612B
TWI333612B TW94139803A TW94139803A TWI333612B TW I333612 B TWI333612 B TW I333612B TW 94139803 A TW94139803 A TW 94139803A TW 94139803 A TW94139803 A TW 94139803A TW I333612 B TWI333612 B TW I333612B
Authority
TW
Taiwan
Prior art keywords
code
measurement
error
program
document
Prior art date
Application number
TW94139803A
Other languages
Chinese (zh)
Other versions
TW200719139A (en
Inventor
Chih Kuang Chang
Li Jiang
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW94139803A priority Critical patent/TWI333612B/en
Publication of TW200719139A publication Critical patent/TW200719139A/en
Application granted granted Critical
Publication of TWI333612B publication Critical patent/TWI333612B/en

Links

Landscapes

  • Stored Programmes (AREA)

Description

尤其涉及一種量 1333612 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種程式生成系統及方法 測程式生成系統及方法。 【先前技術】 [0002] 品質是一個企業保持長久發展能力的重要因素之一,如 何保證和提尚産品品質’是企業活動中的重要内容。製 造工礙在批量生産産品前需生産出幾件樣品進行量測, 以檢驗是否存在品質問題’如工件的各種長度和形位是 否在公差規定範圍内。目前這種量測方式大多由人爲使 用量具來完成,人工作業誤差:大).、效率低、準確度難以 保證。 ' Λ ... ···;>. ,...More particularly, it relates to an amount 1333612. 6. Description of the Invention: [0001] The present invention relates to a program generation system and method test program generation system and method. [Prior Art] [0002] Quality is one of the important factors for a company to maintain its long-term development ability. How to ensure and improve product quality is an important part of corporate activities. Manufacturing workers are required to produce several samples for mass production to verify the presence of quality problems, such as whether the various lengths and shapes of the workpiece are within tolerance limits. At present, most of the measurement methods are done by artificial means, the manual operation error is large, the efficiency is low, and the accuracy is difficult to guarantee. ' Λ ... ···;>. ,...

':* tJ ..y〆,:...J 一. 4-·-.. 、 [0003] 隨著電腦技術的發展及應用,量測技術不再局限於人工 的操作,電腦在工件檢驗活動中被大量的引入,提高了 檢驗準確性。在對樣品進行量測時,人工將工件放入量 測機台,透過電腦控制進行量測:但是在量測同樣的工 件時仍然需要進行重複的操作,操作流程比較複雜操 作效率仍不南。 【發明内容】 闺料以上内容’有,提供_種量難式生成系統及方 法,其可自動編輯程式瑪,完成相同工件的量測,節省 量測時間,提尚量測效率和量測品質。 [0005] -種量測程式生成系統,係安裝於一電腦,該電腦内另 安裝有-量測軟體’用於對與該電腦相連的影像量測機 台上的工件進打量測’該系統包括:一程式碼編輯模組 094139803 表單編號A0101 第3頁/共17頁 0993262845-0 1333612 [0006] [0007] [0008] 094139803 0993262845-0 099年 〇222日 ,用於記錄手動教導影像4測機“私件的相關量測 訊息,並根據該量測訊息編輯所述影像量測機台量測工 件的程式碼’-判_組,用於判斷程式瑪編輯過程中 是否出現錯誤程式碼卜錯誤提_組,用於提示程式 瑀編輯過程中的出現的錯誤程式碼位置及錯誤原因;一 存儲模組’用於將程式碼存於—程式文射;—編譯模 組’用於將所_式文檔編譯成—執行文檔,該執行文 檔透過調用-基礎命令庫㈣騎量賴台量測工件。 進一步地,所述量測程式生成系統還包括—執行模组, 用於執行基礎命令庫中的基礎命令及執行文射的所有 命令’同時向#測軟體觸發料及傳輸命令。 其所述量測訊息包括影像量測.機台的位置、光源類 至燈光的亮度、運行速度、尋邊卫具對焦工具、量 測元素構建元素和座標訊息。 ,… 其可利用電腦自動編輯程式碼 1像#仃讀,料法包括㈣如Τ : _手動教導 兮量料自彳機。4/取件-次的相關4測訊息,並根據 該量·息編像制㈣ 判斷程式喝編輯過栽“ 件的程式碼, 訊息包括m 疋否出現錯誤程式碼,所述量測 、運行迷度、尋^機台的位置光源類型、燈光的亮度 素和座樑訊息;若程對焦工具、量測元素、構建元 ’則提示錯誤程以的 7錯_式碼 返回編輯程式碼的步驟誤的原因,修改並 錯誤程式碼,則判程式碼編輯過程中沒有出現 表單編號崎— 1333612 099年07月22日修正替换頁 [0009] [0010] [0011] [0012] [0013] [0014] 094139803 輯完成,則將程式碼存於一程式文檔;將所述程式文檔 編譯成一執行文檔。 進一步地,所述量測程式生成方法還包括步驟:若程式 碼沒有編輯完成’則返回編輯程式碼的步驟。 進一步地,所述量測程式生成方法還包括步驟:所述執 行文檔調用一基礎命令庫;執行該基礎命令庫中的基礎 命令和所述執行文棺中的所有命令。 其中,所述基礎命令庫用於存儲基礎命令,該基礎命令 包括移動命令、速度命令、加速度命令和結束命令。 相較於習知技術,所述之量观程式生成·系統及方法,透 過手動編寫或記錄手動教導‘影像量測機台量測工件一次 的相關量測訊息生成程式並編譯程序,自動完成後 續相同工件的量測,節省量測時間,提高了量測效率和 量測品質。 【實施方式】 本發明以影像量測機台量測一種X件的程式生成爲例。':* tJ ..y〆,:...J I. 4-·-.. , [0003] With the development and application of computer technology, measurement technology is no longer limited to manual operation, computer inspection of workpieces A large number of activities were introduced to improve the accuracy of the test. When measuring the sample, the workpiece is manually placed on the measuring machine and measured by computer control: however, repeated operations are still required when measuring the same workpiece, and the operation process is complicated and the operating efficiency is still not south. [Summary of the Invention] The above content is available, and provides a system and method for generating difficult quantities, which can automatically edit the program, complete the measurement of the same workpiece, save measurement time, and improve measurement efficiency and measurement quality. . [0005] A measuring program generating system is installed in a computer, and the computer is further equipped with a measuring software for measuring the workpiece on the image measuring machine connected to the computer. The system includes: a code editing module 094139803 Form No. A0101 Page 3 / 17 pages 0993262845-0 1333612 [0006] [0007] [0008] 094139803 0993262845-0 099 〇 222 days for recording manual teaching images 4 The measuring machine “measures the relevant information of the private component, and edits the code of the measuring workpiece of the image measuring machine according to the measuring information”--judging group, and is used to determine whether an error code is generated during the editing process of the program卜Error mention _ group, used to prompt the error code position and error reason of the program during the editing process; a storage module 'used to store the code in the program - the compiler module' is used The document is compiled into an execution document, and the execution document is measured by calling the base command library (4). Further, the measurement program generation system further includes an execution module for executing the basic command. Base in the library All commands of the basic command and the execution of the genre 'at the same time trigger the material and transmit the command to the software. The measurement information includes the image measurement. The position of the machine, the brightness of the light source to the light, the running speed, the edge guard. Focus tool, measurement element construction element and coordinate message. ,... It can use computer to automatically edit code 1 like #仃读,料法 includes (4)如Τ : _Manually teach 兮 料 彳 自 自. 4 / Pickup - The relevant 4 test information, and according to the quantity and interest video system (4), the program program edits the code of the edited piece, the message includes m, the error code appears, the measurement, the operation, and the search The position light source type of the machine, the brightness of the light and the beam information; if the focus tool, the measurement element, the construction element', the 7 error of the error process is returned. The reason for returning the edit code is incorrect. And the error code, the form number is not found in the code editing process - 1333612 July 22, 2008 correction replacement page [0009] [0011] [0012] [0013] [0014] 094139803 Completed, Store the code in one pass a document; compile the program document into an executable document. Further, the measurement program generation method further includes the step of returning the edit code if the code is not edited. Further, the measurement program generation method further includes the step of: the execution document invoking a basic command library; executing the basic command in the basic command library and all the commands in the execution document. The basic command library is used to store basic commands including a move command, a speed command, an acceleration command, and an end command. Compared with the prior art, the above-mentioned quantitative program generation system and method automatically completes the follow-up by manually writing or recording a manual measurement teaching program for measuring the workpiece once by the 'image measuring machine' and measuring the program. Measurement of the same workpiece saves measurement time and improves measurement efficiency and measurement quality. [Embodiment] The present invention takes an example of measuring a program of an X piece by an image measuring machine.

如第一圖所示,係本發明量測程式生成系統較佳實施例 之硬體架構圖。本發明的硬體架構主要包括一電腦1及一 影像量測機台2。電腦1與影像量測機台2連接,其可以是 IBM架構的個人電腦(IBM Pers〇nal computer,IBM PC),也可以是Apple公司的Mac p(;,還可以是任意其他 適用的電腦。 電腦1内安裝一量測程式生成系統1〇及一量測軟體12,所 述量測程式生成系統10利用一VB (Visual Basic)編 表單編號A0101 第5頁/共Π頁 〇993 [0015] 1333612 __ 099年07月22日梭正替換頁 譯器編寫程式碼。當程式碼編輯過程中出現錯誤程式碼 時,該量測程式生成系統10提示錯誤程式碼位置及原因 。當程式編輯人員定義變數時,該量測程式生成系統10 會自動彈出該變數常見的類型、用戶自定義的類型、及 該變數所涉及到的過程和屬性。該量測程式生成系統10 還帶有自身的量測函數,例如,對影像量測機台1的電機 的控制、燈源的控制及與該影像量測機台1相關的訊息等 。程式碼編輯時的關鍵字和變數有顏色區分,且程式碼 和關鍵字自動設定了格式。所述量測軟體12用於量測工 件3。 [0016] 其中,所述量測程式生成系綠10:還用於£錄影像量測機 台2利用量測軟體1 2量測工件3時的相關量測訊息,並根 據所記錄的相關訊息編輯程式碼,該程式碼用於後續相 同工件的量測,具體而言,操作者只要手動教導影像量 測機台2量測工件3—次,後續相同工件的量測將透過量 測程式生成系統10編輯的程式碼自動完成。其中,所述 之量測訊息包括影像量測機台2的位置、光源類型、燈光 的亮度、運行速度、量測過程中的尋邊工具、對焦工具 、量測元素、構建元素、座標等訊息。 [0017] 如第二圖所示,係本發明量測程式生成系統10之功能模 組圖。量測程式生成系統10包括二程式碼編輯模組100、 一判斷模組102、一錯誤提示模組104、一存儲模組106 、一編譯模組108及一執行模組110。 [0018] 程式碼編輯模組100用於程式編輯人員利用一VB編譯器手 動編寫程式碼,該程式碼支援所有VB語法。其中,該程 094139803 表單編號A0101 第6頁/共17頁 0993262845-0 [0019] [0020] [0021] [0022] [0023] 094139803 099年〇7F22日梭正雜頁Ί 式碼編輯模組100還可以用於記錄手動教導影像量測機台 2里剛工件3時的相關量測訊息,並將該量測訊息編輯成 相應的程式碼,所述量測訊息包括影像量測機台2的位置 光源類型、燈光的亮度、運行速度及操作者在量測過 程中的相關操作訊息,該相關操作訊息包括尋邊工具、 對焦工具 '量測元素、構建元素和座標等訊息。 1斷模組1 〇 2用於判斷程式碼編輯過程中是否出現錯誤程 '馬所述程式碼錯誤包括:程式碼的資料類型錯誤、 程式碼的語法錯誤及程式碼的運行階段錯誤。當程式碼 編輯過程中出現錯誤程式碼時,錯誤提示模組1〇4提示該 = ^ 因。“組1〇2還用於 判斷程式碼編輯模組1〇〇是蛋完成程式碼的碱輯。 存儲模組106用於將程式碼編輯模組100所編輯的程式碼 存儲於一程式文檔。 編譯模組108用於將所述之程式文播編譯成一執行文檔, 該執行文檔透過調用一基礎命令庫中的基礎命令可以控 制影像量測機台2量測後續相同的工件3,所述基礎命令 包括移動命令、速度命令、加速度命令和結束命令。 執行模組110用於執行基礎命令庫中的基礎命令和執行 文 檔中的所有命令,同時向量測軟體12觸發事件及傳輪命 令。所述事件用於控制量測軟體丨2和影像量測機台2的運 行及其運行狀態監視。 如第三圖所示,係本發明量測程式生成系統較佳實施例 之訊號流向.圖。本實施例以記錄量測訊息, 自動產生程 表單編號Α0101 第7頁/共17頁 0993262845-0 1333612 [0024] [0025] [0026] [0027] [0028] [099年 07月 22 日 式碼爲例進行朗。首先,程式碼編輯模=〇〇記雜^·〜 者手動教導影像量測機台2量測工件3過程中的相關量測 訊息,並利用VB編譯器編輯程式碼。 接著’判斷模組1〇2判斷程式碼蝙輯過程中是否出現錯誤 程式瑪,所述錯誤程式碼包括:f料難錯誤、運行階 段錯誤及語法錯誤等。若程式碼編輯過程巾出現錯誤程 式碼’則錯誤提示模組1〇4提示出現錯誤的位置及錯誤原 因’等待修改。 待程式碼編輯完錢,存賴纟Μ{)6純式碼編輯模組 刚所編輯的程式碼存於所寧释式文稽,編譯模組⑽將 該程式文檔編譯成一執行文每。所述行i檔透過調用 基礎命令庫中的基礎命令以Μ制餐氣量測機台2量測後續 相同工件3,其中,量測軟體12用於影像量測機台2量測 工件3 〇 如第四圖所示,係本發明量測程式生成方法較佳實施例 之作業流程圖。操作者手動教導影像量測機台2利用量測 . i - 軟體12量測工件3—次(步驟S400)。 程式碼編輯模組1〇〇記錄量測過程中的量測訊息,並根據 該量测訊息編輯相應的程式碼,所述量測訊息包括影像 量測機台2的位置、光源類型、燈光的亮度、運行速度及 操作者在量測過程中的相關操作訊息,該相關操作訊息 包括尋邊工具、對焦工具、量測元素、構建元素和座標 等訊息(步驟S401 )。 判斷模組102判斷程式碼編輯模組1〇〇,編輯程式碼時是否 094139803 表單編號A0101 第8頁/共17頁 0993262845-0 [0029] [0030] [0031] [0032] [0033] [0034] 094139803 見錯誤程式碼(步螺S4〇2)。 程式码編輯過程中有錯誤 組1〇4提示鈣誤游, Λ馬出現’則錯誤提示模 修改並碼的位置及出現錯誤的原因,然後, 返回4S4〇i (步驟S4〇3)。 右程式碼編輯過程中没有出 2判斷程式碼編輯模組100是;完程二 驟S404)。 式As shown in the first figure, it is a hardware architecture diagram of a preferred embodiment of the measurement program generation system of the present invention. The hardware architecture of the present invention mainly includes a computer 1 and an image measuring machine 2. The computer 1 is connected to the image measuring machine 2, which may be an IBM-based personal computer (IBM PC) or an Apple Mac's Mac p (;, and may be any other suitable computer. A measurement program generation system 1 and a measurement software 12 are installed in the computer 1, and the measurement program generation system 10 uses a VB (Visual Basic) to edit the form number A0101. Page 5 / Total Page 〇 993 [0015] 1333612 __ July 22, 2008, Shuttle is replacing the pager to write the code. When the error code appears during the code editing process, the measurement program generation system 10 prompts the location and cause of the error code. When the program editor defines In the case of a variable, the measurement program generation system 10 automatically pops up the types common to the variable, the user-defined type, and the processes and attributes involved in the variable. The measurement program generation system 10 also has its own measurements. The function, for example, control of the motor of the image measuring machine 1, control of the light source, and information related to the image measuring machine 1. The keywords and variables in the code editing are color-coded, and the program The code and the keyword are automatically formatted. The measurement software 12 is used to measure the workpiece 3. [0016] wherein the measurement program generates a green color 10: also used for the recording of the image measuring machine 2 The software 1 2 measures the related measurement information when the workpiece 3 is measured, and edits the code according to the recorded related information, and the code is used for subsequent measurement of the same workpiece. Specifically, the operator only needs to manually teach the image measurement. The machine 2 measures the workpiece 3 times, and the subsequent measurement of the same workpiece is automatically completed by the code edited by the measurement program generation system 10. The measurement information includes the position of the image measuring machine 2 and the light source. Type, brightness of the light, running speed, edge finding tool during measurement, focus tool, measurement element, construction element, coordinates, etc. [0017] As shown in the second figure, the measurement program generation system of the present invention 10 is a functional module diagram. The measurement program generation system 10 includes a second code editing module 100, a determination module 102, an error prompt module 104, a storage module 106, a compilation module 108, and an execution module. Group 110. [0018] The code editing module 100 is used by a program editor to manually write a code using a VB compiler, and the code supports all VB syntax. Among them, the program 094139803 form number A0101 page 6 / 17 pages 0993262845-0 [0019] [ [0022] [0022] [0023] [0023] 094139803 099 〇 7F22 日 Shuttle 杂 page Ί code editing module 100 can also be used to record the relevant measurement when manually teaching the image measuring machine 2 just after the workpiece 3 The message is edited into a corresponding code, and the measurement information includes the position light source type of the image measuring machine 2, the brightness of the light, the running speed, and the related operation information of the operator during the measuring process. The related operation information includes a edge finding tool, a focus tool 'measurement element, a construction element, and a coordinate. 1 break module 1 〇 2 is used to judge whether there is an error in the code editing process. 'The code error of the horse includes: the data type of the code is wrong, the syntax of the code is wrong, and the running phase of the code is wrong. When an error code appears during code editing, the error prompt module 1〇4 prompts the = ^ cause. The group module 2 is also used to determine that the code editing module 1 is an alkali program of the egg completion code. The storage module 106 is configured to store the code edited by the code editing module 100 in a program file. The compiling module 108 is configured to compile the program text into an execution document, and the execution document can control the image measuring machine 2 to measure subsequent identical workpieces 3 by calling a basic command in a basic command library. The commands include a move command, a speed command, an acceleration command, and an end command. The execution module 110 is configured to execute the basic commands in the basic command library and execute all the commands in the document, and the vector test software 12 triggers the event and the transfer command. The events are used to control the operation of the measurement software 丨2 and the image measuring machine 2 and their operational status monitoring. As shown in the third figure, the signal flow direction of the preferred embodiment of the measurement program generation system of the present invention is shown. In this embodiment, the measurement information is recorded, and the automatic form number is generated. 1010101. Page 7/17 pages 0993262845-0 1333612 [0024] [0026] [0027] [0028] [0799 July 22 Japanese code For example First, the code editing mode = 〇〇 杂 ^ ^ ~ Manually teach the image measuring machine 2 to measure the relevant measurement information in the workpiece 3, and use the VB compiler to edit the code. Then 'judgment The module 1〇2 determines whether an error program is generated during the code bat process, and the error code includes: f difficult error, running phase error, syntax error, etc. If the code editing process towel has an error code ' The error prompt module 1〇4 prompts the location of the error and the cause of the error 'waiting for modification. Waiting for the code to edit the money, save the 纟Μ 纟Μ{) 6 pure code editing module just edited the code stored in the interpretation The programming module (10) compiles the program document into an executable file. The line i file is used to measure the subsequent workpiece 3 by pressing the basic command in the basic command library to control the meal measuring machine 2, wherein The measuring software 12 is used for the image measuring machine 2 to measure the workpiece 3, as shown in the fourth figure, which is a working flow chart of a preferred embodiment of the measuring program generating method of the present invention. The operator manually teaches the image measuring machine Taiwan 2 utilization measurement. i - The software 12 measures the workpiece 3 times (step S400). The code editing module 1 records the measurement information in the measurement process, and edits the corresponding code according to the measurement information, the measurement information includes The position of the image measuring machine 2, the type of the light source, the brightness of the light, the running speed and the related operation information of the operator during the measurement process, the related operation information includes the edge finding tool, the focusing tool, the measuring element, the building element and A message such as a coordinate (step S401). The determination module 102 determines the code editing module 1〇〇, whether the code is edited 094139803, the form number A0101, the eighth page, the total number of pages, the page number 0993262845-0 [0029] [0013] [0033] 094139803 See error code (step S4〇2). There is an error in the code editing process. Group 1〇4 prompts calcium to swim, Hummer appears', then the error prompts the module to modify the position of the code and the cause of the error, and then returns 4S4〇i (step S4〇3). In the right code editing process, there is no 2 judgment code editing module 100; the second step S404). formula

’則判斷模組 碼的編輯(步 Γ〇=碼編輯模組1〇0已完成程式碼編輯,則存儲模組 、4程式碼麵—喊讀巾,編㈣㈣㈣該程 文檔編譯成-執行文檔(兔驟S405')。 :執行文播透過調用所述基“,的基礎命令可以 二制影像量測機台2量測後續相同的工件3,所述基礎命 令包括移動命令、速度命令、加速度命令和結束命令( 步驟S406 )。 執行模組110執行基礎命令庫中的基礎會令和執行文檔中 的所有命令,同時向量測軟趙12觸發事件及傳輸命令( 步驟S407)。 在步驟S401中,所述程式碼的編輯也可以由程式編輯人 員手動完成。本實施例所述之量測程式生成系統1〇支援 所有VB的語法,也帶有自身的量測函數,例如,對影像 量測機台1的電機的控制、燈源的控制及與該影像量測機 台1相關的訊息等。當程式碼編輯過程中出現錯誤程式碼 時,該量測程式生成系統10提示錯誤程式碼位置及原因 。其中,當程式編輯人員定義變數時,該量測程式生成 表單編號Α0101 第9頁/共Π頁 0993262845-0 1333612 099年07月22日修正替換頁 系統10會自動彈出該變數常見的類型、用戶自定義的類 型、及該變數所涉及到的過程和屬性。程式碼編輯時的 關鍵字和變數有顏色區分,且程式碼和關鍵字自動設定 了格式。 [0035] 在步驟S404中,若程式碼編輯模組100沒有完成程式碼編 輯,則返回步驟S401重新編輯程式碼。 [0036] 在步驟S407中,所述事件用於控制量測軟體12和影像量 測機台2的運行及其運行狀態監視。 [0037] 以上所述僅為本發明之較佳實施例而已,且已達廣泛之 使用功效,凡其他未脫離本發明所揭.示之精神下所完成 之均等變化或修飾,均應包含在下述之申請專利範圍内 * — ·' -:*;· -· 〇 【圖式簡單說明】 - [0038] 第一圖係本發明量測程式生成系統較佳實施例之硬體架 構圖。 [0039] 第二圖係本發明量測程式生成系統之功能模組圖。 [0040] 第三圖係本發明量測程式生成系統較佳實施例之訊號流 向圖。 [0041] 第四圖係本發明量測程式生成方法較佳實施例之作業流 程圖。 【主要元件符號說明】 [0042] 電腦 1 [0043] 影像量測機台2 094139803 表單編號A0101 第10頁/共17頁 0993262845-0 1333612 099年07月22日按正替換頁 [0044] [0045] [0046] [0047] [0048] [0049] [0050] [0051] [0052] 工件3 量測程式生成系統10 量測軟體12 程式碼編輯模組100 判斷模組102 錯誤提示模組104 存儲模組106 編譯模組108 執行模組110 094139803 表單編號A0101 第11頁/共17頁 0993262845-0'When judging the editing of the module code (step = code editing module 1 〇 0 has completed the code editing, then the storage module, 4 code surface - shouting towel, edit (4) (four) (four) the process document compiled into - execute the document (Rabbit S405'): Performing the text broadcast by calling the basic command of the base ", the second image measuring machine 2 can measure the subsequent identical workpiece 3, and the basic commands include a movement command, a speed command, and an acceleration. The command and the end command (step S406). The execution module 110 executes the basic command in the basic command library and executes all the commands in the document, and simultaneously detects the event and the transfer command (step S407). The editing of the code may also be manually performed by a program editor. The measurement program generation system 1 described in this embodiment supports all VB syntaxes, and also has its own measurement function, for example, the amount of images. The control of the motor of the measuring machine 1, the control of the light source, the information related to the image measuring machine 1, etc. When the error code occurs during the editing of the code, the measuring program generating system 10 prompts the error course. Code position and reason. When the program editor defines the variable, the measurement program generates the form number Α0101. Page 9/Total page 0993262845-0 1333612 The correction replacement page system 10 will automatically pop up the system. The common types of variables, user-defined types, and the procedures and attributes involved in the variable. The keywords and variables in the code editing are color-coded, and the code and keywords are automatically formatted. [0035] In step S404, if the code editing module 100 has not completed the code editing, the process returns to step S401 to re-edit the code. [0036] In step S407, the event is used to control the measurement software 12 and the image measuring machine. The operation of 2 and its operational status monitoring. [0037] The above description is only a preferred embodiment of the present invention, and has been used in a wide range of functions, and others have been completed without departing from the spirit of the invention. Equivalent changes or modifications shall be included in the scope of the following patents. * - ' -: *; · -· 〇 [Simple Description] - [0038] The first figure is the measurement program generation system of the present invention. [0039] The second figure is a functional module diagram of the measurement program generation system of the present invention. [0040] The third figure is a preferred embodiment of the measurement program generation system of the present invention. [0041] The fourth figure is a flow chart of the preferred embodiment of the method for generating a measurement program of the present invention. [Description of main component symbols] [0042] Computer 1 [0043] Image measuring machine 2 094139803 Form number A0101 Page 10 of 17 0993262845-0 1333612 July 22, 2009, press the positive replacement page [0044] [0046] [0047] [0048] [0050] [0052] [0052] 3 Measurement program generation system 10 Measurement software 12 Code editing module 100 Judgment module 102 Error prompt module 104 Storage module 106 Compilation module 108 Execution module 110 094139803 Form number A0101 Page 11 / Total 17 page 0993262845 -0

Claims (1)

1333612 __ 099年07月22日核正替換頁 七、申請專利範圍: 1 . 一種量測程式生成系統,係安裝於一電腦,該電腦内另安 裝有一量測軟體,用於對與該電腦相連的影像量測機台上 的工件進行量測,該量測程式生成系統包括: 一程式碼編輯模組,用於記錄手動教導影像量測機台量測 工件的相關量測訊息,並根據該量測訊息編輯所述影像量 測機台量測工件的程式碼,所述量測訊息包括影像量測機 台的位置、光源類型、燈光的亮度、運行速度、尋邊工具 、對焦工具、量測元素、構建元素和座標訊息; 一判斷模組,用於判斷程式碼編輯過程中是否出現錯誤程 式碼; ", 一錯誤提示模組,用於提示程式碍編輯過程中出現的錯誤 程式碼位置及錯誤原因; 一存儲模組,用於將程式碼存於一程式文檔中; 一編譯模組,用於將所述程式文檔編譯成一執行文檔,該 執行文檔透過調用一基礎命令庫控制影像量測機台量測工 件。 2 .如申請專利範圍第1項所述之量測程式生成系統,還包括 一執行模組,用於執行基礎命令庫中的基礎命令及執行文 檔中的所有命令,同時向量測軟體觸發事件及傳輸命令。 3 .如申請專利範圍第2項所述之量測程式生成系統,其中所 述之事件用於控制量測軟體和影像量測機台的運行及監視 其運行狀態。 4 . 一種量測程式生成方法,其可利用電腦自動編輯程式碼, 094139803 表單編號A0101 第12頁/共17頁 0993262845-0 1333612 099年07月22日修正替換頁 生成執行文檔,該方法包括如下步驟: 記錄手動教導一影像量測機台量測工件一次的相關量測訊 息,並根據該量測訊息編輯所述影像量測機台量測工件的 程式碼,所述量測訊息包括影像量測機台的位置、光源類 型 '燈光的亮度、運行速度、尋邊工具、對焦工具、量測 元素、構建元素和座標訊息; 判斷程式碼編輯過程中是否出現錯誤程式碼; 若程式碼編輯過程中出現了錯誤程式碼,則提示錯誤程式 碼的位置及出現錯誤的原因,並返回編輯程式碼的步驟; 若程式碼編輯過程中沒有出現錯誤程式碼,則判斷是否完 成編輯程式碼; ’… 若程式碼編輯完成,則將該程式碼存於一程式文檔; 將所述程式文檔編譯成一執行文檔。 5 .如申請專利範圍第4項所述之量測程式生成方法,還包括 步驟: 若程式碼沒有編輯完成,則返回編輯程式碼的步驟。 6 .如申請專利範圍第4項所述之量測程式生成方法,還包括 步驟: 所述執行文檔調用一基礎命令庫; 執行該基礎命令庫中的基礎命令和所述執行文檔中的所有 命令。 7.如申請專利範圍第6項所述之量測程式生成方法,其中所 述之基礎命令庫用於存儲基礎命令,該基礎命令包括移動 命令、速度命令、加速度命令和結束命令。 094139803 表單編號A0101 第13頁/共17頁 0993262845-01333612 __ July 22, 2008, the nuclear replacement page VII, the scope of application for patents: 1. A measurement program generation system, installed in a computer, the computer is also installed with a measuring software for connecting to the computer Measuring the workpiece on the image measuring machine, the measuring program generating system comprises: a code editing module, configured to record a related measuring information of the manual measuring image measuring machine, and according to the The measurement information edits the code of the image measuring machine to measure the workpiece, and the measurement information includes the position of the image measuring machine, the type of the light source, the brightness of the light, the running speed, the edge finding tool, the focusing tool, and the quantity. Measuring elements, building elements, and coordinate information; a judging module for judging whether an error code is generated during code editing; ", an error prompting module for prompting an error code that appears in the editing process Position and error reason; a storage module for storing the code in a program document; a compiling module for compiling the program document into an executable file The implementation of document control image measuring machine to measure the workpiece through a call to the basic command library. 2. The measurement program generation system according to claim 1, further comprising an execution module for executing basic commands in the basic command library and executing all commands in the document, and the vector measurement software trigger event And transfer commands. 3. The measurement program generation system according to claim 2, wherein the event is used to control the operation of the measurement software and the image measurement machine and monitor the operation state thereof. 4. A measurement program generation method, which can automatically edit a program code by using a computer, 094139803 Form No. A0101, page 12/17 pages, 0993262845-0 1333612, July 22, 2008, the replacement page generation execution document, the method includes the following Step: recording a related measurement information that manually teaches an image measuring machine to measure the workpiece once, and edits a code of the workpiece measured by the image measuring machine according to the measurement information, where the measurement information includes the image quantity The position of the measuring machine, the type of the light source, the brightness of the light, the running speed, the edge finding tool, the focusing tool, the measuring element, the building element and the coordinate information; whether the error code is generated during the code editing process; if the code editing process If the error code appears in the error code, it will prompt the location of the error code and the cause of the error, and return to the step of editing the code; if there is no error code in the code editing process, it is judged whether to complete the editing code; '... If the code is edited, the code is stored in a program document; To execute a document. 5. The method for generating a measurement program according to claim 4, further comprising the step of: returning the edit code if the code is not edited. 6. The method for generating a measurement program according to claim 4, further comprising the steps of: the execution document invoking a basic command library; executing the basic command in the basic command library and all commands in the execution document . 7. The method of generating a measurement program according to claim 6, wherein the basic command library is used to store a basic command including a move command, a speed command, an acceleration command, and an end command. 094139803 Form No. A0101 Page 13 of 17 0993262845-0
TW94139803A 2005-11-11 2005-11-11 System and method for generating measuring programs TWI333612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW94139803A TWI333612B (en) 2005-11-11 2005-11-11 System and method for generating measuring programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW94139803A TWI333612B (en) 2005-11-11 2005-11-11 System and method for generating measuring programs

Publications (2)

Publication Number Publication Date
TW200719139A TW200719139A (en) 2007-05-16
TWI333612B true TWI333612B (en) 2010-11-21

Family

ID=47222462

Family Applications (1)

Application Number Title Priority Date Filing Date
TW94139803A TWI333612B (en) 2005-11-11 2005-11-11 System and method for generating measuring programs

Country Status (1)

Country Link
TW (1) TWI333612B (en)

Also Published As

Publication number Publication date
TW200719139A (en) 2007-05-16

Similar Documents

Publication Publication Date Title
US20120079447A1 (en) Software build analysis
JP2013104877A (en) Machine vision system program edition environment including a real time context generation function
US20030052917A1 (en) Data structures for use with environment based data driven automated test engine for GUI applications
CN101414278B (en) Method for debugging binary application program based on dynamic inverse compiling technique
JP6418780B2 (en) System, GUI, and method for editing step and repeat motion commands in machine vision inspection system
US20030055836A1 (en) Methods for generating data structures for use with environment based data driven automated test engine for GUI applications
JP2006012193A (en) Relocatable instrumentation tag for testing and debugging of computer program
US20080313208A1 (en) Apparatus, system, and method for automated context-sensitive message organization
CN112256581B (en) Log playback test method and device for high-simulation securities trade trading system
US20090172647A1 (en) System and method for model driven unit testing environment
CN112799718A (en) Enumerated document generation method and device, electronic equipment and storage medium
CN113094252B (en) Test case generation method and device, computer equipment and storage medium
CN114897296A (en) RPA flow labeling method, execution process playback method and storage medium
US20110029953A1 (en) System and Method for Scalable Handling of Debug Information
CN100468327C (en) System and method to generate measuring program
CN111858358A (en) Binary code-oriented guiding type fuzzy test method
US20090217259A1 (en) Building Operating System Images Based on Applications
TWI333612B (en) System and method for generating measuring programs
CN102446134A (en) Automatic positioning method and device of compiler error
US10618169B2 (en) Robot
US7440867B2 (en) System and method for measuring workpieces
JP2007102380A (en) Debugging method for control component having variability and debugging support device
JPH02275539A (en) Debugging system
JPH08314752A (en) Development supporting device for object-oriented system
CN1591254A (en) Inspecting device and programming tool

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees