CN106134469B - A kind of numerical control program critique system and method for simulating central track of cutter - Google Patents

A kind of numerical control program critique system and method for simulating central track of cutter

Info

Publication number
CN106134469B
CN106134469B CN201110012443.9A CN201110012443A CN106134469B CN 106134469 B CN106134469 B CN 106134469B CN 201110012443 A CN201110012443 A CN 201110012443A CN 106134469 B CN106134469 B CN 106134469B
Authority
CN
China
Prior art keywords
program
numerical control
check
module
correction
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
CN201110012443.9A
Other languages
Chinese (zh)
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.)
Beijing Satellite Manufacturing Factory Co Ltd
Original Assignee
Beijing Satellite Manufacturing Factory 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 Beijing Satellite Manufacturing Factory Co Ltd filed Critical Beijing Satellite Manufacturing Factory Co Ltd
Priority to CN201110012443.9A priority Critical patent/CN106134469B/en
Application granted granted Critical
Publication of CN106134469B publication Critical patent/CN106134469B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Numerical Control (AREA)

Abstract

A kind of numerical control program critique system and method for simulating central track of cutter, to proofread model and nc program as initial conditions, through configuration proof-reading environment, configuration nc program type, generation simulation center cutter point position and simulation generating tool axis vector direction, the angular deviation between range deviation, measure analog generating tool axis vector direction and check and correction model geometric feature between measure analog center cutter point position and check and correction model geometric feature realizes the check and correction to nc program. The present invention adopts three dimensional design physical model as check and correction model, using check and correction model and the nc program that contains 3~5 axial coordinate information as input, characterize simulation center cutter point position with three-dimensional coordinate point, characterize simulation generating tool axis vector direction with directed line segment, the quick and precisely check and correction that can calculate without coordinate figure, coordinate figure comparison or professional software emulation just can realize multi-axis numerical control program.

Description

