System of processing and the method for the two punchings of outside of belly eyelet work product line
Technical field
The present invention relates to Machine Design, control system and the Computer-aided manufacturing field of numerical control punching production line, relate in particular to the job operation of automobile U-shaped beam punching.
Background technology
Automobile longitudinal girder is the important component part of vehicle frame, more than 80% pore size distribution of longeron is at the outside of belly of longeron, the efficiency of longeron punching processing depends on the punching speed of the outside of belly thus, in order to improve the punching speed of the outside of belly, in outside of belly processing, the array configurations of two main frames (or three main frames) that adopt realize the punchings simultaneously of two main frames more, and it is goal in research that two main frame outside of belly eyelet work product lines are take in the present invention.There is following shortcoming in its punching mode in automobile U-shaped soffit of girder face eyelet work product line at present:
1, punching speed is slow, and because the main frame of each numerical control production line only has this punching mode of one-shot (once can only rush a hole), two main frames rush simultaneously and also can only rush two holes, and the mode of one-shot has determined that speed is slow, and efficiency is low.
2, punching low precision, because group hole is rushed or is completed by twice punching of a main frame by two main frames, sending in process of U-shaped beam, have many factors can affect punching precision, the shake of beam when these factors comprise repetitive positioning accuracy, the clamp exchange of leading screw, the alignment error of mould of different station same size, error of perpendicularity of lathe, opposite clearance error etc.
Standardization and seriation along with the high-quality heavy goods vehicles of many kinds of automobile industry independent research and technological innovation, requirement to the punching precision of vehicle frame and efficiency is more and more higher, existing hole-punching method can not meet the requirement of current automobile industry to punching precision and efficiency, in order to improve punching precision and process velocity, propose the job operation of two punchings, realized the high-speed, high precision processing of U-shaped beam.
(1) prior art is analyzed process time: it is little main frame one-shot that the punching mode of the two main frame outside of belly punching processing of U-shaped beam has three kinds, main frame one-shot, little main frame rush simultaneously greatly; Its process time, Tz was
Znum=n+m+p×2 ②
Wherein: T
xfor the time of little main frame one-off hole-piercing
the time sum of rushing n hole for little main frame; Td is the time of large main frame one-off hole-piercing
for the time sum that main frame rushes m hole greatly; Ts is big or small main frame time of simultaneously punching once,
time sum for big or small main frame p punching simultaneously; Znum: total hole count
The circulating time of each main frame, except outside the Pass having with power, speed, air pressure, has following proportionate relationship:
By formula, 1. and 2. known, due to Tx, Td, Ts are constant under rated condition in the situation that, shorten Tz, reduce n, m, p is effective method.
(2) analyze the process time of realizing two punchings
The punching mode after two punchings of having increased is that little main frame one-shot, little main frame Shuan Chong, large main frame one-shot, large main frame Shuan Chong, little main frame one-shot and large main frame one-shot form punching simultaneously, little main frame one-shot and the two punchings of large main frame and form punching simultaneously, little main frame Shuan Chong and large main frame one-shot and forms punching simultaneously, little main frame Shuan Chong and large main frame pair and rush to form simultaneously and rush by eight kinds; The proportionate relationship of various punching modes and circulating time is as follows:
Tz process time of a U-shaped beam with total hole count is:
Znum=i1+i2×2+j1+j2×2+k1×2+k2×3+k3×3+k4×4 ④
5. formula with 1. compare, due to i1+i2<=n ji+j2<=m k1+k2+k3+k4<=p
As long as so 5. the holes that have two punchings in drawing are less than the process time in 1. formula the process time in formula, speed improve number by the hole count of two punchings, determined.
(3) prior art software environment and functional module
Fig. 4 is the system module of prior art, has CAD figure to read with write-back module, has in fact die storehouse operational module, parameter that module, automatic adaptation mould are set, optimizes module
Analog simulation module, NC program creation module form, and only have one-shot adaptive, and forming three kinds of punching modes is little main frame one-shot, main frame one-shot, little main frame rush simultaneously greatly.The defect that it exists is that the punching number of times of generator program is many, and the time of processing operation is long, and efficiency is low.
(4) two punchings realize technical software environment and functional module
Fig. 1 is the job operation system chart of two punchings, increased dummy mould storehouse operational module, data definition module, two pattern process modules that rush, have and virtual selection module in fact, two automatic adaptation die modules etc. that rush, the content of optimization and NC program module also expands, its punching mode has eight kinds to be little main frame one-shot, the two punchings of little main frame, large main frame one-shot, the two punchings of large main frame, little main frame one-shot and large main frame one-shot form punching simultaneously, little main frame one-shot and the two punchings of large main frame form punching simultaneously, little main frame Shuan Chong and large main frame one-shot form punching simultaneously, little main frame Shuan Chong and the two punchings of large main frame form punching simultaneously.It is by adopting dummy mould number, above 8 kinds of punching modes is summed up as to little main frame one-shot, large main frame one-shot, little main frame and rushes basic punching mode in 3 simultaneously, and the one-shot of little main frame, large main frame, big or small main frame and two punching are by mould number differentiation.The punching number of times of its generator program is few, and the time of processing operation is short, and efficiency is high.
Summary of the invention
The object of the invention is to break through traditional punching pattern (only having one-shot), increase a kind of new job operation (two punching), for traditional punching pattern, only have the real features that have mould number, cannot realize two punchings, consider the advantage that die storehouse is placed along directions X, adopt dummy mould number to reach the compatibilities of one-shot and two kinds of modes of two punching, 8 kinds of punching modes are summed up as to basic punching mode in 3, it is not only conducive to the realization of NC program, simultaneously also for the exploitation of other production lines and upgrading lay the first stone.
For solving the problems of the technologies described above, the present invention is directed to that current outside of belly punching speed is slow, the shortcoming of punching low precision has been carried out technological innovation, to reach the object that improves punching speed and precision.
NC program is carried out object---the two main frame production lines of automobile longitudinal girder numerical control outside of belly punching, wherein two main frames refer to punching main frame, little main frame be equipped with 18 stations die storehouse it not only can move forward and backward but also can move horizontally along directions X (displacement is 500mm) along Y-direction, place along directions X in machine die storehouse, another large main frame be equipped with 23 stations die storehouse it can only move forward and backward along Y-direction, also place along directions X in machine die storehouse.Processing work is the U-shaped longeron of automobile frame, length 4-12 rice, width 200-300mm, thickness 5-10mm, hole count 150-400.
This programme is achieved by the following technical measures: the system of processing of the two punchings of a kind of outside of belly eyelet work product line, is characterized in that it comprises as lower module:
Data definition module: data definition module definition die storehouse array, punching press array, optimization array, CAM layer, simulation layer and public variable, and array and public variable are passed to CAD figure read module, two pattern process module, automatic adaptation die module, optimization module, analog simulation module, NC program creation module of rushing, each module is called array and the public variable of definition here;
Parameter arranges module: parameter arranges module and reads the parameter that forms are set, be stored in the public variable of data definition module definition, these parameters have program number, beam length, outside of belly width, thickness, X stroke, Y stroke and this part public variable are passed to automatic adaptation die module, optimize each functional modules such as module, analog simulation module, NC program creation module;
Die storehouse operational module: die storehouse operational module reads the data of outer mold library file, each mould is set up mould block graphics and the data of each mould are put into die storehouse array with the form of piece, output mask storehouse array is to automatic adaptation die module, optimization module, analog simulation module and NC program creation module, and output mask block graphics is to die storehouse figure calling module, die storehouse write-back module and analog simulation module; Die storehouse operational module comprises the operational module in dummy mould storehouse and has in fact die storehouse operational module; The operational module defining virtual mould number in dummy mould storehouse, for two punchings; There is in fact the definition of die storehouse operational module to have mould number in fact, for one-shot;
CAD figure read module: CAD figure read module reads all pixels of U-shaped beam shape library, therefrom filter out the entity that pixel title equals circle, obtain wherein two attributes: the center of circle and diameter, and 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 the punching press array of data definition module definition, and the data of exporting punching press array are to two pattern process module and automatic adaptation die modules of rushing;
Two pattern process modules that rush: twoly rush data that pattern process module does specific markers position and export punching press array the circle that circular diameter in CAD figure read module output punching press array equates and two circle spacing are specified length to automatic adaptation die module, character marking is written back in U-shaped beam shape library;
Automatic adaptation die module: automatic adaptation die module detects specific markers position from CAD figure read module and two punching press array of rushing pattern process module output, as this is two punching according to circular diameter, the X coordinate figure of justifying center and Y coordinate figure, the beam parameter of U-shaped beam, the die information automatic adaptation dummy mould number of die storehouse, if being that one-shot automatic adaptation is real, this position has mould number, if this position is not for rushing not matched mold; The figure of the mould piece of matched mold is written back to U-shaped beam shape library in the CAM layer of data definition module definition with the form of piece, for optimizing module, reads;
Optimize module: optimize the coordinate figure, mould number of all INSs of CAM floor that module reads the graphic data base of automatic adaptation die module write-back and put into the optimization array by data definition module definition, the coordinate figure of insertion point adds the mould biasing of this mould, optimize array and be divided into two queues of principal and subordinate, large main frame punching data are major queue, little main frame punching data are from queue, and individual queue is setovered ascending sequence the output optimization array data of having sorted to NC program creation module and analog simulation module by X+ mould;
Analog simulation module: analog simulation module is to optimizing the data in the optimization array of module output and rushing a little and punching path shows and outputs on the simulation layer of graphic data base by data definition module definition;
NC program creation module: NC program creation module according to optimize two ordered queues of sequence principal and subordinate of module output data, from the head of two queues, fetch data respectively, from the head of major queue, get one group of data 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 condition that compares the biasing of this mould of coordinate figure X+ in these two groups of data, X3xc is that little main frame moves horizontally along directions X, and displacement is 500mm;
If meet two rush condition: Pz2-Pz1 >=0 and the two punchings of Pz2 – Pz1 <=X3xc;
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; Process in servicely, run into the two punchings of dummy mould number, two realities have mould to press down punching simultaneously, run into entity mould one-shot.
The concrete feature of this programme also has, and described pair is rushed pattern process module and also comprise:
Two conditional definition modules of rushing: two conditional definition modules of rushing are to the two conditional definitions that rush of circular diameter circle conduct equal and that two circle spacing are specified length in CAD figure read module output punching press array;
Order module: to punching press array by the ascending sequence of X value;
Search module: ordering punching press array is searched and met two two holes that rush conditional definition module definition;
Two punch marks and write-back module: while finding two punching, marker bit first circle of punching press array is made two punch marks, and another circle is made not punch mark, and character " SD " is written back in U-shaped beam shape library and does not rush round center; While being not double-hole, the marker bit of punching press array is made one-shot mark;
The operational module defining virtual mould number in described dummy mould storehouse refers to:
Four dummy moulds of little host definition, for realizing two D1 moulds of upper row and two D1 moulds of lower row, two D2 moulds of upper row and the punching simultaneously of two D2 moulds of lower row; Large four dummy moulds of host definition, for realizing two D1 moulds of upper row and two D1 moulds of lower row, two D2 moulds of upper row and the punching simultaneously of two D2 moulds of lower row; The biasing that second reality has mould is got in the mould biasing of the X-direction of 8 dummy moulds number, and diameter is got D1 or D2; And output mask storehouse array is to automatic adaptation die module, optimization module, analog simulation module and NC program creation module.
Described automatic adaptation die module comprises:
Have in fact and dummy mould is selected module: real have with dummy mould select module to obtain after data from CAD figure read module and two punching press array of rushing pattern process module output, judgement specific markers position, if this position is two automatic adaptation dummy moulds number that rush, if being that one-shot automatic adaptation is real, this position has mould number, if this position is not for rushing not matched mold;
Two automatic adaptation die modules that rush: two automatic adaptation die modules that rush are from real while having the value of selecting the marker bit of the punching press array of module output to obtain with dummy mould to equal two punching, in punching press array, diameter of a circle equates with mould diameter and circle work pair punch marks select dummy mould number to put into marker bit and export punching press array to Selection of chiller module;
One-shot automatic adaptation mould: when one-shot automatic adaptation mould equals one-shot from the value that has in fact the marker bit of the punching press array of exporting with dummy mould selection module to obtain, choosing is real to be had mould number to put into marker bit and export punching press array to Selection of chiller module;
Mark module: mark module from real while having the value of selecting the marker bit of the punching press array of module output to obtain with dummy mould to equal not rush not adaptive mould empty marker bit Output rusults to Selection of chiller module;
Selection of chiller module: public variable beam length, the outside of belly width of module transmission are set X coordinate, Y coordinate and the parameter that Selection of chiller module is obtained the center of circle from two punching arrays of rushing automatic adaptation die module, one-shot automatic adaptation mould and mark module output, that main frame is selected in the relation judgement of thickness, and host number is put into the host number position of punching array and export punching array to arranging up and down mould selection module;
Arrange up and down mould and select module: arrange up and down mould and select module to determine host number from Selection of chiller module output punching array, according to the relation decision of the center of circle Y value of punching array and outside of belly width, choose which mould of which row of lower row's mould, mould number is put into the mould position of punching array and exported punching array to mould block graphics calling module;
Mould block graphics calling module: mould block graphics calling module selects the mould position of the punching array of module output to obtain mould number from arranging up and down mould, 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, for optimizing module, reads.
A job operation for the two punchings of outside of belly eyelet work product line, is characterized in that it comprises the steps:
Data definition step: data definition step definition die storehouse array, punching press array, optimization array, CAM layer, simulation layer and public variable, and array and public variable are passed to CAD figure read step, two graphics process step, automatic adaptation mould step, Optimization Steps, analog simulation step, NC program creation step of rushing, each step is called array and the public variable of definition here;
Parameter setting steps: parameter setting steps reads the parameter that forms are set, be stored in the public variable of data definition step definition, these parameters have program number, beam length, outside of belly width, thickness, X stroke, Y stroke and this part public variable are passed to automatic adaptation mould step, Optimization Steps, analog simulation step, each functional steps of NC program creation step;
Die storehouse operation steps: die storehouse operation steps reads the data of outer mold library file, each mould is set up mould block graphics and the data of each mould are put into die storehouse array with the form of piece, output mask storehouse array is to automatic adaptation mould step, Optimization Steps, analog simulation step and NC program creation step, and output mask block graphics is to die storehouse figure invocation step, die storehouse write back step and analog simulation step; Die storehouse operation steps comprises the operation steps in dummy mould storehouse and has in fact die storehouse operation steps; The operation steps defining virtual mould number in dummy mould storehouse, for two punchings; There is in fact the definition of die storehouse operation steps to have mould number in fact, for one-shot;
CAD figure read step: CAD figure read step reads all pixels of U-shaped beam shape library, therefrom filter out the entity that pixel title equals circle, obtain wherein two attributes: the center of circle and diameter, and 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 the punching press array of data definition step definition, and the data of exporting punching press array are to two graphics process step and automatic adaptation mould steps of rushing;
Two graphics process steps of rushing: twoly rush data that graphics process step does specific markers position and export punching press array the circle that circular diameter in CAD figure read step output punching press array equates and two circle spacing are specified length to automatic adaptation mould step, character marking is written back in U-shaped beam shape library;
Automatic adaptation mould step: automatic adaptation mould step detects specific markers position from CAD figure read step and two punching press array of rushing the output of graphics process step, as this is two punching according to circular diameter, the X coordinate figure of justifying center and Y coordinate figure, the beam parameter of U-shaped beam, the die information automatic adaptation dummy mould number of die storehouse, if being that one-shot automatic adaptation is real, this position has mould number, if this position is not for rushing not matched mold; The figure of the mould piece of matched mold is written back in the CAM layer that U-shaped beam shape library defines by data definition step with the form of piece, for Optimization Steps, reads;
Optimization Steps: Optimization Steps reads the coordinate figure, mould number of all INSs of CAM floor of the graphic data base of automatic adaptation mould step write-back and puts into, the coordinate figure of insertion point adds the mould biasing of this mould the optimization array being defined by data definition step, optimize array and be divided into two queues of principal and subordinate, large main frame punching data are major queue, little main frame punching data are from queue, and individual queue is setovered ascending sequence the output optimization array data of having sorted to NC program creation step and analog simulation step by X+ mould;
Analog simulation step: analog simulation step is to the data in the optimization array of Optimization Steps output and rush a little and punching path shows and outputs on the simulation layer that graphic data base defines by data definition step;
NC program creation step: NC program creation step is according to the data of two ordered queues of sequence principal and subordinate of Optimization Steps output, fetch data from the head of two queues respectively, from the head of major queue, get one group of data 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 condition that compares the biasing of this mould of coordinate figure X+ in these two groups of data, X3xc is that little main frame moves horizontally along directions X, and displacement is 500mm;
If meet two rush condition: Pz2-Pz1 >=0 and the two punchings of Pz2 – Pz1 <=X3xc;
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; Process in servicely, run into the two punchings of dummy mould number, two realities have mould to press down punching simultaneously, run into entity mould one-shot.
The concrete feature of this programme also has, and described pair is rushed graphics process step and also comprise:
Two conditional definition steps of rushing: two conditional definition steps of rushing are to the two conditional definitions that rush of circular diameter circle conduct equal and that two circle spacing are specified length in CAD figure read step output punching press array;
Ordered steps: to punching press array by the ascending sequence of X value;
Finding step: ordering punching press array is searched and met two two holes that rush the definition of conditional definition step;
Two punch marks and write back step: while finding two punching, marker bit first circle of punching press array is made two punch marks, and another circle is made not punch mark, and character " SD " is written back in U-shaped beam shape library and does not rush round center; While being not double-hole, the marker bit of punching press array is made one-shot mark;
The operation steps defining virtual mould number in described dummy mould storehouse refers to: four dummy moulds of host definition, for realizing two D1 moulds of upper row and two D1 moulds of lower row, two D2 moulds of upper row and the punching simultaneously of two D2 moulds of lower row; Large four dummy moulds of host definition, for realizing two D1 moulds of upper row and two D1 moulds of lower row, two D2 moulds of upper row and the punching simultaneously of two D2 moulds of lower row; The biasing that second reality has mould is got in the mould biasing of the X-direction of 8 dummy moulds number, and diameter is got D1 or D2; And output mask storehouse array is to automatic adaptation mould step, Optimization Steps, analog simulation step and NC program creation step.
Described automatic adaptation mould step comprises:
Have in fact and dummy mould is selected step: real have with dummy mould select step to obtain after data from CAD figure read step and two punching press array of rushing the output of graphics process step, judgement specific markers position, if this position is two automatic adaptation dummy moulds number that rush, if being that one-shot automatic adaptation is real, this position has mould number, if this position is not for rushing not matched mold;
Two automatic adaptation mould steps of rushing: two automatic adaptation mould steps of rushing are from real while having the value of selecting the marker bit of the punching press array of step output to obtain with dummy mould to equal two punching, in punching press array, diameter of a circle equates with mould diameter and circle work pair punch marks select dummy mould number to put into marker bit and export punching press array to Selection of chiller step;
One-shot automatic adaptation mould: when one-shot automatic adaptation mould equals one-shot from the value that has in fact the marker bit of the punching press array of exporting with dummy mould selection step to obtain, choosing is real to be had mould number to put into marker bit and export punching press array to Selection of chiller step;
Markers step: markers step from real while having the value of selecting the marker bit of the punching press array of step output to obtain with dummy mould to equal not rush not adaptive mould empty marker bit Output rusults to Selection of chiller step;
Selection of chiller step: Selection of chiller step obtains public variable beam length, the outside of belly width of X coordinate, Y coordinate and the transmission of parameter setting steps in the center of circle from two punching arrays of rushing automatic adaptation mould step, one-shot automatic adaptation mould and markers step output, that main frame is selected in the relation judgement of thickness, and host number is put into the host number position of punching array and export punching array to arranging up and down mould selection step;
Arrange up and down mould and select step: arrange up and down mould and select step to determine host number from Selection of chiller step output punching array, according to the relation decision of the center of circle Y value of punching array and outside of belly width, choose which mould of which row of lower row's mould, mould number is put into the mould position of punching array and exported punching array to mould block graphics invocation step;
Mould block graphics invocation step: mould block graphics invocation step selects the mould position of the punching array of step output to obtain mould number from arranging up and down mould, obtains its shape output mask block graphics to mould piece write back step the mould block graphics of exporting from die storehouse step according to this mould number;
Mould piece write back step: mould piece write back step 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 invocation step output, INS Wei Gaikong center by red display; Piece is called mould number, for Optimization Steps, reads.
the invention has the beneficial effects as follows: job operations of (1) a kind of two punchings of the present invention, improved the process velocity of automobile U beam, higher than traditional method efficiency.
(2) job operation of a kind of two punchings of the present invention, improved the machining precision of automobile U beam, this be due to the realization of two punchings only relevant with the physical construction of die storehouse it during with the repetitive positioning accuracy of leading screw, clamp exchange the shake of beam, alignment error, the error of perpendicularity and the opposite clearance error of the mould of different station same size are irrelevant, solved the shortcoming of organizing hole low precision.
(3) job operation of a kind of two punchings of the present invention, dummy mould technology highly versatile, 8 kinds of punching modes (little main frame one-shot, little main frame Shuan Chong, large main frame one-shot, the two punchings of large main frame, rush the large main frame one-shot of little main frame one-shot simultaneously, rush the two punchings of the large main frame of little main frame one-shot simultaneously, rush little main frame simultaneously and twoly rush large main frame one-shot, rush that little main frame is two rushes the two punchings of large main frames simultaneously) have been become to three kinds of basic punching modes (little main frame one-shot, large main frame one-shot, two main frames rush simultaneously), and routine processes is simple.
(4) concrete feature of the present invention also has, and the NC program that the job operation of described two punchings creates is short, and committed memory is few, simple to operate, realizes easily.
The job operation of a kind of two punchings of the present invention, in the two main frame outside of belly eyelet work product lines of u ellbeam, verify, done a large amount of test comparison experiments, user's U-shaped beam of take is example, this U-shaped automobile longitudinal girder beam length 11750mm outside of belly width 300mm, all hole count is 359, the hole count that meets two punchings is 87 pairs, in the situation that other conditions are identical, save time 87 * 1.5 seconds=130.5 seconds=2.17 minutes, adopt classic method to process this beam and need 8 minutes, by two modes of rushing, process this beam and need clock more than 5 minutes, raising speed is more than 30%, aspect the precision of punching, also greatly improve.Therefore the present invention compared with prior art, has realized technical purpose.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and example, the present invention will be further described.
Fig. 1 is system of processing and the method system chart of the two punchings of outside of belly eyelet work product line; Fig. 2 is system of processing and the method program block diagram of the two punchings of outside of belly eyelet work product line; Fig. 3 is a kind of job operation data flow diagram of two punchings; Fig. 4 is prior art systems block diagram;
fig. 5it is the die storehouse of little main frame, 1-18 mould is real mould, and in figure, 601 is two dummy moulds, and front-seat 5 and No. 7 moulds form two dummy mould that rushes No. 42,6 No. 8 moulds of rear row form No. 43 pairs and rush dummy mould, complete respectively two tasks of rushing of outside of belly front and back 15mm; In figure, 602 is also two dummy moulds, and front-seat 11 and No. 13 moulds form two dummy mould that rushes No. 44, and rear row 12 and No. 14 moulds form No. 45 dummy moulds, completes respectively two tasks of rushing of outside of belly front and back 17mm.
Fig. 6 is that die storehouse and the 19-41 mould of large main frame has mould in fact, in figure, 701 is two dummy moulds, No. 23 and 25, front row moulds form two dummy moulds that rush No. 46, and rear row 24 and No. 26 moulds form No. 47 pairs and rush dummy mould, complete respectively two tasks of rushing of outside of belly front and back 15mm; In figure, 702 is also two dummy moulds, and front-seat 32 and No. 34 moulds form two dummy mould that rushes No. 48, and rear row 33 and No. 35 moulds form No. 49 dummy moulds, completes respectively two tasks of rushing of outside of belly front and back 17mm.
Embodiment
For making object of the present invention, technical scheme and advantage clearer, referring to the auxiliary figure embodiment that develops simultaneously, the present invention is described in further detail.
Fig. 1 is system of processing and the method system chart of the two punchings of outside of belly eyelet work product line.Comprise three parts, CAD is partly the figure of drawing U-shaped beam; CAM is partly core content, and function is to read the longeron drawing of U-shaped beam shape library, carries out two punchings and processes, and to one-shot hole and two punching automatic adaptation mould, the data of mould piece is divided into two queues of principal and subordinate, creates NC program; Third part program is carried out object---the two main frame production lines of automobile longitudinal girder numerical control outside of belly punching, and CAM partly 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, twoly rush pattern process 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
2 pairs of punchings of two punching 1 one-shot of SC As Integer '
T As Integer ' cutter number
The biasing of TX As Integer ' x+ mould
Position, NUM As Integer ' hole sequence number
End Type
Punching press array is dynamic array, with Dim Data1 () As HPUNCH
ReDim Preserve Data1 (PNum) realizes
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 (49,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;
The operational module in dummy mould storehouse: the operational module defining virtual mould number in dummy mould storehouse, and the data of dummy mould number (42-49) are put into the die storehouse array of data definition module definition; There is in fact die storehouse operational module to read the die storehouse array that each data that have in fact station (1-41) are put into data definition module definition; There are in fact mould and dummy mould synthetic mould storehouse array, each mould with the form of piece set up mould block graphics output mask storehouse array to automatic 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 two pattern process module and automatic adaptation die modules of rushing;
Step 3:
two pattern process modules that rush: two rush pattern process module to all data in CAD figure read module output punching press array Data1 by the ascending sequence of X, from punching press array Data1, searching distance is that 50 diameters are 15 or 17 hole, if found, carry out two punching processing: the first hole type is set to two SC=2 that rush in punching array Data1, the second hole type is set to not rush SC=0, " SD " flagged write back to the second Kong center in U-shaped beam shape library and show with special color, if not two, are punched in this hole type in punching array Data1 and are set to one-shot SC=1 and export punching press array data1 to automatic adaptation die module,
Step 4: automatic adaptation die module: comprise real have with dummy mould select mould piece, Selection of chiller module, arrange mould up and down and select module, mould block graphics calling module and mould piece write-back module.
(1) real have and dummy mould is selected module: real have select module to detect specific markers position SC from CAD figure read module and two punching press array data1 that rushes pattern process module output with dummy mould to select, as this is two punching according to circular diameter, the X coordinate figure of justifying center and Y coordinate figure, the beam parameter of U-shaped beam, the die information automatic adaptation dummy mould number of die storehouse, if this position is that one-shot automatic adaptation has mould number in fact, if this position is not for rushing not matched mold,
SC=1 choosing has mould in fact;
SC=2 selects dummy mould;
The not adaptive mould of SC=0;
And export punching press array data1 to Selection of chiller module.
(2) Selection of chiller module: Selection of chiller module obtains data from have in fact the punching press array data1 that selects module to export with dummy mould, selects main frame according to following condition:
Condition (having one of the following three kinds of conditions) leading portion of the adaptive mould of large main frame and hole and middle the latter half of being greater than 23mm:
Minor increment between X≤two main frame
Diameter >=23mm
Minor increment between Y≤aerofoil width/2 and X< beam length-two main frame
The condition of the adaptive mould of little main frame:
Minor increment between X >=beam length-two main frame and diameter <23mm
Y> aerofoil width/2 and X are greater than the minor increment between two main frames and are less than beam length and deduct the minor increment between two main frames
And export punching press array data1 and Selection of chiller condition and select module to arranging up and down mould
(3) arrange up and down mould and select module: lower row's mould selects module to obtain data and Selection of chiller condition from the punching press array data1 of Selection of chiller module output, determine that to select to arrange up and down mould condition after main frame as follows
Under Y value > aerofoil 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 > aerofoil 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 (29,30,31) is single row mould, do not arrange up and down selection.The mould that need to arrange up and down selection is: on little host A station, arrange 1,3,15,17
Lower row 2,4,16,18
On little host B station, arrange 5,7,9,11,13,42,44
Lower row 6,8,10,12,14,43,45
On large host A station, arrange 19,21,38,40
Lower row 20,22,39,41
On little host B station, arrange 23,25,27,32,34,36,46,48
Lower row 24,26,28,33,35,37,47,49
Determined main frame, up and down row, real have with dummy mould after, determine which mould is adaptive, condition is
The diameter D of punching press array data1 equals the mould diameter in die storehouse.
The figure of the mould piece of matched mold is written back to graphic data base INS Wei Gaikong center by red display in the CAM layer of data definition module definition with the form of piece, and piece is called mould number; This piece is carried out to front and back Check processing, and rear detection is not processed
The attribute flags of front detection mould piece is written as " WB "
For optimizing module, read;
Step 5:
optimize module:optimize module and read the coordinate figure of all insertion points of CAM floor of graphic data base of automatic adaptation die module write-back and mould number and front and back detected value, put into and optimize array P Data, and increasing the biasing of this mould of coordinate figure X+ of an insertion point, the biasing of mould obtains from die storehouse array; Optimizing the 0th front and back of array detects
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 (the dummy mould T42-T45 of its medium and small main frame, fiducial value-30, are placed in little host sequence); 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 moduleaccording to the data of optimizing array, successively in graphic data base, carry out successively emulation demonstration, exit mould and enter normal demonstration;
Step 7:
nC program creation modulenC program creation module according to optimize two ordered queues of sequence principal and subordinate of module output data, from the head of two queues, fetch data respectively, from the head of major queue, get one group of data 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 condition that compares 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 two rush condition Pz2-Pz1 >=0 and the two punchings of Pz2 – Pz1 <=X3xc
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;
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, run into dummy mould number two realities has mould to press down punching simultaneously, runs into entity mould one-shot.
Described two punching refers to that a main frame once presses down two moulds simultaneously and goes out two holes; Described reality has mould to refer in physical construction to arrange in esse mould number by station; Described dummy mould number refers in station arrangenent diagram and do not exist, and has 2 or a plurality of reality to have mould number to combine the mould number of some specific function.
" S D " two punch marks, the english abbreviation of the two punchings of single host that setup string, S:single D:Double, its effect is in order to distinguish the not circle of matched mold, these circles may carry out PROCESS FOR TREATMENT (such as revising diameter, with the stamping die marking of pretending, rushing great circle etc. with little mould)
" W B " front certification mark, 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.
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
Fig. 2 is the system of processing of the two punchings of outside of belly eyelet work product line and the flow chart of method, mainly contains the following step:
Step 1: the initialization of system: by
Data definition module: by 301 realizations, data definition module definition die storehouse array MOJU (49,7), punching press array DATA1 (X, Y, D, SC, T, TX, NUM), CAM layer, optimize 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: 302 to 309 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 two pattern process module and automatic adaptation die modules of rushing;
Step 3:
two pattern process modules that rush: 310 to 322 realizations are pressed the ascending sequence of X to all data in CAD figure read module output punching press array Data1, from punching press array Data1, searching distance is that 50 diameters are 15 or 17 hole, if found, carry out two punching processing: the first hole type is set to two SC=2 that rush in punching array Data1, the second hole type is set to not rush SC=0, " SD " flagged write back to the second Kong center in U-shaped beam shape library and show with special color, if not two, are punched in this hole type in punching array Data1 and are set to one-shot SC=1 and export punching press array data1 to automatic adaptation die module,
Step 4: automatic adaptation die module: 323 to 330 realizations; Comprise real have with dummy mould select mould piece, Selection of chiller module, arrange mould up and down and select module, mould block graphics calling module and mould piece write-back module.For optimizing module, read;
Step 5:
optimize module:331 realize, read the coordinate figure of all insertion points of CAM floor of 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; Optimizing the 0th front and back of array detects
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 (the dummy mould T42-T45 of its medium and small main frame, fiducial value-30, are placed in little host sequence); 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 module331 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 module331 creation modules are rushed condition, auxiliary statement establishment NC program according to data, program statement form, two main frames of optimizing array simultaneously, process in servicely, run into dummy mould number, two realities corresponding to machine die storehouse have mould to press down punching simultaneously, run into entity mould number, one-shot.
Fig. 3 is system of processing and the method data flow diagram of the two punchings of outside of belly eyelet work product line, mainly contain two data stream, 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 forms pixel set and (comprise 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, orderly self-defined array is processed through two punchings, two punching positions (being SC position) of self-defined array have been changed, read in after die storehouse information forms die storehouse array and forms the graph block of all moulds and become (the SC position of punching press array, mould array), according to the value of the SC position of self-defined array, carry out one-shot treatment S C=1, two treatment S C=2 that rush, do not rush treatment S C=0, when SC=0, " SD " character is write in U-shaped beam shape library, when SC=1 adaptation has its mould of mould number in fact, be 1-41, when adaptive dummy mould its mould number of SC=2 is 42-49, 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 ", for second data stream, read,
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, by the mould piece reading on the CAM layer of graphic data base, become mould set, mould set is by obtaining mould INS coordinate, mould number, front and back detected value, then through the X coordinate of insertion point, be assigned to the 1st of self-defined array (optimizing array pdata), 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, the biasing of the X coordinate of insertion point+mould 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, optimizing array in order (is 19-41 by large main frame mould number, 46-49) be divided into major queue, optimizing array in order (is 1-18 by little main frame mould number, 42-45) be divided into from queue, major queue becomes orderly major queue by the ascending sequence of setovering of large main frame X coordinate+mould, from queue, by the ascending sequence of setovering of little main frame X coordinate+mould, become in order 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, from the head of major queue, get one group of data Group I 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 condition that compares 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 two rush condition Pz2-Pz1 >=0 and the two punchings of Pz2 – Pz1 <=X3xc
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.