CN101898317B - Virtual numerical control machine on-line detection system and method - Google Patents

Virtual numerical control machine on-line detection system and method Download PDF

Info

Publication number
CN101898317B
CN101898317B CN2010101972553A CN201010197255A CN101898317B CN 101898317 B CN101898317 B CN 101898317B CN 2010101972553 A CN2010101972553 A CN 2010101972553A CN 201010197255 A CN201010197255 A CN 201010197255A CN 101898317 B CN101898317 B CN 101898317B
Authority
CN
China
Prior art keywords
module
measurement
macroprogram
error compensation
main
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN2010101972553A
Other languages
Chinese (zh)
Other versions
CN101898317A (en
Inventor
柏林
刘小峰
秦树人
尹爱军
周传德
黄光亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University
Original Assignee
Chongqing University
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 Chongqing University filed Critical Chongqing University
Priority to CN2010101972553A priority Critical patent/CN101898317B/en
Publication of CN101898317A publication Critical patent/CN101898317A/en
Application granted granted Critical
Publication of CN101898317B publication Critical patent/CN101898317B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a virtual numerical control machine on-line detection system. The virtual numerical control machine on-line detection system comprises a computer, a measuring head arranged on a knife handle, a receiver matched with the measuring head and a numerical control machine including a numerical control system, wherein the computer is provided with a virtual numerical control machine on-line detector; the virtual numerical control machine on-line detector is provided with a graphics interaction and parameter arrangement module, a module for measuring a main macro program generation, a module for measuring a sub macro program generation, a communication module, an error compensation and analysis module, and a measuring process simulation module; the graphics interaction and parameter arrangement module is guided in a CAD picture of a workpiece to be measured from the computer, according to the CAD picture, figure information of the workpiece to be measured is obtained, and the picture of the workpiece to be measured is redrawn on a screen of the virtual numerical control machine on-line detector to appoint a measuring reference point of the workpiece to be measured and a location point when the measurement begins on the picture of the workpiece to be measure. The invention reduces the operation time of the machine and other links, and greatly improves the detection efficiency.

Description

A kind of virtual numerical control machine on-line detection system and method
Technical field
The present invention relates to Digit Control Machine Tool, be specifically related to a kind of virtual numerical control machine on-line detection system and method that adopts the virtual technology condition to realize.
Background technology
Traditional measurement means is because of existing secondary clamping error, and certainty of measurement and efficient all can not get guaranteeing, the online survey of Digit Control Machine Tool detects in the application of enterprise more and more widely.General numerical control machine on-line detection system just has been equipped with the gauge head system; Measure macroprogram need be on the machine operation panel hand-coding; And can only directly obtain the testing result of simple geometry size, also need calculate through other means the detection of morpheme error, it is more loaded down with trivial details to operate; Seriously reduce the efficient of online detection, do not given play to the advantage of online detection.
Summary of the invention
One of technical problem to be solved by this invention provides a kind of virtual numerical control machine on-line detection system.
Two of technical problem to be solved by this invention provides a kind of virtual numerical control machine online test method.
According to first kind of technical scheme of the present invention, a kind of virtual numerical control machine on-line detection system, comprise computer, be installed in gauge head on the handle of a knife, with supporting receiver, the Digit Control Machine Tool of gauge head, Digit Control Machine Tool comprises digital control system; Wherein: be provided with virtual numerical control lathe on-line detector in the computer;
Said virtual numerical control lathe on-line detector obtains the graphical information of measured workpiece from computer; And human-computer interaction interface is provided; The test parameter that virtual numerical control lathe on-line detector is based on the measurement project selected in the human-computer interaction interface and setting generates automatically measures main macroprogram, measures main macroprogram and uploads to digital control system through computer; Simultaneously; Virtual numerical control lathe on-line detector receives the detection data of digital control system output through computer; Carry out error compensation and analysis, calculating to detecting error compensation value that data are provided with in human-computer interaction interface based on the user; Measurement project to overproof is pointed out, and with result of calculation show, preservation and playback;
The main macroprogram of measurement that Digit Control Machine Tool generates according to virtual numerical control lathe on-line detector drives gauge head and moves, and trigger gauge head and workpiece touching back, and send triggering signal to receiver, and receiver converts triggering signal the lathe signal to and sends to digital control system; Detection data record when digital control system triggers gauge head also outputs to the virtual numerical control machine on-line detector through computer; Be characterized in:
Being provided with graphical interaction and parameter in the said virtual numerical control lathe on-line detector is provided with module, measures main macroprogram generation module, measures sub-macrolibrary module, communication module, error compensation and analysis module, measuring process emulation module;
Graphical interaction and parameter are provided with module: graphical interaction and parameter are provided with module imports measured workpiece from computer CAD figure; Obtain the graphical information of measured workpiece based on CAD figure; Measured workpiece figure is redrawn on the screen of virtual numerical control lathe on-line detector; Be used on measured workpiece figure specifying the datum mark and the anchor point of measuring beginning of measured workpiece, be provided with in graphical interaction and parameter and be provided with measurement project choice knob, test parameter and error compensation value in the module interface is set; Measure the project choice knob and be used to select the measurement project, test parameter and error compensation value are provided with the interface and are used to be provided with test parameter and error compensation value;
Measure sub-macrolibrary module: measure to be provided with in the sub-macrolibrary module and measure sub-macroprogram, supply to measure main macroprogram generation module and call;
Measure main macroprogram generation module: measure main macroprogram generation module based on the selection of measuring project being called the sub-macroprogram of measuring in the sub-macrolibrary module of measurement; And the test parameter that combines to be provided with generates the main macroprogram of measurement; The main macroprogram of measurement that generates is preserved with document form; And outputing to the measuring process emulation module, the main macroprogram of the measurement of Sheng Chenging uploads to digital control system through communication module and computer simultaneously;
The measuring process emulation module: the measuring process emulation module is according to the main macroprogram of measurement that generates; The movement locus of simulation gauge head in the actual measurement process in three-dimensional scenic measured the reasonability of main macroprogram and guaranteed that gauge head can not collide damage in measuring process with definite;
Communication module: realize communicating by letter through computer and digital control system; The main macroprogram file of measurement that communication module will be measured main macroprogram generation module generation uploads to digital control system through computer; Communication module receives the detection data of digital control system output through computer; To detect data then and output to error compensation and analysis module, simultaneously, communication module is checked the integrality of the detection data of digital control system output;
Error compensation and analysis module: carry out error compensation to detecting data according to the error compensation value of setting in the module is set in graphical interaction and parameter; Error compensation and analysis module also calculate and analyze detecting data, draw result calculated, and overproof measurement project is pointed out; Error compensation and analysis module are preserved and playback with document form the data and the result calculated that detect after data, the error compensation.
According to second kind of technical scheme of the present invention, a kind of virtual numerical control machine online test method is characterized in that: comprise the steps:
A: virtual numerical control lathe on-line detector is set in computer; Graphical interaction and parameter are set in said virtual numerical control lathe on-line detector again to be provided with module, to measure main macroprogram generation module, to measure sub-macrolibrary module, communication module, error compensation and analysis module, measuring process emulation module;
B: select the measurement project, test parameter and error compensation value are set: be provided with in graphical interaction and parameter measurement project choice knob is set in the module; Test parameter and error compensation value are provided with the interface; Open graphical interaction and parameter is provided with module; From computer, import the CAD figure of measured workpiece, read graphical information; Use the project choice knob selection measurement project of measuring; Measured workpiece figure is redrawn on the screen of virtual numerical control lathe on-line detector; On workpiece figure, specify the datum mark and the anchor point of measuring beginning of measured workpiece, be provided with in test parameter and error compensation value test parameter and error compensation value are set in the interface;
C: generate the main macroprogram of measurement by measuring main macroprogram generation module: measure main macroprogram generation module according in the B step the sub-macroprogram of measuring in the sub-macrolibrary module of measurement being called in the selection of measuring project; And in conjunction with the main macroprogram of test parameter generation measurement that is provided with in the B step; The main macroprogram of measurement that generates is preserved with document form, and uploads to digital control system by communication module and computer;
D: the measuring process emulation module carries out measuring process emulation: the measuring process emulation module is according to the main macroprogram of measurement that generates; The simulation movement locus of gauge head in the actual measurement process in three-dimensional scenic is with the reasonability of confirming process of measurement and guarantee that gauge head can not collide damage in measuring process;
E: the main macroprogram of the measurement that communication module will generate uploads to digital control system through computer; Digit Control Machine Tool moves according to measuring main macroprogram drive gauge head; Trigger gauge head and workpiece touching back; Send triggering signal to receiver, receiver converts triggering signal the lathe signal to and sends to digital control system, the detection data record when digital control system triggers gauge head;
F: after detecting end, digital control system will detect data and output to error compensation and analysis module through computer and communication module;
G: error compensation and analysis module carry out error compensation and analysis to detecting data: error compensation and analysis module carry out error compensation according to the error compensation value of in the B step, setting to detecting data; Error compensation and analysis module also calculate and analyze detecting data, draw result calculated, and overproof measurement project is pointed out; Error compensation and analysis module are preserved and playback with document form the data and the result calculated that detect after data, the error compensation.
According to a preferred version of the present invention; When the measurement project of in the B step, selecting was roundness measurement, set test parameter comprised: select cylindrical or endoporus mark, be provided with cylindrical or endoporus diameter, be provided with the cylindrical of surveying or endoporus Z to coordinate, counting of measurement is set.
When carrying out roundness measurement, select above-mentioned test parameter to be because deviation from circular from calculatings needs and the assurance gauge head does not bump damage.
According to a preferred version of the present invention; When the measurement project of in the B step, selecting was the measurement of planeness, set test parameter comprised: be provided with place, tested plane the plan-position, tested plane is set first to angular coordinate, be provided with second of tested plane to angular coordinate, counting of measurement is set.
When carrying out the measurement of planeness, select above-mentioned test parameter to be because flatness error calculatings needs and the assurance gauge head does not bump damage.
According to a preferred version of the present invention; When the measurement project of in the B step, selecting was straight line degree measurement, set test parameter comprised: be provided with tested straight line place the plan-position, be provided with tested straight line starting point coordinate, be provided with tested straight line terminal point coordinate, counting of measurement is set.
When carrying out roundness measurement, select above-mentioned test parameter to be because straightness error calculatings needs and the assurance gauge head does not bump damage.
According to a preferred version of the present invention, described measuring process emulation comprises:
Confirm the measurement project:, confirm the measurement project by the main macroprogram of measurement that generates;
Set up part model: in the OpenGL scene, set up a part model based on the measurement project;
Procedure identification:, call the sub-macroprogram of measuring the correspondence in the sub-macrolibrary module based on the measurement project;
Parameter acquiring: test parameter and the error compensation value of obtaining setting;
Generate the movement locus of simulation gauge head: generate the movement locus of simulating gauge head based on test parameter that is provided with and error compensation value;
Process simulation: drive the simulation gauge head and move according to predetermined path of movement, the emulation of complete process is to judge the reasonability of measuring main macroprogram and to guarantee the gauge head damage that do not bump.
The beneficial effect of virtual numerical control machine on-line detection system of the present invention and method is: simplified operating process; Computer is set up with digital control system communicated by letter, make full use of the power of computer, in computer, virtual numerical control lathe on-line detector is set through software; Automatically generate and measure macroprogram; Detect the analysis of data and on virtual numerical control lathe on-line detector, carry out, reduced the operating time of machine operation and other links, improved detection efficiency greatly; Carry out error compensation to detecting data with virtual numerical control lathe on-line detector, make testing result have higher accuracy and reliability; Test item diversity, detected object are included physical dimension and morpheme error, are equipped with corresponding process of measurement and analytical method, can carry out the function expansion easily.Therefore the present invention has important use value.
Description of drawings
Below with reference to accompanying drawing embodiments of the invention are further described.
Fig. 1 is a kind of structural representation of virtual numerical control machine on-line detection system.
Fig. 2 is the structural representation of virtual numerical control lathe on-line detector 6.
Fig. 3 is the flow chart of virtual numerical control machine online test method.
Fig. 4 is a program flow diagram of measuring main macroprogram generation module 12.
Fig. 5 is the program flow diagram of error compensation and analysis module 14.
Fig. 6 is the program flow diagram of measuring process emulation module 15.
Fig. 7 is a human-computer interaction interface sketch map in the virtual numerical control lathe on-line detector 6.
Test parameter and error compensation value were provided with the interface sketch map when Fig. 8 was the measurement of selection groove boss.
Fig. 9 is that inner hole outer circularity is measured sub-macroprogram flow chart.
Figure 10 is that the groove boss is measured sub-macroprogram flow chart.
Figure 11 is that standard flat is measured sub-macroprogram flow chart.
Figure 12 is that degree of depth height is measured sub-macroprogram flow chart.
Figure 13 is that the hole heart is apart from measuring sub-macroprogram flow chart.
Figure 14 is the sub-macroprogram flow chart of straight line degree measurement.
Figure 15 is the sub-macroprogram flow chart of the measurement of planeness.
Figure 16 is the sub-macroprogram flow chart of roundness measurement.
The specific embodiment
Referring to Fig. 1; A kind of virtual numerical control machine on-line detection system of a kind of virtual numerical control machine on-line detection system; By computer 1, be installed in gauge head 4 on the handle of a knife, constitute with gauge head 4 supporting receiver 3, Digit Control Machine Tool 5, virtual numerical control lathe on-line detectors 6; Wherein, Digit Control Machine Tool 5 comprises digital control system, and virtual numerical control lathe on-line detector 6 is arranged in the computer 1;
Said virtual numerical control lathe on-line detector 6 obtains the graphical information of measured workpiece from computer 1; And human-computer interaction interface is provided; The test parameter that virtual numerical control lathe on-line detector 6 is based on the measurement project selected in the human-computer interaction interface and setting generates automatically measures main macroprogram, measures main macroprogram and uploads to digital control system through computer 1; Simultaneously; The detection data that virtual numerical control lathe on-line detector 6 receives digital control system output through computer 1; Carry out error compensation and analysis, calculating to detecting error compensation value that data are provided with in human-computer interaction interface based on the user; Measurement project to overproof is pointed out, and with result of calculation show, preservation and playback;
The main macroprogram of measurement that Digit Control Machine Tool 5 generates according to virtual numerical control lathe on-line detector 6 drives gauge head 4 and moves; Gauge head 4 triggers with workpiece touching back; And sending triggering signal to receiver 3, receiver 3 converts triggering signal the lathe signal to and sends to digital control system; Detection data record when digital control system triggers gauge head 4 also outputs to virtual numerical control machine on-line detector 6 through computer 1.
Wherein gauge head can be three-dimensional touch trigger probe, like the MP series gauge head of Renishaw company or Harbin pioneer's TP6C gauge head.
Wherein, Referring to Fig. 2; Being provided with graphical interaction and parameter in the said virtual numerical control lathe on-line detector 6 is provided with module 11, measures main macroprogram generation module 12, measures sub-macrolibrary module 16, communication module 13, error compensation and analysis module 14, measuring process emulation module 15;
Graphical interaction and parameter are provided with module 11 imports measured workpiece from computer 1 CAD figure; Obtain the graphical information of measured workpiece based on CAD figure; Measured workpiece figure is redrawn on the screen of virtual numerical control lathe on-line detector 6, be used on measured workpiece figure, specifying the datum mark and the anchor point of measuring beginning of measured workpiece, referring to Fig. 7; In specific embodiment; Selection reference point and to select anchor point all be on measured workpiece figure, to realize through click, the corresponding measurement project of each anchor point is provided with in graphical interaction and parameter and is provided with measurement project choice knob 21, test parameter and error compensation value in the module 11 interface is set; Measure the project choice knob and be used to select the measurement project; Test parameter and error compensation value are provided with the interface and are used to be provided with test parameter and error compensation value; Different measurement projects has different test parameters and error compensation value that the interface is set, because different measurement projects has different test parameter projects; The test parameter that graphical interaction and parameter are provided with measurement project that module 11 will select and setting is input to measures main macroprogram generation module 12, measures main macroprogram so that generate; Graphical interaction and parameter are provided with measurement project that module 11 will select and the error compensation value of setting is input to error compensation and analysis module 14;
Measure to be provided with in the sub-macrolibrary module 16 and measure sub-macroprogram; Supplying to measure main macroprogram generation module 12 calls; Wherein, the sub-macroprogram of measurement of measuring sub-macrolibrary module 16 comprises inner hole outer circularity diameter, groove boss, single plane, degree of depth height, hole heart distance, linearity, flatness and the circularity sub-macroprogram of measurement of totally 8 projects;
Measure main macroprogram generation module 12 based on the selection of measuring project being called the sub-macroprogram of measuring in the sub-macrolibrary module 16 of measurement; And the test parameter that combines to be provided with generates the main macroprogram of measurement; The main macroprogram of measurement that generates is preserved with document form; And outputing to measuring process emulation module 15, the main macroprogram of the measurement of Sheng Chenging uploads to digital control system through communication module 13 and computer 1 simultaneously; Measure the main macroprogram of measurement that main macroprogram generation module 12 generates can to endoporus outside diameter, groove or boss, single plane, degree of depth height, hole heart distance, linearity, flatness and circularity totally 8 projects measure;
Measuring process emulation module 15 is according to the main macroprogram of measurement that generates, and the movement locus of simulation gauge head 4 in the actual measurement process in three-dimensional scenic measured the reasonability of main macroprogram and guaranteed that gauge head 4 can not collide damage in measuring process with definite;
Communication module 13 realizes communicating by letter through computer 1 and digital control system; The main macroprogram file of measurement that communication module 13 will be measured main macroprogram generation module 12 generations uploads to digital control system through computer 1; Communication module 13 receives the detection data that digital control system is exported through computer 1, will detect data then and output to error compensation and analysis module 14, simultaneously; The integrality of the detection data of the 13 pairs of digital control systems of communication module output checks, incomplete data are abandoned and point out;
Error compensation and analysis module 14 carry out error compensation based on the error compensation value of setting to detecting data; Error compensation and analysis module 14 also calculate and analyze detecting data, draw result calculated, and overproof measurement project is pointed out; Data and result calculated that 14 pairs of error compensation and analysis modules detect after data, the error compensation are preserved and playback with document form;
The error compensation value is provided with earlier before measurement is carried out; And store as systematic parameter; To detection data from digital control system output; Because there is the decrement of offset, pretravel amount and length direction in the gauge head system, detect data and can have certain error, therefore need detect data to each all carries out error compensation; Error compensation and analysis module 14 are respectively to offset, and these three amounts of the decrement of pretravel amount and length direction are demarcated, and departure is deposited, and according to different measurement projects data are carried out corresponding compensation and calculate; If the measurement project is the profile physical dimension, result of calculation is carried out the arithmetic acquisition according to the relative position relation of measurement point; If the measurement project is the morpheme error,, call the error evaluation method to calculate like circularity, linearity, flatness etc.; The error evaluation method comprises Minimum Area method, least square method, approximation method etc., gets the little person of result and is judgment basis.
Referring to Fig. 3 to Fig. 7, a kind of virtual numerical control machine online test method is characterized in that: comprise the steps:
A: virtual numerical control lathe on-line detector 6 is set in computer 1; Graphical interaction and parameter are set in said virtual numerical control lathe on-line detector 6 again to be provided with module 11, to measure main macroprogram generation module 12, to measure sub-macrolibrary module 16, communication module 13, error compensation and analysis module 14, measuring process emulation module 15;
B: select the measurement project, test parameter and error compensation value are set: be provided with in graphical interaction and parameter measurement project choice knob 21 is set in the module 11; Test parameter and error compensation value are provided with the interface; Open graphical interaction and parameter module 11 is set; From computer 1, import the dxf file of the CAD figure of measured workpiece, read graphical information according to the form of dxf file; Graphical information comprises straight line, circular-arc information; Use the project choice knob 21 selection measurement projects of measuring; Measured workpiece figure is redrawn on the screen of virtual numerical control lathe on-line detector 6; On workpiece figure, specify the datum mark and the anchor point of measuring beginning of measured workpiece, in specific embodiment, selection reference point and selection anchor point all are on measured workpiece figure, to realize through click; The corresponding measurement project of each anchor point is provided with in test parameter and error compensation value test parameter and error compensation value is set in the interface; Different measurement projects has different test parameters and error compensation value that the interface is set, because different measurement projects has different test parameter projects; For example: referring to Fig. 7; Outside select measuring, during the diameter of garden, outside diameter value, Z need be set to position dimension and error compensation value, referring to Fig. 8; When select measuring the boss size, the x that boss need be set to width dimensions, y to width dimensions, z to position dimension and error compensation value;
The dxf file is made up of group code and class value, and group code shows the type of value thereafter, is determined by the CAD graphics system, is right after at the class value of group code back to represent concrete numerical value.In the dxf file; Each group code and value be to all respectively accounting for delegation, from the data format of dxf file, can from entity section, read primitive information such as straight line, multistage line, circle and circular arc and it is redrawn out; And can amplify, dwindle, operation such as translation, supply man-machine interaction.
C: generate the main macroprogram of measurement by measuring main macroprogram generation module 12: measure main macroprogram generation module 12 according in the B step the sub-macroprogram of measuring in the sub-macrolibrary module 16 of measurement being called in the selection of measuring project; And the test parameter that combines to be provided with in the B step generates the main macroprogram of measurement; The main macroprogram of measurement that generates is preserved with document form, and uploads to digital control system through communication module 13 and computer 1; Wherein, the sub-macroprogram of measurement of measuring sub-macrolibrary module 16 comprises inner hole outer circularity diameter, groove boss, single plane, degree of depth height, hole heart distance, linearity, flatness and the circularity sub-macroprogram of measurement of totally 8 projects;
In specific embodiment, measurement project of every selection is measured main macroprogram generation module 12 and all from measure sub-macrolibrary module 16, is called a sub-macroprogram, after project and parameter all are provided with completion, generate and measures main macroprogram and file;
Below be the main macroprogram of measurement that the measurement endoporus center of circle and diameter, Y generate to base width, cylindrical deviation from circular from, frustum cone height, left side linearity and right side flatness:
Figure GSB00000613338200111
D: measuring process emulation module 15 carries out measuring process emulation: measuring process emulation module 15 is according to the main macroprogram of measurement that generates; The simulation movement locus of gauge head 4 in the actual measurement process in three-dimensional scenic is with the reasonability of confirming process of measurement and guarantee that gauge head 4 can not collide damage in measuring process;
E: the main macroprogram of the measurement that communication module 13 will generate uploads to digital control system through computer 1; Digit Control Machine Tool 5 moves according to measuring main macroprogram drive gauge head 4; Gauge head 4 triggers with workpiece touching back; Send triggering signal to receiver 3, receiver 3 converts triggering signal the lathe signal to and sends to digital control system, the detection data record when digital control system triggers gauge head 4;
F: after detecting end, digital control system outputs to error compensation and analysis module 14 through computer 1 and communication module 13;
G: 14 pairs of error compensation and analysis modules detect data and carry out error compensation and analysis: error compensation and analysis module 14 carry out error compensation according to the error compensation value of in the B step, setting to detecting data; Error compensation and analysis module 14 also calculate and analyze detecting data, draw result calculated, and overproof measurement project is pointed out; Data and result calculated that 14 pairs of error compensation and analysis modules detect after data, the error compensation are preserved and playback with document form.
Wherein gauge head can be three-dimensional touch trigger probe, like the MP series gauge head of Renishaw company or Harbin pioneer's TP6C gauge head.
Referring to Fig. 7 and Figure 16, be that example specifies measuring method with the circularity of measuring workpieces:
A: virtual numerical control lathe on-line detector 6 is set in computer 1; Graphical interaction and parameter are set in said virtual numerical control lathe on-line detector 6 again to be provided with module 11, to measure main macroprogram generation module 12, to measure sub-macrolibrary module 16, communication module 13, error compensation and analysis module 14, measuring process emulation module 15;
B: select the measurement project, test parameter and error compensation value are set: be provided with in graphical interaction and parameter measurement project choice knob 21 is set in the module 11; Test parameter and error compensation value are provided with the interface; Open graphical interaction and parameter module 11 is set,, from computer 1, import the dxf file of the CAD figure of measured workpiece with " importing " button on the click panel; Form according to the dxf file reads graphical information, and graphical information comprises straight line, circular-arc information; Use measurement project choice knob 21 to select the measurement projects to be circularity; Measured workpiece is redrawn on the screen of virtual numerical control lathe on-line detector 6; Use " benchmark " button on the click panel again; Through mouse datum mark of on workpiece figure, specifying measured workpiece and the anchor point of confirming to measure beginning, test parameter and error compensation value are set being provided with in the interface again in test parameter and error compensation value; Wherein, the test parameter setting comprise mark, the diameter that cylindrical or endoporus are set of selecting cylindrical or endoporus, be provided with the cylindrical of surveying or endoporus Z to coordinate, counting of measurement is set;
C: with " program " button on the click panel; Measure main macroprogram generation module 12 according in the B step the sub-macroprogram of measuring in the sub-macrolibrary module 16 of roundness measurement being called in the selection of measuring project; And in conjunction with the main macroprogram of test parameter generation measurement that is provided with in the B step; The main macroprogram of measurement that generates is preserved with document form, and uploads to digital control system by communication module 13 and computer 1;
D: with " emulation " button on the click panel; Measuring process emulation module 15 carries out measuring process emulation: measuring process emulation module 15 is according to the main macroprogram of measurement that generates; The simulation movement locus of gauge head 4 in the actual measurement process in three-dimensional scenic is with the reasonability of confirming process of measurement and guarantee that gauge head 4 can not collide damage in measuring process;
E: with " transmission file " button on the click panel; The main macroprogram of the measurement that communication module 13 will generate uploads to digital control system through computer 1, and Digit Control Machine Tool 5 navigates to the datum mark of measuring beginning fast according to measuring main macroprogram, and drive gauge head 4 moves; Trigger in datum mark gauge head that is provided with 4 and workpiece touching back; Send triggering signal to receiver 3, receiver 3 converts triggering signal the lathe signal to and sends to digital control system, the detection data record when digital control system triggers gauge head 4; After the datum mark of all settings all detected completion, gauge head 4 stopped to move;
F: digital control system will detect data and output to error compensation and analysis module 14 through computer 1 and communication module 13;
G: with " result " button on the click panel, 14 pairs of error compensation and analysis modules detect data and carry out error compensation and analysis: error compensation and analysis module 14 carry out error compensation according to the error compensation value of in the B step, setting to detecting data; Error compensation and analysis module 14 also calculate and analyze detecting data, draw result calculated, and overproof measurement project is pointed out; Data and result calculated that 14 pairs of error compensation and analysis modules detect after data, the error compensation are preserved and playback with document form.
Referring to Fig. 7 and Figure 15, the measuring method of the flatness of measuring workpieces has only the B step different with the measuring method of measuring circularity with the C step, and other steps are all identical, does not tire out in this same steps as and states, and concrete different step is:
B: select the measurement project, test parameter and error compensation value are set: be provided with in graphical interaction and parameter measurement project choice knob 21 is set in the module 11; Test parameter and error compensation value are provided with the interface; Open graphical interaction and parameter module 11 is set,, from computer 1, import the dxf file of the CAD figure of measured workpiece with " importing " button on the click panel; Form according to the dxf file reads graphical information, and graphical information comprises straight line, circular-arc information; Use measurement project choice knob 21 to select the measurement projects to be flatness; Measured workpiece is redrawn on the screen of virtual numerical control lathe on-line detector 6; Use " benchmark " button on the click panel again; Through mouse datum mark of on workpiece figure, specifying measured workpiece and the anchor point of confirming to measure beginning, test parameter and error compensation value are set being provided with in the interface again in test parameter and error compensation value; Wherein, test parameter comprise plan-position that place, tested plane is set, tested plane is set first to angular coordinate, be provided with second of tested plane to angular coordinate, counting of measurement is set;
C: with " program " button on the click panel; Measure main macroprogram generation module 12 according in the B step the sub-macroprogram of measuring in the sub-macrolibrary module 16 of the measurement of planeness being called in the selection of measuring project; And the test parameter that combines to be provided with in the B step generates the main macroprogram of measurement; The main macroprogram of measurement that generates is preserved with document form, and uploads to digital control system through communication module 13 and computer 1.
Referring to Fig. 7 and Figure 14, the measuring method of the linearity of measuring workpieces has only the B step different with the measuring method of measuring circularity with the C step, and other steps are all identical, does not tire out in this same steps as and states, and concrete different step is:
B: select the measurement project, test parameter and error compensation value are set: be provided with in graphical interaction and parameter measurement project choice knob 21 is set in the module 11; Test parameter and error compensation value are provided with the interface; Open graphical interaction and parameter module 11 is set,, from computer 1, import the dxf file of the CAD figure of measured workpiece with " importing " button on the click panel; Form according to the dxf file reads graphical information, and graphical information comprises straight line, circular-arc information; Use measurement project choice knob 21 to select the measurement projects to be linearity; Measured workpiece is redrawn on the screen of virtual numerical control lathe on-line detector 6; Use " benchmark " button on the click panel again; Through mouse datum mark of on workpiece figure, specifying measured workpiece and the anchor point of confirming to measure beginning, test parameter and error compensation value are set being provided with in the interface again in test parameter and error compensation value; Wherein, test parameter comprises plan-position, the starting point coordinate that tested straight line is set, the terminal point coordinate that tested straight line is set that tested straight line place is set, counting of measurement is set.
C: with " program " button on the click panel; Measure main macroprogram generation module 12 according in the B step the sub-macroprogram of measuring in the sub-macrolibrary module 16 of straight line degree measurement being called in the selection of measuring project; And in conjunction with the main macroprogram of test parameter generation measurement that is provided with in the B step; The main macroprogram of measurement that generates is preserved with document form, and uploads to digital control system by communication module 13 and computer 1;
Referring to Fig. 6, described measuring process emulation comprises the steps:
Confirm the measurement project:, confirm the measurement project by the main macroprogram of measurement that generates;
Set up part model: in the OpenGL scene, set up a part model based on the measurement project;
Procedure identification:, call the sub-macroprogram of measuring the correspondence in the sub-macrolibrary module 16 according to the measurement project;
Parameter acquiring: test parameter and the error compensation value of obtaining setting;
Generate the movement locus of simulation gauge head: generate the movement locus of simulating gauge head based on test parameter that is provided with and error compensation value;
Process simulation: drive the simulation gauge head and move according to predetermined path of movement, the emulation of complete process is to judge the reasonability of measuring main macroprogram and to guarantee the gauge head damage that do not bump.
OpenGL is the graphic package interface of specialty, be one powerful, call bottom shape library easily.The English full name of OpenGL is " Open Graphics Library ", and as its name suggests, OpenGL is " an open graphic package interface ".OpenGL is and the software interface of hardware independent, can between different platforms such as Windows 95, Windows NT, Unix, Linux, MacOS, OS/F, transplant.Therefore, support the software of OpenGL to have good transplantability, can obtain to use very widely.

Claims (6)

1. virtual numerical control machine on-line detection system, comprise computer (1), be installed in gauge head (4) on the handle of a knife, with supporting receiver (3), the Digit Control Machine Tool (5) of gauge head (4), Digit Control Machine Tool (5) comprises digital control system; Wherein: be provided with virtual numerical control lathe on-line detector (6) in the computer (1);
Said virtual numerical control lathe on-line detector (6) obtains the graphical information of measured workpiece from computer (1); And human-computer interaction interface is provided; The test parameter that virtual numerical control lathe on-line detector (6) is based on the measurement project selected in the human-computer interaction interface and setting generates automatically measures main macroprogram, measures main macroprogram and uploads to digital control system through computer (1); Simultaneously; Virtual numerical control lathe on-line detector (6) receives the detection data of digital control system output through computer (1); Carry out error compensation and analysis, calculating to detecting error compensation value that data are provided with in human-computer interaction interface based on the user; Measurement project to overproof is pointed out, and with result of calculation show, preservation and playback;
The main macroprogram of measurement that Digit Control Machine Tool (5) generates according to virtual numerical control lathe on-line detector (6) drives gauge head (4) and moves; Gauge head (4) triggers with workpiece touching back; And sending triggering signal to receiver (3), receiver (3) converts triggering signal the lathe signal to and sends to digital control system; Detection data record when digital control system triggers gauge head (4) also outputs to virtual numerical control machine on-line detector (6) through computer (1); It is characterized in that:
Being provided with graphical interaction and parameter in the said virtual numerical control lathe on-line detector (6) is provided with module (11), measures main macroprogram generation module (12), measures sub-macrolibrary module (16), communication module (13), error compensation and analysis module (14), measuring process emulation module (15);
Graphical interaction and parameter are provided with module (11): graphical interaction and parameter are provided with module (11) imports measured workpiece from computer (1) CAD figure; Obtain the graphical information of measured workpiece based on CAD figure; Measured workpiece figure is redrawn on the screen of virtual numerical control lathe on-line detector (6); Be used on measured workpiece figure specifying the datum mark and the anchor point of measuring beginning of measured workpiece, be provided with in graphical interaction and parameter and be provided with measurement project choice knob (21), test parameter and error compensation value in the module (11) interface is set; Measure the project choice knob and be used to select the measurement project, test parameter and error compensation value are provided with the interface and are used to be provided with test parameter and error compensation value;
Measure sub-macrolibrary module (16): measure to be provided with in the sub-macrolibrary module (16) and measure sub-macroprogram, supply to measure main macroprogram generation module (12) and call;
Measure main macroprogram generation module (12): measure main macroprogram generation module (12) based on the selection of measuring project being called the sub-macroprogram of measuring in the sub-macrolibrary module (16) of measurement; And the test parameter that combines to be provided with generates the main macroprogram of measurement; The main macroprogram of measurement that generates is preserved with document form; And outputing to measuring process emulation module (15), the main macroprogram of the measurement of Sheng Chenging uploads to digital control system through communication module (13) and computer (1) simultaneously;
Measuring process emulation module (15): measuring process emulation module (15) is according to the main macroprogram of measurement that generates; In three-dimensional scenic, simulate the movement locus of gauge head (4) in the actual measurement process, measure the reasonability of main macroprogram and guarantee that gauge head (4) can not collide damage in measuring process with definite;
Communication module (13): realize communicating by letter through computer (1) and digital control system; The main macroprogram file of measurement that communication module (13) will be measured main macroprogram generation module (12) generation uploads to digital control system through computer (1); Communication module (13) receives the detection data of digital control system output through computer (1); To detect data then and output to error compensation and analysis module (14), simultaneously, communication module (13) is checked the integrality of the detection data of digital control system output;
Error compensation and analysis module (14): carry out error compensation to detecting data according to the error compensation value of setting; Error compensation and analysis module (14) also calculate and analyze detecting data, draw result calculated, and overproof measurement project is pointed out; Error compensation and analysis module (14) are preserved and playback with document form the data and the result calculated that detect after data, the error compensation.
2. a virtual numerical control machine online test method is characterized in that: comprise the steps:
A: virtual numerical control lathe on-line detector (6) is set in computer (1); Graphical interaction and parameter are set in said virtual numerical control lathe on-line detector (6) again to be provided with module (11), to measure main macroprogram generation module (12), to measure sub-macrolibrary module (16), communication module (13), error compensation and analysis module (14), measuring process emulation module (15);
B: select the measurement project, test parameter and error compensation value are set: be provided with in graphical interaction and parameter measurement project choice knob (21) is set in the module (11); Test parameter and error compensation value are provided with the interface; Open graphical interaction and parameter module (11) is set; From computer (1), import the CAD figure of measured workpiece, read graphical information; Use project choice knob (21) the selection measurement project of measuring; Measured workpiece figure is redrawn on the screen of virtual numerical control lathe on-line detector (6); On workpiece figure, specify the datum mark and the anchor point of measuring beginning of measured workpiece, be provided with in test parameter and error compensation value test parameter and error compensation value are set in the interface;
C: generate the main macroprogram of measurement by measuring main macroprogram generation module (12): measure main macroprogram generation module (12) according in the B step the sub-macroprogram of measuring in the sub-macrolibrary module (16) of measurement being called in the selection of measuring project; And in conjunction with the main macroprogram of test parameter generation measurement that is provided with in the B step; The main macroprogram of measurement that generates is preserved with document form, and uploads to digital control system by communication module (13) and computer (1);
D: measuring process emulation module (15) carries out measuring process emulation: measuring process emulation module (15) is according to the main macroprogram of measurement that generates; In three-dimensional scenic, simulate the movement locus of gauge head (4) in the actual measurement process, with the reasonability of confirming process of measurement and guarantee that gauge head (4) can not collide damage in measuring process;
E: the main macroprogram of measurement that communication module (13) will generate uploads to digital control system through computer (1); Digit Control Machine Tool (5) moves according to measuring main macroprogram drive gauge head (4); Gauge head (4) triggers with workpiece touching back; Send triggering signal to receiver (3), receiver (3) converts triggering signal the lathe signal to and sends to digital control system, the detection data record when digital control system triggers gauge head (4);
F: after detecting end, digital control system will detect data and output to error compensation and analysis module (14) through computer (1) and communication module (13);
G: error compensation and analysis module (14) carry out error compensation and analysis to detecting data: error compensation and analysis module (14) carry out error compensation according to the error compensation value of in the B step, setting to detecting data; Error compensation and analysis module (14) also calculate and analyze detecting data, draw result calculated, and overproof measurement project is pointed out; Error compensation and analysis module (14) are preserved and playback with document form the data and the result calculated that detect after data, the error compensation.
3. a kind of virtual numerical control machine online test method according to claim 2; It is characterized in that: when the measurement project of in the B step, selecting was roundness measurement, set test parameter comprised: select cylindrical or endoporus mark, be provided with cylindrical or endoporus diameter, be provided with the cylindrical of surveying or endoporus Z to coordinate, counting of measurement is set.
4. a kind of virtual numerical control machine online test method according to claim 2; It is characterized in that: when the measurement project of in the B step, selecting was the measurement of planeness, set test parameter comprised: be provided with place, tested plane the plan-position, tested plane is set first to angular coordinate, be provided with second of tested plane to angular coordinate, counting of measurement is set.
5. a kind of virtual numerical control machine online test method according to claim 2; It is characterized in that: when the measurement project of in the B step, selecting was straight line degree measurement, set test parameter comprised: be provided with tested straight line place the plan-position, be provided with tested straight line starting point coordinate, be provided with tested straight line terminal point coordinate, counting of measurement is set.
6. according to claim 2,3,4 or 5 described a kind of virtual numerical control machine online test method, it is characterized in that: described measuring process emulation comprises the steps:
Confirm the measurement project:, confirm the measurement project by the main macroprogram of measurement that generates;
Set up part model: in the OpenGL scene, set up a part model based on the measurement project;
Procedure identification:, call the sub-macroprogram of measuring the correspondence in the sub-macrolibrary module (16) according to the measurement project;
Parameter acquiring: test parameter and the error compensation value of obtaining setting;
Generate the movement locus of simulation gauge head: generate the movement locus of simulating gauge head based on test parameter that is provided with and error compensation value;
Process simulation: drive the simulation gauge head and move the emulation of complete process according to predetermined path of movement.
CN2010101972553A 2010-06-10 2010-06-10 Virtual numerical control machine on-line detection system and method Expired - Fee Related CN101898317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101972553A CN101898317B (en) 2010-06-10 2010-06-10 Virtual numerical control machine on-line detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101972553A CN101898317B (en) 2010-06-10 2010-06-10 Virtual numerical control machine on-line detection system and method

Publications (2)

Publication Number Publication Date
CN101898317A CN101898317A (en) 2010-12-01
CN101898317B true CN101898317B (en) 2012-02-01

Family

ID=43224422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101972553A Expired - Fee Related CN101898317B (en) 2010-06-10 2010-06-10 Virtual numerical control machine on-line detection system and method

Country Status (1)

Country Link
CN (1) CN101898317B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108000237A (en) * 2017-11-28 2018-05-08 上海航天精密机械研究所 Part geometric tolerance On-line Measuring Method based on digital control system secondary development

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102501136B (en) * 2011-10-10 2013-09-18 华中科技大学 On-machine detection measuring head and detection system for numerical control machine tool
CN102621932B (en) * 2012-05-02 2013-11-20 重庆大学 Energy consumption prediction method for use in service process of numerically-controlled machine tool
CN102785128B (en) * 2012-07-30 2016-01-20 广东工业大学 The part processing precision on-line detecting system of NC Machine lathe and detection method
CN102814512B (en) * 2012-08-24 2014-07-16 沈阳黎明航空发动机(集团)有限责任公司 On-line measuring method for radials profile of compressor disc-like part of engine
CN104139323A (en) * 2013-09-24 2014-11-12 上海拓璞数控科技有限公司 On-line thickness measurement system for large aeronautical thin-walled part and thickness measurement method of system
CN103728917B (en) * 2013-12-27 2016-05-04 天津大学 The collision-proof method of digital control processing and measurement device
CN103831669A (en) * 2014-03-20 2014-06-04 蒋峰 Circular degree error online measurement system and measurement method
CN104289748B (en) * 2014-08-22 2018-08-17 天津航天长征火箭制造有限公司 A kind of large thin-wall covering adaptively equal wall thickness milling system and its processing method
CN105825175A (en) * 2016-03-11 2016-08-03 上海弼智仿生高科技有限公司 Generation method for industrial vision detection scheme and industrial vision detection method
CN106091908B (en) * 2016-06-14 2018-08-24 重庆大学 Sporting rifle gun barrel air guide groove detection apparatus and its detection method
CN106826395A (en) * 2017-01-08 2017-06-13 广东工业大学 A kind of method of Digit Control Machine Tool on-line measurement inclined hole
CN107219990A (en) * 2017-07-07 2017-09-29 深圳市易快来科技股份有限公司 A kind of method of guiding measurement for workpiece, apparatus and system
CN109202539B (en) * 2018-08-23 2020-10-30 北京动力机械研究所 Online detection method for composite material weak-rigidity special-shaped structure
CN111823056A (en) * 2019-04-18 2020-10-27 鸿富锦精密电子(成都)有限公司 Workpiece on-line detection method and device and computer readable storage medium
CN111336962B (en) * 2020-02-25 2021-11-12 深圳星友方科技有限公司 Method and system for online measuring workpiece by spark machine
CN113723057A (en) * 2021-08-30 2021-11-30 上汽通用五菱汽车股份有限公司 Roundness compensation file generation method and system for CNC
CN113791580B (en) * 2021-09-17 2023-03-10 深圳模德宝科技有限公司 Method and device for generating on-machine detection program of numerical control equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4593142B2 (en) * 2003-09-25 2010-12-08 ハイデルベルガー ドルツクマシーネン アクチエンゲゼルシヤフト System for manufacturing a workpiece under computer control and method for measuring a manufactured workpiece
US20070294580A1 (en) * 2006-05-31 2007-12-20 Ziyang Lu Virtual tester architecture
CN101342664B (en) * 2008-08-20 2010-11-24 天津大学 On-machine quality detecting system for complex space type surface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108000237A (en) * 2017-11-28 2018-05-08 上海航天精密机械研究所 Part geometric tolerance On-line Measuring Method based on digital control system secondary development

Also Published As

Publication number Publication date
CN101898317A (en) 2010-12-01

Similar Documents

Publication Publication Date Title
CN101898317B (en) Virtual numerical control machine on-line detection system and method
EP3353491B1 (en) System and method for programming workpiece feature inspection operations for a coordinate measuring machine
CN101424520B (en) Method for detecting partial contour outline of object curved surface
CA2973038A1 (en) Combined inertial navigation and laser scanning coal shearer positioning device and method
CN108107871B (en) Optimized robot performance test method and device
US10990075B2 (en) Context sensitive relational feature/measurement command menu display in coordinate measurement machine (CMM) user interface
CN106248044B (en) A kind of bridge full-bridge Multi-point deflection real-time acquisition and display system
CN107063060A (en) A kind of method and device for determining surface planarity
CN110345865A (en) A kind of steel construction digitizing detection method based on 3-D scanning
CN104102173A (en) Numerical Controller
CN103831669A (en) Circular degree error online measurement system and measurement method
CN104166373A (en) Online detecting method and system for numerical control machine tool machining error
CN107063149A (en) Numerical control electric spark process equipment automatic checkout system and method
CN104268325A (en) Automatic modelling method for coordinate measuring machine model
CN109165399B (en) SketchUp API-based automatic three-dimensional building modeling method and system
CN211552740U (en) Step clearance measuring apparatu based on laser line scanning technique
Ge et al. Tolerance specification and comparative analysis for computer-integrated dimensional inspection
US5970431A (en) Iconized DMIS
US20170176226A1 (en) Multi-mode metrology user interface device
CN111397497B (en) Machine tool assembly precision detection method and system
CN111397567B (en) Three-dimensional detection method and system for surface of shield machine
US7672810B2 (en) Method, device and computer program for evaluating an object using a virtual representation of said object
CN114061502A (en) Control method of shape measuring apparatus and storage medium
CN202964282U (en) Ball head and ball center position detector
CN102699548B (en) Numerical control high-efficiency assembly method for complex-curve steel structure rod piece

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120201

Termination date: 20130610