A kind of numerical control program critique system and method for simulating central track of cutter
Technical field
The present invention relates to a kind of numerical control program critique system and method for simulating central track of cutter, belong to calculatingThe auxiliary manufacturing technology of machine field.
Background technology
Numerical control program is the input code that directly drives Digit Control Machine Tool generation cutting movement, the direct shadow of its correctnessRing the precision of digital control processing product, and program proofreading link is just in order to ensure the correctness of numerical control program and to closeRationality. Traditional numerical control program proofreading method mainly contains two kinds of the auxiliary check and correction of artificial coordinate comparison and simulation software.Coordinate Comparison Method relies on the mode of manually reading over numerical control program to check, convert, compare people coordinate figureMember's workload is large, error rate is higher, and because coordinate values is not directly perceived, lacks visual mutual ringBorder, makes the cycle of check and correction longer, inefficiency. The auxiliary check and correction method of simulation software is mainly by emulationIn software, set up check and correction model, configuration emulation project, processing environment is set, sets up check and correction task data group,Simulation parameter, operation emulation module are set and analyze multiple steps such as simulation result the check and correction that realizes numerical control program,Its process step is various, and process is tediously long, and efficiency is not high yet. Process at the multiaxis of small complex structural member especiallyAspect, although procedure quantity is little, owing to relating to numerical control multi-shaft processing, the time of above-mentioned two kinds of proofreading methodsAll very long with the cycle, seriously restrict the preparation efficiency of numerical control program. The multiaxis hole of this external complex structural memberProcessing aspect, current track emulation software cannot show generating tool axis vector direction, needs press corrector at CADIn program, manually set up cutter shaft information, this has further increased proof time, has reduced the efficiency of check and correction.
Summary of the invention
The technical problem that the present invention solves is: overcome the deficiencies in the prior art, a kind of simulation center cutter is providedNumerical control program critique system and the method for track, by application the present invention, can be ensureing in accuracy,Complete fast the check and correction of complicated numerical control program, improve the preparation efficiency of numerical control program.
Technical solution of the present invention is: a kind of numerical control program critique system of simulating central track of cutter,Comprise that check and correction model imports module, nc program imports module, check and correction modeling rendering module, check and correction ringBorder configuration module, nc program type configuration module, cutter geometric center point position generation module, cutterAxial vector direction generation module, simulation cutter geometric center point drafting module, simulation generating tool axis vector direction are drawnModule, geometric properties distance-measurement module, geometric properties Angle Measurement Module, nc program check and correction knotFruit determination module;
Check and correction model importing module is proofreaded model by three-dimensional and is imported to CAD program, and three-dimensional is proofreaded to model and sendEnter to check and correction modeling rendering module;
Check and correction modeling rendering module completes the drafting of three-dimensional check and correction model, and three-dimensional is proofreaded to model and send into respectivelyTo geometric properties distance-measurement module and geometric properties Angle Measurement Module;
Nc program imports module nc program is imported to CAD program, and by numerically controlled machining programmeOrder is sent to cutter geometric center point position generation module and generating tool axis vector direction generation module;
Check and correction environment configurations module is by arranging proof-reading layer and setting up consistent with nc program orientationCheck and correction coordinate system completes the configuration of check and correction environment, and check and correction environment configurations information is sent to how much, simulation cutterCentral point drafting module and simulation generating tool axis vector direction drafting module;
Nc program type configuration module by installation surface to lathe and the Program Type of the form that specifically linksComplete the configuration of nc program type, and the nc program type of configuration is sent to cutter how muchCenter position generation module and generating tool axis vector direction generation module;
Cutter geometric center point position generation module and generating tool axis vector direction generation module add according to the numerical control receivingCoordinate information in work Program Type and nc program, generates respectively cutter geometric center dot position informationWith generating tool axis vector directional information, and it is sent to respectively to simulation cutter geometric center point drafting module and simulationGenerating tool axis vector direction drafting module;
Simulation cutter geometric center point drafting module and simulation generating tool axis vector direction drafting module complete simulation cutterThe drafting of geometric center point and simulation generating tool axis vector direction is also sent to geometric properties range measurement mould by its informationPiece and geometric properties Angle Measurement Module;
Geometric properties distance-measurement module and geometric properties Angle Measurement Module in CAD program to simulation cutterThe measurement of the range deviation between center position and check and correction model geometric feature and simulation generating tool axis vector directionAnd the angular deviation between check and correction model geometric feature, and measurement result is sent to nc program check and correctionResult determination module draws check and correction conclusion.
Check and correction environment configurations module comprises proof-reading layer configuration module and check and correction coordinate system configuration module, check and correctionWorking lining configuration module is used for arranging working lining sequence number and the proof-reading number of plies amount at check and correction task place, andProofreading required whole working lining sequence numbers must not be identical with the element place working lining sequence number designing a model,Check and correction coordinate system configuration module is for arranging the coordinate system orientation that check and correction task is used, and its coordinate origin mustMust be that initial point overlaps with the machining coordinate of numerical control program, each change in coordinate axis direction must with the work area that adds of numerical control programMark is each direction of principal axis corresponding coincidence respectively.
The nc program type of nc program type configuration block configuration comprises 3 axis linkage numerical control journeysOrder, 4 axis linkage numerical control programs, 5 axle location processing numerical control program and 5 axis linkage numerical control programs, 5 axle locationThe subtype of processing numerical control program and 5 axis linkage numerical control programs comprises Orthogonal Double yaw numerical control program, Orthogonal DoubleTurntable numerical control program, orthogonal yaw-turntable numerical control program, nonopiate yaw-turntable numerical control program, 5 axles are vowedAmount programming mode numerical control program.
Cutter geometric center point position generation module is according to sitting in nc program type and nc programThe D coordinates value (x, y, z) of mark Information generation cutter geometric center point position, wherein 3 axis linkage numerical controlsProgram, the three-dimensional coordinate of the cutter geometric center point position of 4 axis linkage numerical control programs and 5 axis linkage numerical control programsIn value (x, y, z) and nc program, the coordinate figure (x, y, z) of each linear movement axle is identical,The D coordinates value (x, y, z) of the cutter geometric center point position of 5 axle location processing numerical control programs is according to numberThe space angle value (A, B, C) of plane of orientation in the subtype of control procedure and nc program, andSolve by resolving inversely algorithm.
Generating tool axis vector direction generation module is according to coordinate information in nc program type and nc programGenerate the three-dimensional vector (i, j, k) of generating tool axis vector, its each component i, j, k represents that respectively this three-dimensional vector is at fluteIn card youngster coordinate system with respect to X, Y, the projection components value of tri-axles of Z, and i, j, the numerical value of k must meetNormative requirement, that is:Wherein the generating tool axis vector direction in 3 axis linkage numerical control programs beginsEdge+Zm axle eventually, the three-dimensional vector value of generating tool axis vector is always (0,0,1); All the other type digital control processingsThe three-dimensional vector value (i, j, k) of the generating tool axis vector of program must be according in its subtype and nc programRevolving of i.e. (A, the B) combination of the coordinate figure of each rotating shaft or (A, C) combination or (B, C) combinationGyration, and solve by resolving inversely algorithm.
Described resolving inversely algorithm is the mapping relations between three-dimensional vector and numerical control program rotating shaft coordinate figureDerivation algorithm, this algorithm, according to the rotating shaft coordinate figure of numerical control program, will specify vector according to first anglec of rotation C,Anglec of rotation B again, the order of last anglec of rotation A is rotated, if in the coordinate figure of the axle that rotatablely moves notClose certain 1 or certain 2 angle, assert that this angle value is 0, solution procedure adopts three-dimensional geometry transformation matrixCalculate postrotational coordinate figure.
Simulate a numerical control program proofreading method for central track of cutter, realize by following steps:
The first step, proofreads model by three-dimensional and imports in CAD program, and draw;
Second step, the environment of configuration proof-reading; Comprise sequence number, proof-reading that proof-reading layer is setThe quantity of layer, arranges check and correction coordinate system, and must meet the work area that adds of check and correction coordinate origin and numerical control programMark is that initial point overlaps, and the machining coordinate of the check and correction each change in coordinate axis direction of coordinate system and numerical control program is that each direction of principal axis dividesNot corresponding coincidence;
The 3rd step, configuration nc program type; Its type comprises 3 axis linkage numerical control programs, 4 axle interlocksNumerical control program, 5 axle location processing numerical control program and 5 axis linkage numerical control programs, 5 axle location processing numerical control programsWith the subtype of 5 axis linkage numerical control programs comprise Orthogonal Double yaw numerical control program, Orthogonal Double turntable numerical control program,Orthogonal yaw-turntable numerical control program, nonopiate yaw-turntable numerical control program;
The 4th step, according to the Program Type of the 3rd step configuration, imports to CAD by corresponding nc programIn program;
The 5th step, according to the nc program of the Program Type of the 3rd step configuration and the importing of the 4th step, solvesThe cutter geometric center point position of everywhere tracing point in nc program;
The 6th step, according to the nc program of the Program Type of the 3rd step configuration and the importing of the 4th step, solvesThe generating tool axis vector direction of everywhere tracing point in nc program;
The 7th step according to the solving result of the 5th step, is drawn every in the proof-reading environment of second step configurationThe cutter geometric center point position of one place's tracing point, and characterize cutter geometric center point position with three-dimensional coordinate point;
The 8th step according to the solving result of the 6th step, is drawn every in the proof-reading environment of second step configurationThe generating tool axis vector direction of one place's tracing point, and taking cutter geometric center point as starting point, the three-dimensional of generating tool axis vector toAmount is direction, and the directed line segment that length is 100mm characterizes generating tool axis vector direction;
The 9th step, according to cutter position of cusp and cutter shaft line segment on each tracing point of drawing, to digital control processingThe reasonability of program is carried out macroscopic view judgement, if preliminary determining program rationally enters the tenth step, otherwise again repaiiesChange after program, return to the 3rd step;
The tenth step, in the proof-reading environment of second step configuration, measures in the cutter geometry of the 7th step draftingThe target geometric properties of heart point position and check and correction model is judged digital control processing as the distance between point, line, surfaceWhether program meets the requirements, and judges that precision is 0.001mm,, in the time of distance L EssT.LTssT.LT 0.001mm, meets check and correctionRequired precision;
The 11 step, in the proof-reading environment of second step configuration, measures the generating tool axis vector that the 8th step is drawnThe target geometric properties of direction and check and correction model is judged numerically controlled machining programme as line, face, the method angle between vowingWhether order meets the requirements, and judges that precision is 0.001 degree,, in the time that angle < 0.001 spends, meets check and correction precisionRequirement;
The 12 step, according to the measurement result of the tenth step and the 11 step, judges whether nc program meetsRequirement, if the measurement result of all tracing points all meets check and correction required precision, this nc program meetsCheck and correction requirement, otherwise remodify after program, the 3rd step returned to.
The present invention compared with prior art beneficial effect is:
(1) the present invention is by extracting point of a knife dot information and the generating tool axis vector directional information in numerical control program, at CADIn program, carry out visual mutual demonstration, by simulation central track of cutter, realize point of a knife point and cutter shaft sideTo Quick Measurement comparison, not only abandoned coordinate figure in artificial check and correction method and checked and the tediously long operator who convertsFormula, and effectively simplified the troublesome operation process in the auxiliary check and correction method of software, especially in small complex structureIn the link of checking of part and the processing of multiaxis hole, just can realize quick and precisely without setting up generating tool axis vector directional informationThe object of check and correction numerical control program. By application the present invention, can, in ensureing accuracy, complete fastThe check and correction of complicated numerical control program, the preparation efficiency of raising numerical control program.
(2) the present invention is by point coordinates information and rotation angle information in extraction procedure, for polytypeThe digital control system of lathe and interlock mode, set up the corresponding relation of numerical control program and cutter location/generating tool axis vector information,Developed the resolving inversely algorithm of composite rotating angle, solve point of a knife point in numerical control program position coordinates andThe direction vector of cutter shaft, has realized the Fast simulation of program point of a knife point and generating tool axis vector direction, and passes through directly perceivedDemonstration mode is carried out visual mutual demonstration in CAD program, for program proofreading provides reliable cutterCentrode information.
(3) the present invention relates to Siemens (SIEMENS), Heidenhain (HEIDENHAIN), Fa Nake(FANUC) the various controller system such as, and three-shaft linkage in different controller system, four-axle linked,The five-axle linkage of Orthogonal Double yaw, the five-axle linkage of Orthogonal Double turntable, orthogonal yaw/turntable five-axle linkage, nonopiateThe quick check and correction of the complicated numerical control program under the multiple interlock modes such as yaw/turntable five-axle linkage, the control that it is applicableDevice kind processed is many, and the scope of interlock mode is wide, is that one has high flexibility and extensive adaptive proofreading method.
(4) the present invention is by the visual demonstration of tool setting cusp in CAD program and generating tool axis vector direction, realThe Quick Measurement of distance between existing point of a knife point and Program path point, and the instruction of generating tool axis vector direction and route pointThe Quick Measurement of angle between direction, thus realize conveniently visual school pair. Especially for five axlesThe numerical control program of hole processing, the present invention has thoroughly abandoned the tediously long operating type of complexity of manually setting up cutter shaft information,Greatly simplify program proofreading process, improved the operating efficiency of check and correction.
Brief description of the drawings
Fig. 1 is module map of the present invention;
Fig. 2 is flow chart of the present invention;
Fig. 3 is the three-dimensional check and correction of the present invention model;
Fig. 4 is that proof-reading environment of the present invention arranges figure; Wherein Fig. 4 (a) proofreads coordinate system and adds for initialThe location diagram of work coordinate system, Fig. 4 (b) is the initial check and correction coordinate system after adjusting and machining coordinate systemLocation diagram (XcYcZc is check and correction coordinate system, and XmYmZm is machining coordinate system).
Fig. 5 is generating tool axis vector direction resolving inversely algorithm flow chart.
Fig. 6 is simulation central track of cutter figure; Wherein Fig. 6 (a) demonstrates separately for simulating central track of cutterFigure; Fig. 6 (b) proofreads model for simulation central track of cutter and three-dimensional and combines demonstration graph.
Fig. 7 is the demonstration graph of generating tool axis vector direction of the present invention in model corner; Wherein Fig. 7 (a) is modelThe generating tool axis vector demonstration graph of corner's non-uniform change, Fig. 7 (b) is model corner continuous and even variationGenerating tool axis vector demonstration graph.
Fig. 8 is the represented central track of cutter of numerical control program of the present invention how much spies corresponding to three-dimensional check and correction modelLevy the measurement result demonstration graph between element; Wherein Fig. 8 (a) is the represented center cutter point of numerical control programRange measurements demonstration graph between point of a knife point contact position in position and three-dimensional check and correction model, Fig. 8 (b) isAngle between tool orientation direction indication in the cutter direction vector that numerical control program is represented and three-dimensional check and correction modelMeasurement result demonstration graph.
Fig. 9 is that the present invention proofreads flow chart.
Detailed description of the invention
The present invention realize simulation central track of cutter numerical control program critique system as shown in Figure 1, comprise check and correction mouldType imports module 1, nc program imports module 2, check and correction modeling rendering module 3, check and correction environment configurationsModule 4, nc program type configuration module 5, cutter geometric center point position generation module 6, cutter shaftDirection vector generation module 7, simulation cutter geometric center point drafting module 8, simulation generating tool axis vector direction are drawnModule 9, geometric properties distance-measurement module 10, geometric properties Angle Measurement Module 11, nc programCollation determination module 12.
Check and correction modeling rendering module 3 will comprise the three-dimensional of the information such as geometric properties, dimensional tolerance, form and position tolerance(as shown in Figure 3, three-dimensional check and correction model is that press corrector is according to drawing oneself establishment or from design to check and correction modelThe theoretical model that personnel there obtains. ) being sent to check and correction model importing module 1, check and correction model imports module 1Three-dimensional is proofreaded to model and import to CAD program, and check and correction model is sent to respectively to geometric properties range measurementModule 10 and geometric properties Angle Measurement Module 11, nc program imports module 2 by numerically controlled machining programmeOrder imports to CAD program, and nc program is sent to cutter geometric center point position generation module 6With generating tool axis vector direction generation module 7, check and correction environment configurations module 4 by proof-reading layer is set and set up withThe check and correction coordinate system that nc program orientation is consistent completes the configuration of check and correction environment, and will proofread environment configurationsInformation is sent to simulation cutter geometric center point drafting module 8 and simulation generating tool axis vector direction drafting module 9, numberControl procedure type configuration module 5 by installation surface to lathe and the Program Type of the form that specifically links completeThe configuration of nc program type, and nc program type is sent to cutter geometric center point positionGeneration module 6 and generating tool axis vector direction generation module 7, cutter geometric center point position generation module 6 and cutter shaftDirection vector generation module 7 is according to 3~5 axial coordinate letters in nc program type and nc programBreath, generates cutter geometric center point position by the resolving inversely algorithm of nc program and central track of cutterPut information and generating tool axis vector directional information, and it is sent to respectively to simulation cutter geometric center point drafting module 8With simulation generating tool axis vector direction drafting module 9, simulation cutter geometric center point drafting module 8 and simulation cutter shaft are vowedAmount direction drafting module 9 completes simulation cutter geometric center point with the drafting of simulation generating tool axis vector direction and by itInformation is sent to geometric properties distance-measurement module 10 and geometric properties Angle Measurement Module 11, geometric properties distanceFrom measurement module 10 and geometric properties Angle Measurement Module 11 in CAD program to simulation center cutter pointPut and proofread measurement and the simulation generating tool axis vector direction and check and correction mould of the range deviation between model geometric featureAngular deviation between type geometric properties, and measurement result is sent to the judgement of nc program collationModule 12 draws check and correction conclusion.
Check and correction environment configurations module 4 comprises proof-reading layer configuration submodule and check and correction coordinate system configuration submodule,Proof-reading layer configuration submodule is for arranging working lining sequence number and the proof-reading number of plies at check and correction task placeAmount, and proofread required whole working lining sequence numbers must not with the element place working lining sequence number designing a modelIdentical, check and correction coordinate system configuration submodule is for arranging the coordinate system orientation that check and correction task is used, its coordinateBe that initial point must be that initial point overlaps with the machining coordinate of numerical control program, each change in coordinate axis direction must and numerical control programMachining coordinate be each direction of principal axis corresponding coincidence respectively.
Nc program type configuration module 5 is for configuring nc program type, and its type comprises 3Axis linkage numerical control program, 4 axis linkage numerical control programs, 5 axle location processing numerical control program and 5 axis linkage numerical control journeysOrder, the subtype of 5 axle location processing numerical control programs and 5 axis linkage numerical control programs comprises Orthogonal Double yaw numerical control journeyOrder, Orthogonal Double turntable numerical control program, orthogonal yaw-turntable numerical control program, the numerical control of nonopiate yaw-turntableProgram, 5 axial vector programming mode numerical control programs.
Cutter geometric center point position generation module 6 is according in nc program type and nc programEach reference axis positional information generates the D coordinates value (x, y, z) of cutter geometric center point position, and wherein 3Axis linkage numerical control program, the cutter geometric center point position of 4 axis linkage numerical control programs and 5 axis linkage numerical control programsD coordinates value (x, y, z) and nc program in the coordinate figure (x, y, z) of each linear movement axleIdentical, the D coordinates value of the cutter geometric center point position of 5 axles location processing numerical control programs (x, y,Z) must be according to the space angle value of plane of orientation in the subtype of nc program and nc program(A, B, C), and solve by resolving inversely algorithm.
Generating tool axis vector direction generation module 7 is according to each coordinate in nc program type and nc programThe three-dimensional vector (i, j, k) of shaft position Information generation generating tool axis vector, its each component i, j, k represent respectively this threeDimensional vector in Cartesian coordinates with respect to X, Y, the projection components value of tri-axles of Z, and i, j, the number of kValue must meet normative requirement, that is:The wherein cutter shaft in 3 axis linkage numerical control programsDirection vector is edge+Zm axle all the time, and the three-dimensional vector value of generating tool axis vector is always (0,0,1); All the other classesThe three-dimensional vector value (i, j, k) of the generating tool axis vector of type nc program must be according to its subtype and numerical controlIn procedure, respectively rotatablely move i.e. (A, B) combination of coordinate figure of axle or (A, C) combination or (B,C) anglec of rotation of combination, and solve by resolving inversely algorithm.
Resolving inversely algorithm is that the mapping relations between three-dimensional vector and numerical control program rotating shaft coordinate figure solve calculationMethod, this algorithm, according to the rotating shaft coordinate figure of numerical control program, will specify vector according to first anglec of rotation C, thenAnglec of rotation B, the order of last anglec of rotation A is rotated, if do not contain in the coordinate figure of the axle that rotatablely movesCertain 1 or certain 2 angle, assert that this angle value is 0, and solution procedure adopts three-dimensional geometry transformation matrixCalculate postrotational coordinate figure. Wherein (a) is the transformation matrix of coordinates rotating around X-axis, is (b) around YThe transformation matrix of coordinates of axle rotation, (c) is the transformation matrix of coordinates rotating around Z axis, is (d) resolving inverselyThe composite rotating matrix of three-dimensional geometry conversion in algorithm.
R X = 1 0 0 0 0 cos &alpha; - sin &alpha; 0 0 sin &alpha; cos &alpha; 0 0 0 0 0 - - - ( a ) R Y = cos &beta; 0 sin &beta; 0 0 1 0 0 - sin &beta; 0 cos &beta; 0 0 0 0 1 - - - ( b ) R Z = cos &gamma; - sin &gamma; 0 0 sin &gamma; cos &gamma; 0 0 0 0 1 0 0 0 0 1 - - - ( c )
T R = R X R Y R Z = cos &gamma; cos &beta; cos &gamma; sin &beta; sin &alpha; - sin &gamma; cos &alpha; cos &gamma; sin &beta; cos &alpha; + sin &gamma; sin &alpha; 0 sin &gamma; cos &beta; sin &gamma; sin &beta; sin &alpha; + cos &gamma; cos &alpha; sin &gamma; sin &beta; cos &alpha; - cos &gamma; sin &alpha; 0 - sin &beta; cos &beta; sin &alpha; cos &beta; cos &alpha; 0 0 0 0 1 - - - ( d )
In above formula, α, β, γ represent respectively the anglec of rotation of three-dimensional vector around X-axis, Y-axis, Z axis; Rx、Ry、RzRepresent respectively the three-dimensional geometry transformation matrix of three-dimensional vector around X-axis, Y-axis, Z axis rotation; TRRepresent three-dimensionalThe three-dimensional geometry transformation matrix that vector rotates around X-axis, Y-axis and Z axis continuously.
In the simulation cutter geometric center point drafting module 8 proof-reading layers in setting and check and correction coordinate system environment,Show by drawing the three-dimensional coordinate point (x, y, z) of being sent into by cutter geometric center point position generation module 6Levy cutter geometric center point position.
In the simulation generating tool axis vector direction drafting module 9 proof-reading layers in setting and check and correction coordinate system environment,By drawing taking cutter geometric center point as starting point, the cutter shaft of sending into generating tool axis vector direction generation module 7 is vowedThe three-dimensional vector (i, j, k) of amount is direction, and the directed line segment that length is 100mm characterizes cutter shaft arrowAmount direction. It should be noted that, 100mm herein, without particular/special requirement, can be random length, in order to uniteOne tolerance, processes according to 100mm in this example.
Geometric properties distance-measurement module 10 is by measuring how much of the targets of cutter geometric center point and check and correction modelFeature judges as the distance between point, line, surface whether nc program meets the requirements, and judges that precision is 0.001mm。
Geometric properties Angle Measurement Module 11 is special with the target geometry of check and correction model by measuring generating tool axis vector directionLevy as the angle between line, face, method arrow to judge whether nc program meets the requirements, judge that precision is0.001 degree.
Below in conjunction with instantiation, implementation method of the present invention is described, implementation method flow chart as shown in Figure 2.
One, check and correction model imports module 1 and three-dimensional is proofreaded to model imports in CAD program, and check and correction model is paintedMolding piece 3 drawing three-dimensional check and correction models, three-dimensional check and correction model as shown in Figure 3.
Two, proof-reading environment configurations module 4 configures the environment of proof-reading. Comprise proof-reading layer is setThe quantity of sequence number, proof-reading layer, arranges check and correction coordinate system, and must meet check and correction coordinate origin withThe machining coordinate of numerical control program is that initial point overlaps, the processing of the check and correction each change in coordinate axis direction of coordinate system and numerical control programThe each direction of principal axis of coordinate system is corresponding coincidence respectively. Initial check and correction coordinate system, as shown in Fig. 4 (a), is proofreaded coordinateSystem does not overlap with machining coordinate system, need adjust, and the check and correction coordinate system after adjusting is as Fig. 4 (b) instituteShow, check and correction coordinate system overlaps completely with machining coordinate system.
Three, nc program type configuration module 5 configures nc program type. Its type comprises 3Axis linkage numerical control program, 4 axis linkage numerical control programs, Orthogonal Double yaw numerical control program, Orthogonal Double turntable numerical control journeyOrder, orthogonal yaw-turntable numerical control program, nonopiate yaw-turntable numerical control program. Numerical control journey in this exampleOrder is Orthogonal Double yaw numerical control program.
Four, according to the Program Type (Orthogonal Double yaw numerical control program) of the 3rd step configuration, will there is same typeNc program import in CAD program.
Five, the Program Type (Orthogonal Double yaw numerical control program) configuring according to the 3rd step and the 4th step importNc program, by the resolving inversely algorithm automatic calculation of cutter geometric center point position generation module 6The cutter geometric center point position of everywhere tracing point in nc program.
Six, the Program Type (Orthogonal Double yaw numerical control program) configuring according to the 3rd step and the 4th step importNc program, adds by the resolving inversely algorithm automatic calculation numerical control of generating tool axis vector direction generation module 7The generating tool axis vector direction of everywhere tracing point in engineering order. The flow process of resolving inversely algorithm as shown in Figure 5, is askedThe three-dimensional geometry rotation transformation matrix using in solution is described above.
Seven, according to the solving result of the 5th step, in the proof-reading environment of second step configuration, by simulationCutter geometric center point drafting module 8 is drawn the cutter geometric center point position of everywhere tracing point, and with threeDimension coordinate point characterizes cutter geometric center point position.
Eight, according to the solving result of the 6th step, in the proof-reading environment of second step configuration, by simulationGenerating tool axis vector direction drafting module 9 is drawn the generating tool axis vector direction of everywhere tracing point, and with in how much, cutterHeart point is starting point, and the three-dimensional vector of generating tool axis vector is direction, and the directed line segment that length is 100mm characterizes cutterAxial vector direction. The track of simulation center cutter as shown in Figure 6.
Nine, according to cutter position of cusp and cutter shaft line segment on each tracing point of drawing, to nc programReasonability carry out macroscopic view judgement (for example 5-shaft linkage numerical control program require generating tool axis vector direction continuous uniform to becomeChange), if preliminary determining program rationally enters the tenth step, otherwise remodify after program, return to the 3rd step.As shown in Fig. 7 (a), in the corner of threedimensional model, generating tool axis vector direction presents non-uniform change, is not inconsistentClose processing request, this program is check and correction again after must revising. As shown in Fig. 7 (b), through amended journeyOrder, in corner's continuous and even variation of model, meets processing request.
Ten, in the proof-reading environment of second step configuration, measure by geometric properties distance-measurement module 10Distance between the target geometric properties of the cutter geometric center point position that the 7th step is drawn and check and correction model is sentencedWhether determine nc program and meet the requirements, judge that precision is 0.001mm, in this example, measuring distance value is0.000259mm, is less than 0.001mm, meets check and correction required precision, as shown in Fig. 8 (a).
11, in the proof-reading environment of second step configuration, survey by geometric properties Angle Measurement Module 11Angle between the target geometric properties of the generating tool axis vector direction that flow control eight steps are drawn and check and correction model is judged numberWhether control procedure meets the requirements, and judges that precision is 0.001 degree, generating tool axis vector direction and check and correction in this exampleModel angle is 0.000027 degree, when being less than < 0.001 and spending, meets check and correction required precision. As Fig. 8 (b)Shown in.
12, each data in tracing point are measured, according to the measurement result of the tenth step and the 11 step,Nc program collation determination module 12 can judge whether nc program meets the requirements. In this example,The measurement result of all tracing points all meets check and correction required precision, and this nc program meets check and correction requirement,Complete check and correction flow process. Check and correction flow process as shown in Figure 9.
The unspecified part of the present invention belongs to general knowledge as well known to those skilled in the art.

