A kind of method based on two dimension graph paper parameterization processing object
Technical field
The present invention relates to parametrization manufacture field, especially design a kind of right based on two dimension graph paper parameterization processing
The method of elephant.
Background technology
In field of machining, numerically-controlled machine tool system is to be processed according to the X-Y scheme of user's input.
The most virtually higher to the input requirements of user.Processing for planar graph, user perhaps can be given
Comparatively ideal figure.For more complicated solid figure processing, as require processing for ellipsoid, use
The figure that family is inputted may not be the figure that user really wants.So will necessarily produce user's input
Figure and the error of the figure processed accordingly, also increase the degree of difficulty of user's input.
Chinese patent (CN 104698980 A) discloses the numerical control vertical lathe parametrization of a kind of feature based
Processing control method, described processing control method includes: step S11, and prepackage is used for processing product to be processed
The non-parameterized standard loop module of product and for defining the global variable definition module of machined parameters;Step
S12, determines the feature machining region in processed product;Step S13, selected characteristic machining area
A certain feature, determines the geometric parameter of the feature chosen;Step S14, determines the cutting of the feature chosen
Parameter;Step S15, selects and the selected mark corresponding to feature in non-parameterized standard loop module
Quasi-cyclic program unit, the geometric parameter of input feature vector and cutting parameter, generate for selected feature
Processor, complete the processing of selected feature;Repeat step S13 to step S15, until
Complete the processing of all features in feature machining region.This patent needs user to be manually entered processed product
Geometric parameter thus converted products, loaded down with trivial details trouble.And be manually entered parameter and mistake easily occurs, cause
The product defect ware processed is more, increases the production cost of producer.
Summary of the invention
For the deficiency of prior art, the present invention provides a kind of based on two dimension graph paper parameterization processing object
Method, it is characterised in that the method for described parametrization processing object includes:
The graph data of at least one two dimension drawing is read in the way of reading pel;
The data base including at least one model is set up based on described pel and dependent coordinate;
The characteristic parameter of the model to be processed that calibration is obtained by the model parameter inputted and Model Matching;
Store the parameter of described model to be processed and process described object to be processed according to described parameter.
According to a preferred implementation, described foundation based on described pel and dependent coordinate includes at least one
The method of the data base of individual model includes:
It is at least one first processing model based on coordinate system by least one meta graph recognition;
The model parameter inputted by outside is stored in the way of mapping respectively with model to be processed;
The second processing model is formed based on model to be processed and at least one model parameter;
Store the second processing model to model database.
According to a preferred implementation, the mode of described reading pel includes:
Direction signs based on drawings marked set up the three-dimensional system of coordinate of only table diagram unit position;
With coordinate or function labelling primitive shapes and/or position;
Revise shape and the position coordinates of pel.
According to a preferred implementation, the method for described parametrization processing object includes:
Add up each pel be combined with each other combined probability together and store at probability database;
The meta graph recognition abnormal to described combined probability sends early warning.
According to a preferred implementation, the method for described parametrization processing object includes:
Characteristic parameter based on described model to be processed determines the feature machining region of object to be processed;
Material based on object to be processed, the stage property information used and characteristic parameter determine cutting of feature
Cut parameter;
Generate based on input characteristic parameter and cutting parameter and be used for the processor of selected feature to add
Work object to be processed.
According to a preferred implementation, the method for described parametrization processing object includes:
Calculate each toroidal function of the model to be processed that described pel is formed;
Described toroidal function is converted to the mechanical axis coordinates of motion mated with processing unit (plant).
According to a preferred implementation, the direction signs of described drawing include radially identifying, laterally marking
Knowledge, coordinates logo and proportional marking.
According to a preferred implementation, described data base also includes the type according to pel and coordinates regional
Classification stores the graphic unit database of described pel.
The present invention also provides for a kind of device based on two dimension graph paper parameterization processing object, it is characterised in that
Machining cell is controlled including figure input block, Database Unit, alignment unit, memory element, PLC,
Described figure input block reads the figure figurate number of at least one two dimension drawing in the way of reading pel
According to;
At least one model that the storage of described Database Unit is set up based on described pel and dependent coordinate;
The model to be processed that the calibration of described alignment unit is obtained by the model parameter inputted and Model Matching
Characteristic parameter;
Described memory element stores the parameter of described model to be processed and makes described PLC control machining cell
Described object to be processed is processed according to described parameter.
According to a preferred implementation, described device also includes processing model signal generating unit, processing model
Signal generating unit includes the first acquiring unit, second acquisition unit, the 3rd acquiring unit and the first creating unit,
At least one meta graph recognition is that at least one first adds based on coordinate system by described first acquiring unit
Work model;
Described second acquisition unit obtains the model parameter inputted by outside;
Described 3rd acquiring unit obtains model parameter to be processed;
Described second acquisition unit and described 3rd acquiring unit by the model parameter inputted by outside with treat
Processing model parameter stores in the way of mapping respectively;
Described first creating unit creates the second processing based on model to be processed and at least one model parameter
Model;
Store the second processing model to Database Unit.
The Advantageous Effects of the present invention:
The present invention provides a kind of method based on two dimension graph paper parameterization processing object, is directly obtained by drawing
The machined parameters obtaining object to be processed became with converted products, simple and fast, accuracy rate height, the time that saves
Basis and fault rate.The processing model obtained is calibrated by the present invention, so that the spy of described processing model
Levy parameter more accurate, obtain processing object on all four with drawing.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method based on two dimension graph paper parameterization processing object of the present invention;
Fig. 2 is the schematic diagram of the present invention a kind of calculating machine axial coordinate;
Fig. 3 is the schematic flow sheet that the present invention completes the processing of selected feature;
Fig. 4 is the schematic flow sheet of the device based on two dimension graph paper parameterization processing object of the present invention;With
Fig. 5 is processing model signal generating unit schematic diagram of the present invention.
Detailed description of the invention
It is described in detail below in conjunction with the accompanying drawings.
Pel in the present invention is the point, line, surface in the elementary cell of composition diagram picture, such as threedimensional model
Etc. the minimum grapheme that can edit.
As it is shown in figure 1, the present invention provides a kind of method based on two dimension graph paper parameterization processing object, side
Method includes: read the graph data of at least one two dimension drawing in the way of reading pel;
The data base including at least one model is set up based on described pel and dependent coordinate;
The characteristic parameter of the model to be processed that calibration is obtained by the model parameter inputted and Model Matching;
Store the parameter of described model to be processed and process described object to be processed according to described parameter.
Embodiment one
Scan figure, direction signs and other special identifier on first two-dimentional drawing.Determine X-Y scheme
The direction signs of paper, including radially identifying, laterally identifying and coordinates logo.Three are set up according to direction signs
Dimension space coordinate system.The figure of two dimension drawing is divided into some pels.Use coordinate or functional equation note
Record place area of space, shape and the particular location of each pel.Store the data letter of each pel
Breath is to graphic unit database.Data base also includes that the type according to pel and coordinates regional classification store pel
Graphic unit database.
Read figure, direction signs and other special identifier on second two-dimentional drawing.If second figure
Paper and first drawing belong to approximately the same plane, and figure is drawn with same ratio, then use same three-dimensional
The place area of space of pel on the coordinate of coordinate system or second drawing of functional equation record, shape and
Particular location.If second drawing and first drawing belong to different planes, by pel according to corresponding
The coordinate of coordinates regional or functional equation record.Other two-dimentional drawing uses identical mode to read.
The data base including at least one model is set up based on pel and dependent coordinate.Data base includes pel
Data base, model database, model parameter table and processing model parameter list.Same model will be belonged to
At least one pel is combined as the first processing model in same three-dimensional system of coordinate.Obtain outside input
Model parameter stores in the way of mapping respectively with model to be processed.Will the model of outside input store to
In model parameter table.The processing model parameter list of the model parameter in model parameter table and model to be processed is deposited
In the relation mapped.
In processing model parameter list, obtain the corresponding multiple model parameters of modeling parameters information include: obtain
Mapping relations between modeling parameters group in processing model parameter list;Join at processing model according to mapping relations
Number table determines the model parameter group that the model parameter of outside input is corresponding;And obtain the mould of outside input
The model parameter group that shape parameter is corresponding.
Further, create the second processing model according to the model parameter got to include: obtain model ginseng
The first parameter item in array, wherein, the first parameter item is the parameter in model parameter group;Obtain and the
Corresponding first parameter item the first parameter of one parameter item, wherein, first parameter item the first parameter is the first ginseng
Several parameters;And create the second processing model according to first parameter item the first parameter.
After obtaining the second processing model, add up each pel and be combined with each other combined probability together and store up
Deposit at probability database.The meta graph recognition abnormal to combined probability sends early warning.Add up each pel mutual
Combined combined probability together.And combined probability is divided into different brackets according to height.Such as,
The combined probability meta graph recognition less than 1% is labeled as unusual combination.Statistics forms the first processing model
The probability of each meta graph recognition, provides alert to the meta graph recognition of unusual combination.Remind user's manual confirmation
The correctness of meta graph recognition, to avoid slipping up due to the coordinate of pel forming the first processing model of mistake.
Second processing model is model to be processed.Device is previously stored with the logical data of model to be processed
Storehouse.After model to be processed is formed, calibrate the characteristic parameter of model to be processed according to logical data base.Meter
Whether the position of each characteristic parameter and figure of calculating model to be processed meets the rule of logical data.Right
Calibrate in the characteristic parameter not meeting logical laws.Or, for each figure in model to be processed
The coordinate of unit is recalibrated.Add up the characteristic parameter table that should be formed after model to be processed is formed.Root
Characteristic parameter according to characteristic parameter table comparison model to be processed.The feature of error will be there is with characteristic parameter table
Parametric calibration is corrected.If finding the error of the sample characteristics parameter that characteristic parameter is corresponding with characteristic parameter table
Outside normal range of error, first calculate whether characteristic parameter meets the rule of logical data.If
Do not meet the rule of logical data, then send early warning, by the characteristic parameter of manual correction mistake.Through school
The model to be processed of quasi-process, error rate is lower.
Store the parameter of model to be processed and process object to be processed according to parameter.Specifically, based on to be added
The characteristic parameter of work model determines the feature machining region of object to be processed.
The a certain feature of selected characteristic machining area, determines the characteristic parameter chosen according to drawing.
Specifically, after a certain feature of selected characteristic machining area, should extract first according to detail drawing
The driving geological information in feature machining region, determines the characteristic parameter chosen.
Calculate each toroidal function of the model to be processed that pel is formed;Toroidal function is converted to and processes
The mechanical axis coordinates of motion of device coupling.
Such as, as in figure 2 it is shown, the curved surface of model to be processed is sphere, coordinate transform formula is:
Due to for vertical projection,D point is A,Throwing on Z axis
Shadow
| O ' A ' |=r again, for the radius of object to be processed.Then
Obtain
In above-mentioned formula, x, y are to carry out the plane coordinates on center-biased post-treatment figure, and r is to be added
Work lens spherical radius, LQW refers to hold in the palm glasses bobbin axial length to be processed in lathe.
Material according to processed product, the tool-information used and the characteristic parameter chosen determine choosing
The cutting parameter of the feature taken.Specifically, in the present embodiment, the characteristic parameter by choosing determines cutter
Tool information;Tool-information at least includes tool type, tool characteristics parameter and tool sharpening mode etc..
Input external parameter i.e. input characteristic parameter and cutting parameter, generate adding for selected feature
Engineering sequence, completes the processing of selected feature.As it is shown on figure 3, complete the processing of selected feature
Specifically include following steps:
Step S21, introduces external parameter, i.e. introduces outside geometric parameter and cutting parameter;
Step S22, by the outside geometric parameter introduced and cutting parameter, calculates other several of feature
Data parameters needed for what size and formation cutter rail.
Step S23, above-mentioned each parameter utilizes above-mentioned each parameter to generate cutter rail cutting route.
Step S24, performs cutter rail cutting route, completes required machining.
It is modified or devises, if there is drawing after programming, the product that other feature structures are similar
Etc. the situation that practical production status can be caused to change, or have selected different cutter in process of production
Tool, different processing mode, different cutting outputs etc., can be directly to the (cutting of corresponding external parameter
Parameter) to modify, nc program just can be general, significantly reduces the work of programming personnel
Intensity, shortens the Operational preparation cycle.
Additionally, in the present embodiment, if the cutting parameter mistake of input or each parameter error of formation cutter rail
Time, it is additionally included in and generates the step carrying out reporting to the police when the processor of selected feature.So,
If being provided with the parameter of mistake in establishment or amendment program process or have input the tool-information of mistake,
Program has warning message in the process of implementation to be occurred, to remind programming personnel or machine operation personnel timely
Correct, it is to avoid the generation of produced on-site accident.
Embodiment two
The present embodiment also provides for a kind of device based on two dimension graph paper parameterization processing object, defeated including figure
Enter unit, Database Unit, coordinate transformation unit, alignment unit, memory element, PLC control processing
Unit.Figure input block reads the graph data of at least one two dimension drawing in the way of reading pel.
At least one model that Database Unit storage is set up based on pel and dependent coordinate.Alignment unit calibration by
The characteristic parameter of the model to be processed that the model parameter of input obtains with Model Matching.Memory element storage is treated
The parameter of processing model also makes PLC control machining cell to process object to be processed according to parameter.
According to a preferred implementation, device also includes coordinate transformation unit.Coordinate transformation unit based on
The direction signs of drawings marked set up the three-dimensional system of coordinate of only table diagram unit position, with coordinate or function mark
Note primitive shapes and/or position, and/or revise shape and the position coordinates of pel.
As shown in Figure 4, for the schematic diagram of device based on two dimension graph paper parameterization processing object of the present invention.
Figure, direction signs and other special marks on figure input block first two-dimentional drawing of scanning
Know.Determine the direction signs of two dimension drawing, including radially identifying, laterally identifying and coordinates logo.According to
Direction signs set up three-dimensional coordinate system.The figure of two dimension drawing is divided into some pels.Use and sit
Mark or functional equation record place area of space, shape and the particular location of each pel.Store each
The data message of individual pel is to the graphic unit database in Database Unit.Database Unit also includes according to figure
The type of unit and the graphic unit database of coordinates regional classification storage pel.
Figure input block reads figure, direction signs and other the special marks on second two-dimentional drawing
Know.If second drawing and first drawing belong to approximately the same plane, figure is drawn with same ratio, then
Use the place of pel on the coordinate of same three-dimensional system of coordinate or second drawing of functional equation record
Area of space, shape and particular location.If second drawing and first drawing belong to different planes,
By pel according to the coordinate of corresponding coordinates regional or functional equation record.Other two-dimentional drawing uses phase
Same mode reads.Coordinate transformation unit checks coordinate or the functional equation labelling of pel, revises and has by mistake
The labelling of difference, so that the labelling of pel is more accurate, reduces meta graph recognition and forms the error of figure the most afterwards.
The Database Unit including at least one model is set up based on pel and dependent coordinate.Database Unit
Including graphic unit database, model database, model parameter table and processing model parameter list.The present invention also wraps
Include model generation unit to be processed.As it is shown in figure 5, processing model signal generating unit includes: first obtains list
Unit 10, second acquisition unit the 20, the 3rd acquiring unit 30 and the first creating unit 40.
First acquiring unit 10, is used for obtaining model parameter table, and wherein, it is right that model parameter table is used for storing
Multiple modeling parameters that first processing model is corresponding, wherein, multiple modeling parameters are to the first processing model
The parameter being modeled, is stored in model parameter table after multiple modeling parameters are performed classification.
Preferably, the first acquiring unit 10 includes: first determines module, is used for determining the first processing mould
The type of the modeling parameters that type is corresponding;Processing module, for the type according to modeling parameters, to processing mould
Multiple modeling parameters that type is corresponding perform classification and process, and obtain multiple modeling parameters group;
First creation module, is used for creating model parameter table;And memory module, for by multiple modelings
Parameter group stores to model parameter table.
Second acquisition unit 20, for obtaining the processing model parameter information of outside input.
3rd acquiring unit 30, for obtaining the corresponding multiple moulds of modeling parameters information in model parameter table
Shape parameter.
Preferably, the 3rd acquiring unit 30 includes: the first acquisition module, is used for obtaining model parameter
Mapping relations between modeling parameters group in table;Second determines module, is used for according to mapping relations at model
Parameter list determines the modeling parameters group that the processing model parameter of outside input is corresponding;And second obtain mould
Block, for obtaining the model parameter group that the model parameter of outside input is corresponding.
First creating unit 40, creates the second processing model for the modeling parameters got.
Preferably, this first creating unit 40 includes: the 3rd acquisition module, is used for obtaining model parameter
The first parameter item in group, wherein, the first parameter item is the parameter in model parameter group;4th obtains mould
Block, for obtaining first parameter item first parameter corresponding with the first parameter item, wherein, the first parameter item
First parameter is the parameter of the first parameter item;And second creation module, for according to the first parameter item the
One parameter creates the second processing model.
The present embodiment obtains model parameter table by the first acquiring unit 10, and wherein, model parameter table is used
In multiple model parameters that storage is corresponding to the first processing model, wherein, multiple modeling parameters are to first
The parameter that processing model is modeled, is stored in model parameter table after multiple modeling parameters are performed classification
In.Second acquisition unit 20 obtains the processing model parameter information of outside input.3rd acquiring unit 30
The corresponding multiple modeling parameters of modeling parameters information are obtained in model parameter table.And first creating unit
40 modeling parameters got create the second processing model, solve in prior art based on existing processing
The modeling parameters of model is treated processing model and is carried out the problem that remodeling treatment effeciency is low.
After obtaining the second processing model, statistic unit is added up each pel and is combined with each other combination together
Probability also stores at probability database.The meta graph recognition abnormal to combined probability sends early warning.Statistics is each
Individual pel is combined with each other combined probability together.And combined probability is divided into the most equal according to height
Level.Such as, meta graph recognition combined probability being less than 1% is labeled as unusual combination.Statistics formation first
The probability of each meta graph recognition of processing model, provides alert to the meta graph recognition of unusual combination.Remind and use
The correctness of family manual confirmation meta graph recognition, to avoid slipping up due to the coordinate of pel forming the first of mistake
Processing model.
Second processing model is model to be processed.Database Unit is previously stored with patrolling of model to be processed
Collect data base.After model to be processed is formed, alignment unit calibrates model to be processed according to logical data base
Characteristic parameter.Whether alignment unit calculates the position of each characteristic parameter of model to be processed and figure
Meet the rule of logical data.Calibrate for not meeting the characteristic parameter of logical laws.Or, right
The coordinate of each pel in model to be processed is recalibrated.Adding up should after model to be processed is formed
The characteristic parameter table of this formation.Characteristic parameter according to characteristic parameter table comparison model to be processed.Will be with spy
Levy parameter list and there is the characteristic parameter calibration correction of error.If finding, characteristic parameter is right with characteristic parameter table
Whether the error of the sample characteristics parameter answered, outside normal range of error, first calculates characteristic parameter
Meet the rule of logical data.If not meeting the rule of logical data, then send early warning, by manual correction
The characteristic parameter of mistake.Through the model to be processed of calibration process, error rate is lower.
The parameter of memory element model to be processed also processes object to be processed according to parameter.Specifically, based on
The characteristic parameter of model to be processed determines the feature machining region of object to be processed.PLC controls machining cell
Object to be processed is processed according to parameter.PLC control machining cell according to the characteristic parameter of model to be processed with
And the cutting parameter formed, calculating machine axial coordinate parameter.PLC controls machining cell according to product to be processed
The material of product, the tool-information used and the characteristic parameter chosen determine the cutting ginseng of the feature chosen
Number.Specifically, in the present embodiment, the characteristic parameter by choosing determines tool-information.Tool-information
At least include tool type, tool characteristics parameter and tool sharpening mode etc..
PLC controls machining cell according to input external parameter i.e. input characteristic parameter and cutting parameter, generation
For the processor of selected feature, complete the processing of selected feature.Complete selected spy
The processing levied specifically includes following steps:
Step S21, introduces external parameter, i.e. introduces outside geometric parameter and cutting parameter;
Step S22, by the outside geometric parameter introduced and cutting parameter, calculates other several of feature
Data parameters needed for what size and formation cutter rail.
Step S23, above-mentioned each parameter utilizes above-mentioned each parameter to generate cutter rail cutting route.
Step S24, performs cutter rail cutting route, completes required machining.
PLC controls each step in machining cell monitoring processor, and gathers in production process
The pressure of model to be processed, temperature parameter and operating mode thereof.According to operating mode and material, the situation of cutting tool
Adjust pressure, temperature parameter is not so that the material of model to be processed deforms, thus reduces mould to be processed
Type error in the course of processing.
Specifically, PLC control machining cell includes:
Input arranges module, for selecting working cell on the touchscreen, compiles each working cell
Number, it is simultaneously setting position, each working cell key point according to number order, wherein position key point bag
Include two or more location point;.Fieldbus module, for each job note of real-time collecting
The status information of unit and/or solicited message send it to PLC, wherein status information includes current
Location point, solicited message includes the location point of request entrance, action executing information;
PLC control module, for by entering the status information of all working unit and/or solicited message
Row is analyzed, it is judged that whether can respond the solicited message of each working cell, if can respond, and this work
Make unit to perform according to its solicited message, otherwise then this working cell enters predeterminated position wait.
Further, PLC control module specifically includes:
Depositor module, for by fieldbus module by the status information of each working cell and/or
Solicited message is deposited in the depositor of different address respectively, is preset with general function in each depositor
Instruction;
Decoding module, for by solve code instruction the status information in the depositor being positioned at different address and
/ or solicited message decode out and send to judging module;
Judge module, for judge location point that the request of each working cell enters whether with other job notes
The location point that the current location point of unit and/or request enter has conflict, if Lothrus apterus, then this working cell
Perform its solicited message by calling the function command in its depositor, on the contrary then this working cell and and its
The working cell clashed enters predeterminated position wait and is simultaneously emitted by alarm.
Therefore, PLC controls the machining cell monitoring processing model all parameters in mechanical processing process,
And according to Operating condition adjustment parameter sample and parameter, it is ensured that processing model error during processing
Rate reduce so as to get processing model more accurate.
It should be noted that above-mentioned specific embodiment is exemplary, those skilled in the art can be at this
Find out various solution under the inspiration of disclosure of the invention content, and these solutions also belong to the present invention
Open scope and fall under the scope of the present invention.It will be understood by those skilled in the art that this
Bright description and accompanying drawing thereof are illustrative and not constitute limitations on claims.The protection of the present invention
Scope is limited by claim and equivalent thereof.