Embodiment
Fig. 1 is the system chart that the method for dynamic adaptation mould in the embodiment of the present invention realizes, and comprises three parts, and CAD part is to draw the figure of U-shaped beam; CAM part is core content, and function is to read the longeron drawing of U-shaped beam shape library, and dynamic auto adaptive mould is divided into two queues of principal and subordinate the data of mould piece, creates NC program; Part III program is carried out object---automobile longitudinal girder numerical control outside of belly punching five main frame production lines, and CAM part comprises:
Step 1: the initialization of system: by data definition module: data definition module definition die storehouse array, punching press array, optimize array, CAM layer, simulation layer and public variable, and array and public variable are passed to CAD figure read module, automatic adaptation die module, optimize each functional modules such as module, analog simulation module, NC program creation module;
The data structure of punching press array
The self-defined punching type of Type HPUNCH '
The x coordinate in X As Double ' hole
The y coordinate in Y As Double ' hole
The diameter in D As Double ' hole
T As Integer ' mould number
The biasing of TX As Integer ' x+ mould
The large host test mould number of TD As Integer '
TDX As Double ' x coordinate+large host test mould tool offset
The little host test mould number of TS As Integer '
TSX As Double ' x coordinate+little host test mould tool offset
Position, NUM As Integer ' hole sequence number
SC As Integer ' simultaneously 2 liang of main frames of punch mark 1 one-shot rushes simultaneously
End Type
Punching press array is dynamic array, with Dim Data1 () As HPUNCH
ReDim Preserve Data1 (PNum) realizes
Second punching press array Dim Data2 () As HPUNCH
Optimizing array is two-dimensional array, Public PData (600,4) As String ' deposits punching point data, data item has: 0: detected value, 1: the X value of mould piece insertion point, 2: the Y value of mould piece insertion point, 3: mould number, 4: X value+mould directions X biasing of mould piece insertion point, for optimizing module, analog simulation module, NC program creation module;
Die storehouse array is two-dimensional array, Public MOJU (39,7) As Variant ' deposits die storehouse: station, type, size X, size Y, size R, dimension D, angle, directions X biasing, for functional modules such as automatic adaptation die module, optimization module, analog simulation module, NC program creation modules;
Public variable: Public PROGNUM As String ' program number
Public BANLENTH As String ' sheet material length
Public BANWIDTH As String ' sheet material width
Public GAODU As String ' aerofoil height
Public HOUDU As String ' thickness
Public CLQD As Double ' the strength of materials
More than 100 of the effective hole of Public PNum As Integer ' countings etc., are respectively used to each functional module.
Parameter arranges module: parameter arranges module and reads the parameter that forms are set, leave in the public variable of data definition module definition, parameter has program number, beam length, outside of belly width, thickness, X stroke, Y stroke etc. and these public variables is passed to automatic adaptation die module, optimizes each functional modules such as module, analog simulation module, NC program creation module;
Die storehouse operational module reads each has the data of station (1-39) to put into the die storehouse array of data definition module definition in fact; Each mould with the form of piece set up mould block graphics output mask storehouse array to dynamic adaptation die module, optimize module, analog simulation module and NC program creation module, output mask block graphics is to die storehouse figure calling module, die storehouse write-back module and analog simulation module;
Step 2:
cAD figure read module: model CAD is connected with CAM's, read all pixels of U-shaped beam shape library, filter out the entity that pixel title equals circle, obtain the property value center of circle and the straight warp of entity, the coordinate figure Y in the coordinate figure X in the center of circle, the center of circle and diameter value D are changed in X, the Y of the punching press array Data1 of data definition module definition and D and the data of exporting punching press array Data1 to automatic adaptation die module;
Step 3:
dynamic adaptation die module:can be divided into three parts by function: the dynamic prewired mold process of Part I, Part II is determined punching host process, Part III actual fit mold process; Dynamic adaptation die module comprises:
press X order module: from the punching press array Data1 of CAD figure read module output, obtain data by X order module, sort and export the punching array having sorted to the prewired die module of large main frame by the X coordinate in the center of circle is ascending;
the large prewired die module of main frame: the large prewired die module of main frame from
press X order modulex coordinate, Y coordinate, diameter value and the parameter of obtaining the center of circle in the punching press array Data1 of output arranges public variable beam length, the outside of belly width of module transmission, which mould of which row of lower row's mould is chosen in the relation decision of thickness, arrange up and down selection according to Y value
Select to arrange up and down mould condition as follows
Under Y value > outside of belly width-(22+thickness of slab+70) A station, arrange mould
On the A station of Y value < 22+thickness of slab+70, arrange mould
Under Y value > outside of belly width-(26+thickness of slab+62) B station, arrange mould
On the B station of Y value < 26+thickness of slab+62, arrange mould
Because the mould of C station (27,28,29,30,31) is single row mould, do not arrange up and down selection
19,21,36,38 ' arrange mould under A station
20,22,37,39 ' arrange mould on A station
23,25,32,34 ' arrange mould under B station
24,26,33,35 ' arrange mould on B station
27,28,29,30,31 ' C station single row mould
After having determined up and down row, determine which mould adaptation, condition is:
The diameter D of punching press array Data1 equals the mould diameter in die storehouse, adopts same mould adaptation for position, main hole
TD and the TDX of DATA1 put in the mould biasing of the mould that the mould of choosing number and X+ are chosen number
The mould number that TD=chooses
The mould biasing of the mould that TDX=X+ chooses number
And export punching array to
the prewired die module of little main frame;
the prewired die module of little main frame: X coordinate, Y coordinate, diameter value and the parameter that the prewired die module of little main frame obtains the data acquisition center of circle from major queue is set up the punching press array DATA1 of module output arranges public variable beam length, the outside of belly width of module transmission, which mould of which row of lower row's mould is chosen in the relation decision of thickness, arrange up and down selection according to Y value
Select to arrange up and down mould condition as follows
Under Y value > outside of belly width-(22+thickness of slab+70) A station, arrange mould
On the A station of Y value < 22+thickness of slab+70, arrange mould
Under Y value > outside of belly width-(26+thickness of slab+62) B station, arrange mould
On the B station of Y value < 26+thickness of slab+62, arrange mould
1,3,15,17 ' arrange mould under A station
2,4,16,18 ' arrange mould on A station
5,7,9,11,13 ' arrange mould under B station
6,8,10,12,14 ' arrange mould on B station
After having determined up and down row, determine which mould adaptation, condition is:
The diameter D of punching press array Data1 equals the mould diameter in die storehouse, adopts same mould adaptation, to improve precision for position, main hole.
TS and the TSX of DATA1 put in the mould biasing of the mould that the mould of choosing number and X+ are chosen number
The mould number that TS=chooses
The mould biasing of the mould that TSX=X+ chooses number
And export punching array Data1 to large main frame order module;
large main frame order module: large main frame order module is obtained data from the punching press array Data1 of the prewired die module output of little main frame, and by large host test mould tool offset position TDX, the ascending sequence of punching press array the output punching press array Data1 that sorted is arrived
single host solely rushes processing module;
single host solely rushes processing module: single host solely rush processing module from
large main frame order modulein the punching press array Data1 of output, obtain data, when judgement only has a large main frame to add mould, determine that large main frame is pre-punched hole main frame, mould position equals the prewired mould number of large main frame, and the biasing of X+ mould equals large host test mould tool offset;
As TD>=19 and TS<1
T=TD TX=TDX
While only having a little main frame to add mould, determine that little main frame is pre-punched hole main frame, mould position equals the prewired mould number of little main frame, and the biasing of X+ mould equals little host test mould tool offset;
As TD<19 and TS>=1
T=TS TX=TSX
And the punching press array of exporting two queues is to adding hole sequence number module;
add hole sequence number module: add hole sequence number module and obtain data from single host solely rushes the punching press array Data1 of processing module output, add hole sequence number in the NUM of punching press array Data1, so that two unified hole sequence number NUM identifying holes for array, be second punching press array Data2 punching press array Data1 copy, and export these two punching press arrays to little main frame order module;
little main frame order module: little main frame order module is obtained data from add the punching press array Data1 of hole sequence number module output and Data2, in Data2, by little host test mould tool offset position TDX, the ascending sequence of punching press array Data2 output has been sorted to punching press array Data1 and Data2 to solely rushing main frame and another host matching while die block;
solely rush main frame and another host matching die block simultaneously: solely rush main frame and another host matching punching press array Data1 that die block is exported from little main frame order module simultaneously and Data2 and obtain data, when in Data1, judgement only has a large main frame to add mould, in Data2, search and meet two main frames and rush the hole that the little main frame of condition can rush simultaneously, and mark rushes simultaneously;
The hole of looking for satisfied two main frames of little main frame queue simultaneously to rush condition when current hole satisfies condition TD>=19 and TS<1 in Data1 from Data2 is found and is determined this Kong Wei little main frame punching:
T=TS TX=TSX
While only having a little main frame to add mould in Data2; From Data1, search and meet two main frames and rush the hole that the large main frame of condition can rush simultaneously, and mark rushes simultaneously;
The hole of looking for satisfied two main frames of large main frame queue simultaneously to rush condition when current hole satisfies condition TD<19 and TS>=1 from Data1 is found and is determined this Kong Wei great main frame punching:
T=TD TX=TDX
And export two punching press array Data1 and Data2 to two prewired while die blocks in hole of joining;
two prewired while die blocks in hole of joining: two prewired while die blocks in hole of joining obtain data from solely rush main frame and another host matching punching press array Data1 that die block is exported simultaneously and Data2, if this hole has two main frames can add mould, first the one group of hole that judges position, main hole adopts same mould adaptation, then determine pre-punched hole main frame according to the condition of rushing simultaneously, and mark rushes simultaneously, T1 is the T value in the first hole, and T2 is the T value in the second hole
As TD>=19 and TS>=1 and T1=0 and T2=0
The first hole T=TD TX=TDX
The second hole T=TS TX=TSX
And export two punching press array Data1 and Data2 to two hole one-shot processing modules of joining;
two hole one-shot processing modules of joining: two hole one-shot processing modules of joining are obtained data from two punching press array Data1 that join the die block output of prewired while of hole and Data2, judge that this hole does not meet and rushes condition, the pre-one-shot of the large main frame of first paragraph, the pre-one-shot of other little main frames simultaneously
In the time of the distance of No. X<19-No. 1 mould
T=TD TX=TDX
In the time of the distance of No. X>=19-No. 1 mould
T=TS TX=TSX
And export two punching press arrays to actual fit die module
actual fit die module:actual fit die module obtains data from two punching press array Data1 that join hole one-shot processing module output, in each main frame, first determine row up and down according to Y value according to the numerical value of host number position, determine again bore dia and the mould number equating in die storehouse, mould number is put into mould position, and export punching press array to mould block graphics calling module;
mould block graphics calling module: mould block graphics calling module is obtained mould number from the mould position T of the punching array Data1 of actual fit die module output, obtains its shape output mask block graphics to mould piece write-back module the mould block graphics of exporting from die storehouse module according to this mould number;
mould piece write-back module: mould piece write-back module is written back to mold shape U-shaped beam shape library on CAM layer in the mode of piece from the mould block graphics of mould block graphics calling module output, INS Wei Gaikong center by red display; Piece is called mould number, and this piece is carried out to front and back Check processing, and rear detection is not processed, and the attribute flags of front detection mould piece is written as " WB ", reads for optimizing module.
Step 4:
optimize module:optimize module and read the coordinate figure of all insertion points of the CAM floor of the graphic data base of automatic adaptation die module write-back and mould number and front and back detected value, put into and optimize array PData, and increasing the biasing of this mould of coordinate figure X+ of an insertion point, the biasing of mould obtains from die storehouse array; Optimize the each definition of data item of array PData
Before and after the 0th, detect
The coordinate figure X of the 1st piece insertion point
The coordinate figure Y of the 2nd piece insertion point
The 3rd mould number
The biasing of this mould of coordinate figure X+ of the 4th insertion point
Optimize array and press cutter number descending arrangement; Optimize array and be divided into two queues of principal and subordinate, large main frame punching data are major queue, and little main frame punching data are from queue, and individual queue is by the ascending sequence of setovering of X+ mould; And the optimization array data that output has been sorted is to NC program creation module and analog simulation module;
Step 5:
analog simulation modulesuccessively in graphic data base, carry out successively emulation demonstration according to the data of optimizing array, exit mould and enter normal demonstration;
Step 6:
nC program creation modulenC program creation module according to optimize module output two ordered queues of sequence principal and subordinate data, fetch data from the head of two queues respectively, get one group of data from the head of major queue the biasing of this mould of X+ is assigned to variable Pz1, from get one group of data from queue, the biasing of this mould of X+ is assigned to variable Pz2 again, the relatively condition of the biasing of this mould of coordinate figure X+ in these two groups of data, X3xc is that little main frame moves horizontally (displacement is 500mm) along directions X
If meet and rush condition Pz2-Pz1 >=0 and Pz2 – Pz1 <=X3xc rushes simultaneously simultaneously
The little main frame one-shot of Pz1> Pz2, large main frame puts in place in advance
The large main frame one-shot of Pz1 <=Pz2, little main frame puts in place in advance
Form three kinds of basic punching mode statements (little main frame one-shot, large main frame one-shot, two main frames rush simultaneously), the array of two queues of principal and subordinate all judges complete, and output forms NC program;
Program output module: program output module is presented at the Sentence format of output in output forms and the Sentence format of output and writes in NC program file, the program that is sent to is carried out processing operation in object.
The definition of the several concepts that relate in this patent:
1. punching Sentence format is:
Xx Yy Tt Aa Bb Cc Dd Ee Fi Gg Hh;(Xd,XS)
The wherein coordinate figure x of the large main frame of x mold center
The coordinate figure y of the large main frame of y mold center
The large main frame mould of t number (19-39)
The front and back detection mode of the large main frame of a
The coordinate figure x of the little main frame of b mold center
The coordinate figure y of the little main frame of c mold center
The little main frame mould of d number (1-18)
The front and back detection mode of the little main frame of e
I punching Selection of chiller 1: little main frame one-shot, 2: large main frame one-shot 3: big or small main frame rushes simultaneously
The Y value of the large main frame of h puts in place in advance
The Y value of the little main frame of g puts in place in advance
2. the front certification mark of mark " W B ", writes the english abbreviation of the attribute of tag block, before W:write b:block, detects and adds this mark, and rear detection is not labelled, and after labelling, on its circle, shows " W B " character.
3. station: the position that mould occupies, international standard is divided into A, B, C, D, E Pyatyi by inch, and boundary is respectively 1/2 ", 1.2 ", 2 ", 3.5 ", 4.5 ", longeron production line, not according to international standard industrial classification, divides three kinds by following diameter
A station <=13mm
B station <=23mm and >13mm
C station >23mm
4. position, main hole: refer to the hole coordinating with other parts, as propons, back axle, engine etc., the raising of position, main hole precision has increased the security of automobile.
So far, finish the method that a kind of pair of main frame outside of belly of the present embodiment rushes dynamic adaptation mould
fig. 2be the flow chart of a kind of adaptive mold system and method, mainly contain the following step:
Step 1: the initialization of system: by
data definition module:by 201 realizations, data definition module definition die storehouse array MOJU (49,7), DATA1 (X, Y, D, SC, T, TX, TD, TDX, TS, TSX, NUM) punching press array, CAM layer, optimization array PDATA (600,4), simulation layer and public variable PROGNUM program number, BANLENTH sheet material length, BANWIDTH sheet material width, GAODU aerofoil height, HOUDU thickness, the CLQD strength of materials, more than 100 of the effective hole of PNum countings etc., are respectively used to each functional module
step 2:CAD figure read module: 202 to 209 realize being connected of model CAD and CAM, read all pixels of U-shaped beam shape library, filter out the entity that pixel title equals circle, obtain the property value center of circle and the straight warp of entity, the coordinate figure Y in the coordinate figure X in the center of circle, the center of circle and diameter value D are changed in X, the Y of the punching press array Data1 of data definition module definition and D and the data of exporting punching press array Data1 to automatic adaptation die module;
Step 3:
dynamic adaptation die module:210 to 236 realizations; Comprise by sort ascending order module, big or small main frame of X and add in advance die module, big or small main frame and determine (214-235), the real die module (mould block graphics calling module and mould piece write-back module) of joining by X+ mould biasing order module, prewired host number.Read for optimizing module;
Step 4:
optimize module:237 realize, read the coordinate figure of all insertion points of the CAM floor of the graphic data base of dynamic adaptation die module write-back and mould number and front and back detected value, put into and optimize array PData, and increasing the biasing of this mould of coordinate figure X+ of an insertion point, the biasing of mould obtains from die storehouse array; Optimize array
Before and after the 0th, detect
The coordinate figure X of the 1st piece insertion point
The coordinate figure Y of the 2nd piece insertion point
The 3rd mould number
The biasing of this mould of coordinate figure X+ of the 4th insertion point
Optimize array and press cutter number descending arrangement; Optimize array and be divided into two queues of principal and subordinate, large main frame punching data are major queue, and little main frame punching data are from queue, and individual queue is by the ascending sequence of setovering of X+ mould; And the optimization array data that output has been sorted is to NC program creation module and analog simulation module;
Step 6:
analog simulation module237 realizations are successively carried out emulation demonstration successively according to the data of optimizing array in graphic data base, exit mould and enter normal demonstration;
Step 7:
nC program creation module237 creation modules are rushed condition, auxiliary statement establishment NC program, processing operation according to data, program statement form, two main frames of optimizing array simultaneously.
fig. 3 Fig. 4it is a kind of adaptive Mould Machining system and method data flow diagram, mainly contain two data stream, Fig. 3 is that first data stream is from figure to automatic adaptation mould write-back graphic data base, longeron figure reads figure through CAD figure read module and is formed as pixel set and (comprises circle, line, size marking, polygon, rectangle, circular arc, oval etc.), pixel set is filtered and is become round set through screening circle, two property value (centers of circle are obtained in the set of circle, radius) become the set of centre point diameter, the set of centre point diameter is assigned to the X of self-defined array (being punching press array DATA1) through the X coordinate of centre point, the Y coordinate of centre point is assigned to self-defined array Y, diameter is assigned to self-defined array D and becomes as self-defined array (being punching press array DATA1), self-defined array becomes orderly self-defined array by the ascending sequence of X item, the prewired mould of the large main frame in whole holes of orderly self-defined array, the little main frame in whole holes of orderly self-defined array is a prewired mould also, large main frame is pressed X+ mould biasing sequence, little main frame is pressed X+ mould biasing sequence and is formed two punching press arrays, solely adaptive main frame and the definite adaptive main frame of punching are simultaneously determined in punching, adaptive main frame is determined in two holes (be big or small main frame can prewired mould to this hole hole) of joining, according to adaptive host number, join mould number according to arranging up and down the relation that judgement and bore dia equate with mould diameter, condition is the diameter position D that the diameter position D of self-defined array equals die storehouse array, the figure of the mould piece of matched mold is written back in the CAM layer of graphic data base to INS Wei Gaikong center with the form of piece and by red display, piece is called mould number, this piece is carried out to front and back Check processing, rear detection is not processed, the attribute flags of front detection mould piece is written as " WB ", read for second data stream,
Fig. 4 is that second data stream is the coordinate figure from all insertion points of the CAM layer of first data stream write-back U-shaped beam shape library, mould number, front and back detected value is to creating NC program, become mould set by the mould piece reading on the CAM layer of graphic data base, mould set is by obtaining mould INS coordinate, mould number, front and back detected value, then be assigned to the 1st of self-defined array (optimizing array pData) through the X coordinate of insertion point, the Y coordinate of insertion point is assigned to the 2nd of optimization array pData, mould number is assigned to the 3rd of optimization array pData, X coordinate+mould biasing of insertion point is assigned to the 4th of optimization array pData, front and back detected value is assigned to the 0th of optimization array pData, form and optimize array, optimize array through pressing mould number size sequence (by the 3rd of p Data), become orderly optimization array, optimize in order array and be divided into major queue by large main frame mould number (being 19-39), optimizing in order array is divided into from queue by little main frame mould number (being 1-18), major queue becomes orderly major queue by the ascending sequence of setovering of large main frame X coordinate+mould, become in order from queue by the ascending sequence of setovering of little main frame X coordinate+mould from queue, two ordered queues of principal and subordinate carry out analog simulation demonstration by the overanxious formula punching of X coordinate+mould biasing rank fusion, two ordered queues of principal and subordinate fetch data from the head of two queues respectively, get one group of data Group I from the head of major queue the biasing of this mould of X+ is assigned to variable Pz1, from get one group of data J group from multiple row, the biasing of this mould of X+ is assigned to variable Pz2 again, the relatively condition of the biasing of this mould of coordinate figure X+ in these two groups of data, X3xc is that little main frame moves horizontally (displacement is 500mm) along directions X
If meet and rush condition Pz2-Pz1 >=0 and Pz2 – Pz1 <=X3xc rushes simultaneously simultaneously
The little main frame one-shot of Pz1 > Pz2
The large main frame one-shot of Pz1 <=Pz2
Form three kinds of basic punching mode statements (little main frame one-shot, large main frame one-shot, two main frames rush simultaneously), the array of two queues of principal and subordinate all judges complete, and output forms NC program.