Claims (7)

1. a numerical control program critique system of simulating central track of cutter, is characterized in that: comprise check and correction mouldType imports module (1), nc program imports module (2), check and correction modeling rendering module (3), check and correctionEnvironment configurations module (4), nc program type configuration module (5), the life of cutter geometric center point positionBecome module (6), generating tool axis vector direction generation module (7), simulation cutter geometric center point drafting module (8),Simulation generating tool axis vector direction drafting module (9), geometric properties distance-measurement module (10), geometric properties angleMeasurement module (11), nc program collation determination module (12);
Check and correction model importing module (1) is proofreaded model by three-dimensional and is imported to CAD program, and three-dimensional is proofreadedModel is sent to check and correction modeling rendering module (3);
Check and correction modeling rendering module (3) completes the drafting of three-dimensional check and correction model, and three-dimensional is proofreaded to model respectivelyBe sent to geometric properties distance-measurement module (10) and geometric properties Angle Measurement Module (11);
Nc program imports module (2) nc program is imported to CAD program, and by numerical controlProcedure is sent to cutter geometric center point position generation module (6) and generating tool axis vector direction generation module (7);
Check and correction environment configurations module (4) is by arranging proof-reading layer and setting up and nc program orientation oneThe check and correction coordinate system causing completes the configuration of check and correction environment, and check and correction environment configurations information is sent to simulation cutterGeometric center point drafting module (8) and simulation generating tool axis vector direction drafting module (9);
Nc program type configuration module (5) by installation surface to lathe and the program of the form that specifically linksType completes the configuration of nc program type, and the nc program type of configuration is sent to cutterGeometric center point position generation module (6) and generating tool axis vector direction generation module (7);
Cutter geometric center point position generation module (6) and generating tool axis vector direction generation module (7) are according to connecingCoordinate information in nc program type and the nc program of receiving, generates respectively cutter geometric centerDot position information and generating tool axis vector directional information, and it is sent to respectively to simulation cutter geometric center point-renderingModule (8) and simulation generating tool axis vector direction drafting module (9);
Simulation cutter geometric center point drafting module (8) and simulation generating tool axis vector direction drafting module (9) are completeBecome the drafting of simulation cutter geometric center point and simulation generating tool axis vector direction and its information is sent to geometric propertiesDistance-measurement module (10) and geometric properties Angle Measurement Module (11);
Geometric properties distance-measurement module (10) and geometric properties Angle Measurement Module (11) are in CAD programIn to simulation center cutter point position and measurement and the simulation of proofreading the range deviation between model geometric featureAngular deviation between generating tool axis vector direction and check and correction model geometric feature, and measurement result is sent to numerical controlProcedure collation determination module (12) draws check and correction conclusion.
2. a kind of numerical control program critique system of simulating central track of cutter according to claim 1, itsBe characterised in that: described check and correction environment configurations module (4) comprises proof-reading layer configuration module and check and correction coordinateBe configuration module, proof-reading layer configuration module is for arranging working lining sequence number and the school at check and correction task placeTo working lining quantity, and proofread required whole working lining sequence numbers must not with the element place work designing a modelMake layer sequence number, for example identical, check and correction coordinate system configuration module is used for arranging the coordinate system orientation that check and correction task is used,Its coordinate origin must be that initial point overlaps with the machining coordinate of numerical control program, each change in coordinate axis direction must with numberThe machining coordinate of control program is each direction of principal axis corresponding coincidence respectively.
3. a kind of numerical control program critique system of simulating central track of cutter according to claim 1, itsBe characterised in that: the nc program type bag of described nc program type configuration module (5) configurationDraw together 3 axis linkage numerical control programs, 4 axis linkage numerical control programs, 5 axle location processing numerical control programs and 5 axles interlock numberControl program, the subtype of 5 axle location processing numerical control programs and 5 axis linkage numerical control programs comprises Orthogonal Double yaw numberControl program, Orthogonal Double turntable numerical control program, orthogonal yaw-turntable numerical control program, nonopiate yaw-turntableNumerical control program, 5 axial vector programming mode numerical control programs.
4. a kind of numerical control program critique system of simulating central track of cutter according to claim 1, itsBe characterised in that: described cutter geometric center point position generation module (6) according to nc program type andIn nc program, coordinate information generates the D coordinates value (x, y, z) of cutter geometric center point position,Wherein 3 axis linkage numerical control programs, the cutter geometric center of 4 axis linkage numerical control programs and 5 axis linkage numerical control programsThe coordinate figure of each linear movement axle in the D coordinates value (x, y, z) of some position and nc program (x,Y, z) identical, the D coordinates value of the cutter geometric center point position of 5 axles location processing numerical control programs (x,Y, z) according to the space angle value of plane of orientation in the subtype of nc program and nc program (A,B, C), and solve by resolving inversely algorithm.
5. a kind of numerical control program critique system of simulating central track of cutter according to claim 1, itsBe characterised in that: described generating tool axis vector direction generation module (7) adds according to nc program type and numerical controlIn engineering order, coordinate information generates the three-dimensional vector (i, j, k) of generating tool axis vector, its each component i, and j, k is generation respectivelyShow this three-dimensional vector in Cartesian coordinates with respect to X, Y, the projection components value of tri-axles of Z, and i, j,The numerical value of k must meet normative requirement, that is:Wherein in 3 axis linkage numerical control programsGenerating tool axis vector direction edge+Zm axle all the time, the three-dimensional vector value of generating tool axis vector is always (0,0,1);The three-dimensional vector value (i, j, k) of the generating tool axis vector of all the other type nc programs must be according to its subtypeWith i.e. (A, the B) combination of the coordinate figure of each rotating shaft in nc program or (A, C) combination or (B,C) anglec of rotation of combination, and solve by resolving inversely algorithm.
6. according to a kind of numerical control program critique system of simulating central track of cutter described in claim 4 or 5,It is characterized in that: described resolving inversely algorithm is between three-dimensional vector and numerical control program rotating shaft coordinate figureMapping relations derivation algorithm, this algorithm, according to the rotating shaft coordinate figure of numerical control program, will specify vector according to elder generationAnglec of rotation C, then anglec of rotation B, the order of last anglec of rotation A is rotated, if rotatablely move axleCoordinate figure in containing certain 1 or certain 2 angle, assert that this angle value is 0, solution procedure adopts three-dimensionalGeometric transformation calculates postrotational coordinate figure.
7. a numerical control program proofreading method of simulating central track of cutter, is characterized in that passing through following stepsRealize:
The first step, proofreads model by three-dimensional and imports in CAD program, and draw;
Second step, the environment of configuration proof-reading; Comprise sequence number, proof-reading that proof-reading layer is setThe quantity of layer, arranges check and correction coordinate system, and must meet the work area that adds of check and correction coordinate origin and numerical control programMark is that initial point overlaps, and the machining coordinate of the check and correction each change in coordinate axis direction of coordinate system and numerical control program is that each direction of principal axis dividesNot corresponding coincidence;
The 3rd step, configuration nc program type; Its type comprises 3 axis linkage numerical control programs, 4 axle interlocksNumerical control program, 5 axle location processing numerical control program and 5 axis linkage numerical control programs, 5 axle location processing numerical control programsWith the subtype of 5 axis linkage numerical control programs comprise Orthogonal Double yaw numerical control program, Orthogonal Double turntable numerical control program,Orthogonal yaw-turntable numerical control program, nonopiate yaw-turntable numerical control program;
The 4th step, according to the Program Type of the 3rd step configuration, imports to CAD by corresponding nc programIn program;
The 5th step, according to the nc program of the Program Type of the 3rd step configuration and the importing of the 4th step, solvesThe cutter geometric center point position of everywhere tracing point in nc program;
The 6th step, according to the nc program of the Program Type of the 3rd step configuration and the importing of the 4th step, solvesThe generating tool axis vector direction of everywhere tracing point in nc program;
The 7th step according to the solving result of the 5th step, is drawn every in the proof-reading environment of second step configurationThe cutter geometric center point position of one place's tracing point, and characterize cutter geometric center point position with three-dimensional coordinate point;
The 8th step according to the solving result of the 6th step, is drawn every in the proof-reading environment of second step configurationThe generating tool axis vector direction of one place's tracing point, and taking cutter geometric center point as starting point, the three-dimensional of generating tool axis vector toAmount is direction, and the directed line segment that length is 100mm characterizes generating tool axis vector direction;
The 9th step, according to cutter position of cusp and cutter shaft line segment on each tracing point of drawing, to digital control processingThe reasonability of program is carried out macroscopic view judgement, if preliminary determining program rationally enters the tenth step, otherwise again repaiiesChange after program, return to the 3rd step;
The tenth step, in the proof-reading environment of second step configuration, measures in the cutter geometry of the 7th step draftingThe target geometric properties of heart point position and check and correction model is judged digital control processing as the distance between point, line, surfaceWhether program meets the requirements, and judges that precision is 0.001mm,, in the time of distance L EssT.LTssT.LT 0.001mm, meets check and correctionRequired precision;
The 11 step, in the proof-reading environment of second step configuration, measures the generating tool axis vector that the 8th step is drawnThe target geometric properties of direction and check and correction model is judged numerically controlled machining programme as line, face, the method angle between vowingWhether order meets the requirements, and judges that precision is 0.001 degree,, in the time that angle < 0.001 spends, meets check and correction precisionRequirement;
The 12 step, according to the measurement result of the tenth step and the 11 step, judges whether nc program meetsRequirement, if the measurement result of all tracing points all meets check and correction required precision, this nc program meetsCheck and correction requirement, otherwise remodify after program, the 3rd step returned to.
CN201110012443.9A 2011-08-26 2011-08-26 A kind of numerical control program critique system and method for simulating central track of cutter Expired - Fee Related CN106134469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110012443.9A CN106134469B (en) 2011-08-26 2011-08-26 A kind of numerical control program critique system and method for simulating central track of cutter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110012443.9A CN106134469B (en) 2011-08-26 2011-08-26 A kind of numerical control program critique system and method for simulating central track of cutter

Publications (1)

Publication Number Publication Date
CN106134469B true CN106134469B (en) 2013-11-27

Family

ID=57251106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110012443.9A Expired - Fee Related CN106134469B (en) 2011-08-26 2011-08-26 A kind of numerical control program critique system and method for simulating central track of cutter

Country Status (1)

Country Link
CN (1) CN106134469B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110325932A (en) * 2017-02-22 2019-10-11 三菱电机株式会社 For simulating the mach system and method to workpiece
CN113554757A (en) * 2021-07-01 2021-10-26 新疆大学 Three-dimensional reconstruction method and system for workpiece track based on digital twinning
CN114707274A (en) * 2022-04-13 2022-07-05 中国科学院长春光学精密机械与物理研究所 Method for calculating working space of rotating shaft non-coplanar hinge

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110325932A (en) * 2017-02-22 2019-10-11 三菱电机株式会社 For simulating the mach system and method to workpiece
CN113554757A (en) * 2021-07-01 2021-10-26 新疆大学 Three-dimensional reconstruction method and system for workpiece track based on digital twinning
CN114707274A (en) * 2022-04-13 2022-07-05 中国科学院长春光学精密机械与物理研究所 Method for calculating working space of rotating shaft non-coplanar hinge
CN114707274B (en) * 2022-04-13 2023-08-29 中国科学院长春光学精密机械与物理研究所 Calculation method for working space of rotating shaft non-coplanar hinge

Similar Documents

Publication Publication Date Title
Wu et al. Machining accuracy improvement of non-orthogonal five-axis machine tools by a new iterative compensation methodology based on the relative motion constraint equation
CN204575030U (en) Three-dimensional laser automatically scanning measuring system
CN106078359B (en) A kind of zero definition of more main shaft drilling building-block machines of planer-type and scaling method
CN104050316B (en) Analysis method on basis of distribution characteristics of space machining error of numerical control machine tool
CN104460515B (en) One kind is based on the axle tool length compensation method of postpositive disposal five
CN106292545B (en) Utilize the method for macroprogram numerical control processing Cylinder Surface
CN104156519A (en) Method for designing geometric accuracy of multi-axis numerical control machine tool to improve processing accuracy and reliability
CN105643619B (en) A kind of industrial robot instrument posture control method of use framework description
CN101968344A (en) On-line three-dimensional shape-surface detection system for numerical control machining centre
CN101413793A (en) Method for assessing composite space type face geometric error
CN101702087A (en) Reverse method based on CAD model modification and measurement path planning
CN106134469B (en) A kind of numerical control program critique system and method for simulating central track of cutter
CN102930105B (en) Accurate modeling method for worm gear
Wang et al. Design and implementation of five-axis transformation function in CNC system
CN107066726B (en) Numerical control machine tool rotating shaft perpendicularity error modeling method
Mir et al. Tool path error prediction of a five-axis machine tool with geometric errors
Gao et al. Design and research on caddcam system of plane based on nc machining technology
CN106959667A (en) A kind of lathe translation shaft error of perpendicularity modeling method
CN106914896A (en) A kind of construction method of robot off-line programming
CN113804121B (en) Real-time measuring method and measuring system for profiles of multiple workpieces
CN103838182B (en) Numerical Control Programming householder method
CN102566509A (en) Envelope theory-based universal cutter scanning body generating method in numerically controlled processing simulation process
Legge Integration of design and inspection systems-a literature review
CN109483234A (en) A kind of intelligent manufacturing system and method based on mobile robot
Lei et al. A STEP-NC compatible on-machine measurement system with automated correlation of inspection data

Legal Events

Date Code Title Description
GR03 Grant of secret patent right
GRSP Grant of secret patent right
DC01 Secret patent status has been lifted
DCSP Declassification of secret patent
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131127

CF01 Termination of patent right due to non-payment of annual fee