The processing method of dull and stereotyped eyelet work product line intelligent adaptation mould and system
Technical field
The present invention relates to the Machine Design of numerical control punching production line, control system and Computer-aided manufacturing field, particularly relate to the processing method of the adaptive mould of automobile longitudinal beam flat plate punching.
Background technology
Automobile longitudinal girder is the important component part of vehicle frame, vehicle frame manufacture craft has two kinds usually, one is the subsequent techniques such as coiled strip roll-forming (U-shaped) → U-shaped beam punching → cutting → bending, the second be longeron shear → dull and stereotyped punching → longeron compressing → riveted joint wait subsequent technique.To the punching of the second vehicle frame manufacture craft middle plateform by three kinds of different implementation methods, the production in enormous quantities efficiency high flexibility difference cost that first large hydraulic press is once suppressed for approved product is high, it two is better by longeron flat digital controlled eyelet work product line punching efficiency degree of precision, and it three is with boring the low low precision of drilling efficiency.The present invention is with the flat digital controlled eyelet work product line of longeron for goal in research, and in the dull and stereotyped longeron punching production line of automobile flat plate longeron, its punch pattern exists following shortcoming at present:
1, punching speed is slow, and it is slow that the main frame due to each Numerical control production line only has the mode of one-shot (once can only rush a hole) this one-shot to determine speed, and efficiency is low.
2, punching low precision, because group hole completes by two moulds or by twice punching of a mould, send in process at dull and stereotyped longeron, there are many factors can affect punching precision, the shake of beam when these factors comprise the repetitive positioning accuracy of leading screw, clamp exchanges, the alignment error of the mould of different station same size, the error of perpendicularity, opposite clearance error etc. of lathe.
Along with the standardization and seriation of the multi items high-quality heavy goods vehicles of automobile industry independent research and technological innovation, to the punching precision of vehicle frame and the requirement of efficiency 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 intelligent machining method, realize the high-speed, high precision processing of dull and stereotyped longeron.
(1) prior art is analyzed process time: the punch pattern of a dull and stereotyped longeron single host punching processing only has one and large main frame one-shot; Its process time, Tz was
①
Znum=n ②
Wherein: Ts is the time of single host one-off hole-piercing,
for single host rushes the time sum in n hole; 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:
1. and 2. known by formula, due under prescribed conditions, Ts be constant when, shorten Tz, reducing n is most effective method.
(2) realize analyzing intelligentized process time
The punch pattern added after two punching has two kinds of i.e. single host one-shot, the two punchings of single host; The proportionate relationship of various punch pattern and circulating time is as follows:
A dull and stereotyped longeron process time Tz and total hole count be:
Tz=
③
Znum=i1+i2×2 ④
3. formula with 1. compare, due to i1+i2<=n
As long as have the hole of two punching in drawing so process time in being less than process time 3. in formula 1. formula, speed improve number determined by the hole count of two punching.
(3) vehicle frame manufacturing enterprise longeron flat plate variety is analyzed
The dull and stereotyped model specification of longeron of vehicle frame manufacturing enterprise reaches kind more than 1,000, some trial-production longeron model has nearly 25 kinds of holes differed in size, need 25 kinds of moulds, some model only has 10 multiple hole, only need 10 multiple kinds of molds, after particularly standardization and seriation is carried out, it is 13mm and 15mm that many holes merge formation diameter, pitch of holes is the maximum of standard 50mm, diameter is 9mm and 11mm, pitch of holes is the more of standard 50mm, and enterprise requirements numerical control flat eyelet work product line must cover whole model specification.
(4) existing mold storehouse is analyzed
The die storehouse of numerical control flat eyelet work product line has 25 stations to be divided into A, B, C three types, wherein A and category-B type mould die storehouse the right and left and spacing is 50mm, A type station is the mould that diameter is less than 12.7mm, the mould for 12.8mm to 23mm of Type B, C type station is the mould being greater than 23mm; Because A is identical with the spacing of standardized designs with the spacing of category-B mould, for the adaptive mould of intellectuality provides feasible condition;
(5) existing pair is rushed technology
Existingly two rush technology, adopt fixing two punching, wherein 8 form four two punchings mould, every two moulds measure-alike, and in outside of belly eyelet work product line, owing to there being the main frame of more than two, mould sum is many, and fixing two limitation of rushing is not obvious; In dull and stereotyped eyelet work product line, owing to only having a main frame, mould number is less than or equal to 25 usually, the diameter kind of usual dull and stereotyped mesopore reaches 25 kinds, existing pair is adopted to rush technology, mould most species reaches 21 kinds, causes many dull and stereotyped longerons (the diameter kind in hole is at 22 kinds-25 kinds) cannot punching, and this existing two technology of rushing can not meet the demand of dull and stereotyped longeron punching production line.
Summary of the invention
The object of the invention is to break through traditional numerical control flat eyelet work product line punching pattern (only having one-shot), increase a kind of new processing method (two punching), for the feature of existing fixing two punching, have employed the method for intelligent adaptation mould, (quantity of dummy mould can be 0 to dynamic-configuration dummy mould, 1,2,3,4), it can not only meet the quick punching that diameter kind is less than or equal to 21, and is conducive to the punching that diameter kind is greater than the dull and stereotyped longeron of 21 to 25, reach and namely improve punching speed and precision, the object of whole dull and stereotyped longeron kind can be covered again.
For solving the problems of the technologies described above, the present invention is directed to that current dull and stereotyped longeron punching speed is slow, the shortcoming of punching low precision has carried out technological innovation, to reach the object improving punching speed and precision.
NC program perform object---120 tons of automobile longitudinal girder numerical control flat punching single host production lines, this main frame be equipped with 25 stations die storehouse it can only along Y-direction move forward and backward, machine die storehouse is placed in X direction.Processing work is the dull and stereotyped longeron of automobile frame, length 4-12 rice, width 200-600mm, thickness 5-10mm, hole count 150-400.
This programme is achieved by the following technical measures: a kind of processing method of dull and stereotyped eyelet work product line intelligent adaptation mould, it is characterized in that it comprises the steps: that the Map Element Data reading the adaptive mould of needs is changed into punching press array, Based Intelligent Control carries out intelligent decision to punching press array, when the kind of pixel diameter equals 25 kinds, the quantity of dummy mould is 0, the enabled state of dummy mould is all invalid, only has the unparalleled punching of one-shot; When the kind of pixel diameter equals 24 kinds, the quantity of dummy mould is 1, and the enabled state of dummy mould only has one for effectively its excess-three is individual for invalid, only has a two stamping die; When the kind of pixel diameter equals 23 kinds, the quantity of dummy mould is 2, the enabled state of dummy mould have 2 for effectively all the other 2 for invalid, have 2 two stamping dies; When the kind of pixel diameter equals 22 kinds, the quantity of dummy mould is 3, the enabled state of dummy mould have 3 for effectively other 1 for invalid, have 3 two stamping dies; When the kind of pixel diameter is less than or equal to 21 kinds, the quantity of dummy mould is 4, and the enabled state of dummy mould is all effectively, has 4 two stamping dies; Determine whether to use dummy mould punching, can dummy mould quantity and the enabled state of dummy mould and diameter are put into enable array and diameter array respectively, condition according to the dummy mould calculated is searched in punching press array, marks dull and stereotyped shape library to the group hole change mode bit satisfied condition, write-back group hole; Equal and two circle spacing the are specific length circle of circular diameter in punching press array is exported to pre-processing module and does specific markers position and the data exporting the punching press array changing mode bit carry out automatic adaptation mould; Automatic adaptation molding process carries out by state, the adaptive mould of subregion to all graph datas, the adaptive dummy mould when the state of punching press array is 2, the adaptation entities mould when the state of punching press array is 1, the not adaptive mould when the state of punching press array is 0, and the mold graph of adaptive mould is written back to dull and stereotyped shape library; Read for post-processing step;
Post-processing step reads all mold graphs that automatic adaptation die module outputs to the CAM layer of dull and stereotyped shape library, and die information, the coordinate value of mold graph, the parameters such as mould types of adaptations put into the optimization array defined by pre-processing module, carry out tradition optimization, the Sentence format that the array data after optimizing converts output in order to is presented at and exports in forms and the Sentence format exported is write in NC program file.
The concrete feature of this programme also has, and described Based Intelligent Control step also comprises: die drawing defines: single host defines four dummy moulds, arranges D3 mould and the punching simultaneously of lower row D4 mould for realizing the left side is arranged on D1 mould and lower row D2 mould, the right; D1 and D3 can equally also can not wait, and D2 and D4 can equally also can not wait; Dummy mould: the station of 4 dummy moulds number gets 26-29, identifies 7,9 respectively, 8,10,16,18,17,19 this eight the real two between two punchings having mould, diameter gets the real diameter having mould; X to mould be biased and get second reality and have the biased of mould, and output mask storehouse array is to automatic adaptation die module; Enable array and diameter array: enable array ESC1 (26 To 29) Boolean type ' deposit two 26-29 that rushes and to rush or invalid, diameter array SCD(26 to 29) double ' deposit pair diameter rushing T26 and T29; Two array assignments: the diameter first getting dummy mould 26-29 puts into corresponding array item;
The diameter of SCD (26)=mould numbers 26 ' the diameter of getting No. 26 moulds is the diameter of first pair of punching;
The diameter that the diameter of SCD (27)=mould numbers 27 gets No. 27 moulds is the diameter of second pair of punching;
The diameter that the diameter of SCD (28)=mould numbers 28 gets No. 28 moulds is the diameter of the 3rd pair of punching;
The diameter that the diameter of SCD (29)=mould numbers 29 gets No. 29 moulds is that the diameter of the 4th pair of punching judges the effective or invalid of four dummy moulds again, and result is put into enable array;
The ESC1 (26)=effectively when the diameter of diameter=No. 26 mould of diameter=No. 9 mould of No. 7 moulds, otherwise ESC1 (26)=invalid;
The ESC1 (27)=effectively when the diameter of diameter=No. 27 mould of diameter=No. 10 mould of No. 8 moulds, otherwise ESC1 (27)=invalid;
The ESC1 (28)=effectively when the diameter of diameter=No. 28 mould of diameter=No. 18 mould of No. 16 moulds, otherwise ESC1 (28)=invalid;
The ESC1 (29)=effectively when the diameter of diameter=No. 29 mould of diameter=No. 19 mould of No. 17 moulds, otherwise ESC1 (29)=invalid;
Twoly rush conditional definition module: the equal diameters of holes and equal the diameter of i-th dummy mould and the centre coordinate value Y of holes is equal and the centre coordinate value X of holes differs 50mm and the enable of i-th dummy mould is effective, wherein i=26,27,28,29;
Search module: meet two two two holes rushing condition rushing conditional definition module definition from punching press array circulation searching, after finding, carry out two punching process;
Twoly rush processing module: proceed as follows searching two holes that module finds, the flag in the first hole (Section 4 of punching press array) is set to 2, the flag in the second hole is set to 0, write " SD " in the center in the second hole and the color of " SD " is set to red eye-catching display, cross the hole of mould for distinguishing adaptation and there is no the hole of adaptive mould.
Described automatic adaptation molding process comprises: entity and dummy mould select step: have after selecting module to obtain data from the punching press array that Based Intelligent Control step exports with dummy mould in fact, judge the Section 4 of flag and punching press array, if this position is 2 automatic adaptation dummy moulds number, mould number is had, if this position is 0 not matched mold if this position is that 1 automatic adaptation is real;
Twoly rush automatic adaptation molding process: two automatic adaptation molding process that rushes is when equaling 2 from the real value having the flag of the punching press array selecting step to export with dummy mould and the Section 4 of punching press array to obtain, judge that in punching press array, whether diameter of a circle is equal with the diameter of No. 26-29, dummy mould, if the equal mold graph this dummy mould number is written back in dull and stereotyped shape library, rejudge if etc. do not get next dummy mould;
One-shot automatic adaptation molding process: when one-shot automatic adaptation mould equals 1 from the real value having the flag of the punching press array selecting step to export with dummy mould and the Section 4 of punching press array to obtain, judge that in punching press array, diameter of a circle has the diameter of No. 1-25, mould whether equal with real, there is the mold graph of mould number to be written back in graphic data base this reality if equal, nextly have mould to judge again in fact if etc. do not get;
Mold block figure calls and write back step: mold block figure calls in the mode of block mold shape to be comprised according to the mould of adaptation number with write back step has mould and dummy mould to be written back in dull and stereotyped longeron graphic data base on CAM floor in fact, INS be this hole center and by red display; Block is called mould number, reads for post-processing module.
The adaptive die methods of subregion: judge that the X value in this hole is in odd number rice section or even number rice section, the X value in this hole is have mould or dummy mould in fact with positive sequence is adaptive in odd number rice section, and the X value in this hole is have mould or dummy mould in fact with inverted sequence is adaptive in even number rice section.
Present invention also offers a kind of system of processing for realizing dull and stereotyped eyelet work product line intelligent adaptation mould, it is characterized in that it comprises as lower module: pre-processing module: pre-processing module reads the data of outer mold library file, with the form of block, mold block figure is set up to each mould and the data of each mould are put into die storehouse array; The all pixels reading dull and stereotyped shape library therefrom filter out needs the Map Element Data of adaptive mould to change in punching press array; And the data exporting punching press array are to intelligent control module;
Intelligent control module: intelligent control module carries out intelligent decision according to the punching press array exported pre-processing module, when the kind of pixel diameter equals 25 kinds, the quantity of dummy mould is 0, and the enabled state of dummy mould is all invalid, only has the unparalleled punching of one-shot; When the kind of pixel diameter equals 24 kinds, the quantity of dummy mould is 1, and the enabled state of dummy mould only has one for effectively its excess-three is individual for invalid, only has a two stamping die; When the kind of pixel diameter equals 23 kinds, the quantity of dummy mould is 2, the enabled state of dummy mould have 2 for effectively all the other 2 for invalid, have 2 two stamping dies; When the kind of pixel diameter equals 22 kinds, the quantity of dummy mould is 3, the enabled state of dummy mould have 3 for effectively other 1 for invalid, have 3 two stamping dies; When the kind of pixel diameter is less than or equal to 21 kinds, the quantity of dummy mould is 4, and the enabled state of dummy mould is all effectively, has 4 two stamping dies; Determine whether to use dummy mould punching, can dummy mould quantity and the enabled state of dummy mould and diameter are put into enable array and diameter array respectively, condition according to the dummy mould calculated is searched in punching press array, marks dull and stereotyped shape library to the group hole change mode bit satisfied condition, write-back group hole; To pre-processing module export equal and two circle spacing the are specific length circle of circular diameter in punching press array do specific markers position and the data exporting the punching press array changing mode bit to automatic adaptation die module, character marking is written back in dull and stereotyped shape library;
Automatic adaptation die module: automatic adaptation die module obtains the punching press array having changed state from intelligent control module, and carry out by state, the adaptive mould of subregion to all graph datas, the adaptive dummy mould when the state of punching press array is 2, the adaptation entities mould when the state of punching press array is 1, the not adaptive mould when the state of punching press array is 0, and the mold graph of adaptive mould is written back to dull and stereotyped shape library; Read for post-processing module;
Post-processing module: post-processing module reads all mold graphs of the CAM layer of the graphic data base that automatic adaptation die module exports, and die information, the coordinate value of mold graph, the parameters such as mould types of adaptations put into the optimization array defined by pre-processing module, carry out tradition optimization, the Sentence format that the data of array convert output in order to is presented at and exports in forms and the Sentence format exported is write in NC program file.
The concrete feature of this programme also has, and described intelligent control module also comprises: die drawing defines: single host defines four dummy moulds, arranges D3 mould and the punching simultaneously of lower row D4 mould for realizing the left side is arranged on D1 mould and lower row D2 mould, the right; D1 and D3 can equally also can not wait, and D2 and D4 can equally also can not wait; Dummy mould: the station of 4 dummy moulds number gets 26-29, identifies 7,9 respectively, 8,10,16,18,17,19 this eight the real two between two punchings having mould, diameter gets the real diameter having mould; X to mould be biased and get second reality and have the biased of mould, and output mask storehouse array is to automatic adaptation die module; Enable array and diameter array: enable array ESC1 (26 To 29) Boolean type ' deposit two 26-29 that rushes and to rush or invalid, diameter array SCD(26 to 29) double ' deposit pair diameter rushing T26 and T29;
Two array assignments: the diameter first getting dummy mould 26-29 puts into corresponding array item;
The diameter of SCD (26)=mould numbers 26 ' the diameter of getting No. 26 moulds is the diameter of first pair of punching;
The diameter that the diameter of SCD (27)=mould numbers 27 gets No. 27 moulds is the diameter of second pair of punching;
The diameter that the diameter of SCD (28)=mould numbers 28 gets No. 28 moulds is the diameter of the 3rd pair of punching;
The diameter that the diameter of SCD (29)=mould numbers 29 gets No. 29 moulds is that the diameter of the 4th pair of punching judges the effective or invalid of four dummy moulds again, and result is put into enable array;
The ESC1 (26)=effectively when the diameter of diameter=No. 26 mould of diameter=No. 9 mould of No. 7 moulds, otherwise ESC1 (26)=invalid;
The ESC1 (27)=effectively when the diameter of diameter=No. 27 mould of diameter=No. 10 mould of No. 8 moulds, otherwise ESC1 (27)=invalid;
The ESC1 (28)=effectively when the diameter of diameter=No. 28 mould of diameter=No. 18 mould of No. 16 moulds, otherwise ESC1 (28)=invalid;
The ESC1 (29)=effectively when the diameter of diameter=No. 29 mould of diameter=No. 19 mould of No. 17 moulds, otherwise ESC1 (29)=invalid;
Twoly rush conditional definition module: the equal diameters of holes and equal the diameter of i-th dummy mould and the centre coordinate value Y of holes is equal and the centre coordinate value X of holes differs 50mm and the enable of i-th dummy mould is effective, wherein i=26,27,28,29;
Search module: meet two two two holes rushing condition rushing conditional definition module definition from punching press array circulation searching, after finding, carry out two punching process;
Twoly rush processing module: proceed as follows searching two holes that module finds, the flag in the first hole (Section 4 of punching press array) is set to 2, the flag in the second hole is set to 0, write " SD " in the center in the second hole and the color of " SD " is set to red eye-catching display, cross the hole of mould for distinguishing adaptation and there is no the hole of adaptive mould.
Described automatic adaptation die module comprises: entity and dummy mould select module: have after selecting module to obtain data from the punching press array that intelligent control module exports with dummy mould in fact, judge the Section 4 of flag and punching press array, if this position is 2 automatic adaptation dummy moulds number, mould number is had, if this position is 0 not matched mold if this position is that 1 automatic adaptation is real; Twoly rush automatic adaptation die module: two automatic adaptation die module that rushes is when equaling 2 from the real value having the flag of the punching press array selecting module to export with dummy mould and the Section 4 of punching press array to obtain, judge that in punching press array, whether diameter of a circle is equal with the diameter of No. 26-29, dummy mould, if the equal mold graph this dummy mould number is written back in dull and stereotyped shape library, rejudge if etc. do not get next dummy mould; One-shot automatic adaptation die module: when one-shot automatic adaptation die module equals 1 from the real value having the flag of the punching press array selecting module to export with dummy mould and the Section 4 of punching press array to obtain, judge that in punching press array, diameter of a circle has the diameter of No. 1-25, mould whether equal with real, there is the mold graph of mould number to be written back in graphic data base this reality if equal, nextly have mould to judge again in fact if etc. do not get; Mold block figure calls and write-back module: mold block figure calls and in the mode of block, mold shape (comprise and have mould and dummy mould in fact) is written back in dull and stereotyped longeron graphic data base on CAM floor according to the mould of adaptation number with write-back module, and INS is the center in this hole and uses red display; Block is called mould number, reads for post-processing module.
The adaptive die methods of subregion: judge that the X value in this hole is in odd number rice section or even number rice section, the X value in this hole is have mould or dummy mould in fact with positive sequence is adaptive in odd number rice section, and the X value in this hole is have mould or dummy mould in fact with inverted sequence is adaptive in even number rice section.
the invention has the beneficial effects as follows: the processing method of (1) a kind of dull and stereotyped eyelet work product line intelligent adaptation mould of the present invention, whole longerons that the range of work covers various model specification are dull and stereotyped, standard product is improve to the process velocity of automobile longitudinal beam flat plate, higher than traditional method efficiency.
(2) processing method of a kind of dull and stereotyped eyelet work product line intelligent adaptation mould of the present invention, improve the machining accuracy of automobile longitudinal beam flat plate, this is because the realization of two punching is only relevant with the frame for movement of die storehouse, the alignment error of the shake of beam when the repetitive positioning accuracy of it and leading screw, clamp exchange, the mould of different station same size, the error of perpendicularity and opposite clearance error have nothing to do, and solve the shortcoming of group hole low precision.
(3) the intelligentized processing method realizing a kind of dull and stereotyped eyelet work product line intelligent adaptation mould of the present invention, in order to avoid unbalance loading, mould near C type station both sides is defined as two stamping die, the station of 4 dummy moulds number gets 26-29, identify 7,9 respectively, 8,10,16,18,17,19 this eight the real two punchings having mould.When 7,9(8,10,16,18,17,19) station diameter equal between two time, the two punching of the standardization for 9mm, 11mm, 13mm, 15mm; When 7,9,8,10(16,18,17,19) station diameter four is used for 13mm, 15mm(or 9mm, 11mm time equal) the two punching of standardization, replace punching by odd number rice section and even number rice section, to reduce the heating of mould, extend the life-span of mould; When having 1-3 group equal in 7,9,8,10,16,18,17,19 these four groups of moulds, two punching is carried out in equal combination; When the diameter of 7,9,8,10,16,18,17,19 these four groups of moulds is all unequal, unparalleled punching can to the product punching of manufacturing experimently longeron and 25 kinds of bore dias.
Intelligent punching press is the layout of hole type distributes according to longeron flat panel products and die storehouse mould, automatically produces dummy mould and enable number thereof, automatically selects punch pattern (one-shot or two punching), the punching number of times of the NC program created is few, the time that processing runs is short, and efficiency is high, and precision is good.Apply method of the present invention and only increase the definition (realizing with control software design) of two punching when not increasing hardware cost, can more than 20-30% be raised the efficiency to the numerical control flat eyelet work product line standard product of existing numerical control flat eyelet work product line or coming of new.
The processing method of dull and stereotyped eyelet work product line intelligent adaptation mould of the present invention, verify in dull and stereotyped longeron punching production line, do a large amount of test comparison experiments, for the dull and stereotyped longeron of user, this longeron beam length 11000mm dull and stereotyped longeron width 480mm, whole hole count 360, the hole count meeting two punching is 87 right, when other conditions are identical, save time 87 × 1 seconds=87 seconds=1.45 points, namely adopt conventional method to process this beam and need 7 minutes, process this beam by two mode of rushing and need clock more than 5 points, raising speed more than 20%, also greatly improve in the precision of punching.Therefore the present invention compared with prior art, achieves technical purpose.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and example, the present invention will be further described.
Fig. 1 is the processing method system block diagram of dull and stereotyped eyelet work product line intelligent adaptation mould;
Fig. 2 is that the die storehouse of dull and stereotyped eyelet work product line and 1-25 mould are real mould, in figure, front-seat 7 and No. 9 moulds form No. 26 and twoly rush dummy mould, after in figure, row's 8 and No. 10 moulds form No. 27 and twoly rush dummy mould, in figure, front-seat 16 and No. 18 moulds in the right form No. 28 and twoly rush dummy mould, in figure on the right of 2 after row's 17 and No. 19 moulds form No. 29 dummy moulds, complete that two moulds are two rushes task respectively.
Fig. 3 is the processing method DFD of dull and stereotyped eyelet work product line intelligent adaptation mould
Fig. 4 is the flow chart of dull and stereotyped eyelet work product line intelligent adaptation mould
Detailed description of the invention
For making object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment referring to auxiliary figure, the present invention is described in further detail.
Fig. 1 is the processing method system block diagram of dull and stereotyped eyelet work product line intelligent adaptation mould.Comprise three parts, CAD part is the figure drawing dull and stereotyped longeron; CAM part is core content, and function reads the longeron drawing of dull and stereotyped longeron shape library, carries out Intelligent treatment, automatic adaptation mould, optimizes, and creates NC program; Part III program performs object---automobile longitudinal girder numerical control flat punching single host production line, and CAM part comprises:
Step 1: first pre-processing module carries out the initialization of system: definition die storehouse array, punching press array, optimization array, CAM layer, simulation layer and public variable,
The data structure of punching press array is two-dimensional array, Public DATA1 (3000,6) As Double ' deposits Map Element Data, data item has: 0: pixel sequence number, 1: the X value of pixel centre coordinate, 2: the Y value of pixel centre coordinate, 3: diameter of a circle, 4: flag 0-not adaptive mould mark 1-is real mould adaptation mark 2-dummy mould adaptation mark
Optimizing array is also two-dimensional array, Public PData (600,4) As String ' deposits and rushes point data, data item has: 0: punching point sequence number, 1: the X value of mold block insertion point, 2: the Y value of mold block insertion point, 3: mould number, 4: the X value+mould X-direction of mold block insertion point is biased, for post-processing module;
Die storehouse array is two-dimensional array, and Public MOJU (29,7) As Variant ' deposits die storehouse: station, type, size X, size Y, size R, dimension D, angle, X-direction is biased, for functional modules such as automatic adaptation die module, post-processing module;
Enable array ESC1 (26 To 29) Boolean type, deposits two 26-29 that rushes and to rush or invalid;
Diameter array SCD (26 To 29) floating type, deposits the diameter of diameter 1-diameter 4, the T26-T29 mould of two punching;
Public variable: Public PROGNUM As String ' program number
Public BANLENTH As String ' panel length
Public BANWIDTH As String ' strip width
Public HOUDU As String ' thickness
Public PNum As Integer ' effective hole countings etc. more than 100, are respectively used to each functional module.
The parameter of forms is then set, leave in the public variable of data definition module definition, parameter has program number, beam length, dull and stereotyped longeron width, thickness, X stroke, Y stroke etc. and these public variables is passed to each functional modules such as automatic adaptation die module, post-processing module;
Carry out again
cAD figure reads: the connection of setting up CAD and CAM, read all pixels of dull and stereotyped longeron shape library, filter out the entity that pixel title equals circle, obtain the entity attributes value center of circle and straight warp, the 1st, the 2nd and the 3rd that the coordinate value Y in the coordinate value X in the center of circle, the center of circle and diameter value D is changed the punching press array Data1 into the definition of data definition module, 4th is set to 1, DATA1 is by the ascending sequence of coordinate value X of the 1st circle of position heart, and the data exporting the punching press array Data1 after sequence are to intelligent control module;
Step 2:
intelligent control module:
intelligent control moduleexport all data in the punching press array Data1 after sequence to pre-processing module, single host defines four dummy moulds, arranges 14.5mm mould and the punching simultaneously of lower row 15mm mould for realizing the left side is arranged on 13mm mould and lower row 14mm mould, the right; The station of 4 dummy moulds number gets 26-29, identifies 7,9 respectively, 8,10,16,18,17,19 this eight the real two punchings having mould, diameter gets the real diameter having mould; X to mould be biased and get second reality and have the biased of mould,
Enable array and diameter array: ESC1 (26 To 29) Boolean type ' deposit two 26-29 that rushes and to rush or invalid, SCD(26 to 29) double ' deposit pair diameter rushing T26 and T29
Two array assignments: the diameter first getting dummy mould 26-29 is put into corresponding array item and judged the effective of four dummy moulds again or invalid result put into enable array, and condition is
7,9,26 3 effective otherwise invalid for equal for die size then ESC1 (26)
8,10,27 3 effective otherwise invalid for equal for die size then ESC1 (27)
16,18,28 3 effective otherwise invalid for equal for die size then ESC1 (28)
17,19,29 3 effective otherwise invalid for equal for die size then ESC1 (29),
Equal diameters and equal the diameter of i-th dummy mould and the centre coordinate value Y of holes is equal and the centre coordinate value X of holes differs 50mm and the enable of i-th dummy mould is effective, wherein i=26,27,28,29, to recirculate realization with three, the data in each hole are got in outer circulation, the data in another hole are got in middle circulation, Inner eycle gets each dummy mould number, the enable signal satisfied pair being rushed its i-th dummy mould of condition is that genuine a pair group of hole rushes process (SameTimeP (i, j)) simultaneously
--twoly rush processing module: proceed as follows searching two holes that module finds, the flag in the first hole (Section 4 of punching press array) is set to 2, the flag in the second hole is set to 0, write " SD " in the center in the second hole and the color of " SD " be set to red eye-catching display from punching press array Data1, search distance be 50 diameters be the hole of 15 or 17, two punching process is carried out: the first hole type is set to twoly rush SC=2 in punching array Data1 if found, second hole type is set to not rush SC=0, the center in the second hole in " SD " flagged write back to dull and stereotyped longeron shape library is shown with special color, be punched in this hole type in punching array Data1 and be set to one-shot SC=1 if not two and export punching press array data1 to automatic adaptation die module,
Step 3: automatic adaptation die module: comprise real have to select mold block with dummy mould, twoly rush automatic adaptation die module, one-shot automatic adaptation mould, mold block write-back module;
Have in fact and select module with dummy mould: have in fact after selecting module to obtain data from the punching press array that intelligent control module exports with dummy mould, judge flag data1 (i, 4),
As data1 (i, 4)=2 automatic adaptation dummy mould number
Mould number is had as data1 (i, 4)=1 automatic adaptation is real
As data1 (i, 4)=0 not matched mold;
Twoly rush automatic adaptation die module: two automatic adaptation die module that rushes is from the real flag data1 (i having the punching press array selecting module to export with dummy mould, 4) when=2, if this X value selected is in the odd number rice section of 1000*i, get the mould (positive sequence) before dummy mould, if this selects the even number rice section at 1000*i, get dummy mould mould below (inverted sequence)
One-shot automatic adaptation mould: one-shot automatic adaptation mould is from the real flag data1 (i having the punching press array selecting module to export with dummy mould, 4) when=1, if this X value selected is in the odd number rice section of 1000*i, get the real mould (positive sequence 1-25) had before mould, if this selects the even number rice section at 1000*i, get and have mould mould below (inverted sequence 25-1), the flag data1 (i of punching press array in fact, 4)=0, not adaptive mould;
Mold block write-back: the mold block figure that mold block write-back exports from mold block figure calling module is written back to mold shape (comprise and have mould and dummy mould in fact) dull and stereotyped shape library in the mode of block, and INS is the center in this hole and uses red display; Block is called mould number, reads for post-processing module.
Step 5:
post-processing module:post-processing module reads all mold graphs of the dull and stereotyped shape library that automatic adaptation die module exports, and die information, the coordinate value of mold graph, the parameters such as mould types of adaptations put into the optimization array defined by pre-processing module, carry out tradition optimization, the Sentence format that the array data optimized converts output in order to is presented at and exports in forms and the Sentence format exported is write in NC program file, export NC program to performing in object-digital control system of automobile longitudinal beam flat plate numerical control punching production line in processing run.
Fig. 3 is the processing method DFD of dull and stereotyped eyelet work product line intelligent adaptation mould, mainly contain two data flow, first data flow is from figure to automatic adaptation mould write-back graphic data base, longeron figure in a dull and stereotyped shape library reads the set of formation pixel through CAD figure and (comprises circle, line, size marking, polygon, rectangle, circular arc, oval etc.), pixel set is filtered through screening circle becomes round set, the set of circle obtains two property value (centers of circle, radius) become the set of centre point diameter, the set of centre point diameter is assigned to the 1st of punching press array (i.e. DATA1) through the X-coordinate of centre point, the Y-coordinate of centre point is assigned to the 2nd of punching press array, diameter is assigned to the 3rd of punching press array, 4th assignment of punching press array is 1, represent one-shot, and by the ascending sequence of X value, enter intelligent control module, the content of die storehouse puts into moju array, the size of dummy mould puts into scd, according to the content determination enable array Esc1 of moju array and scd array, with the hole of the two punching of triple circulation searching, carry out two punching process if found, do not meet two condition of rushing and carry out one-shot operational processes, enter automatic adaptation die module, when data1 (i, 4)=2, judge that the X value in this hole is in odd number rice section or even number rice section, the X value in this hole is with adaptive four dummy moulds of positive sequence in odd number rice section, namely by 26,27, the order of 28,29 is adaptive, and the X value in this hole is with adaptive four dummy moulds of inverted sequence in even number rice section, namely by 29, the order of 28,27,26 is adaptive, as data1 (i, 4) when=1, judge that the X value in this hole is in odd number rice section or even number rice section, the X value in this hole is have mould by adaptive 25 realities of positive sequence in odd number rice section, the order of namely pressing 1-25 is adaptive, the X value in this hole is have mould by adaptive 25 realities of inverted sequence in even number rice section, and the order of namely pressing 25-1 is adaptive, and this part completes the content of the adaptive mould of subregion, when data1 (i, 4)=0, not adaptive mould, the mold block of adaptive mould is written back in dull and stereotyped shape library, read for second data flow,
Second data flow flows back to from first data the die information writing dull and stereotyped shape library, to creating NC program, mould set is become by reading dull and stereotyped shape library mold block, mould set is by obtaining the insertion point co-ordinate of mold block, mould number, then the X-coordinate through insertion point is assigned to the 1st that optimizes array pdata, the Y-coordinate of insertion point is assigned to the 2nd that optimizes array pdata, mould number is assigned to the 3rd that optimizes array pdata, X-coordinate+the mould of insertion point is biased the 4th that is assigned to and optimizes array pdata, formed and optimize array, optimize array through pressing mould size sequence (namely by the 3rd of pdata), become and optimize array in order, orderly optimization array is biased ascending sequence by X-coordinate+mould becomes ordered queue, ordered queue carries out analog simulation demonstration by visual display, ordered queue is changed by punching Sentence format and is exported and forms NC program.
Fig. 4 is the flow chart of dull and stereotyped eyelet work product line intelligent adaptation mould, mainly contains the following step:
Step 1: pre-processing module: defined by data; realize by 401; data definition module definition die storehouse array MOJU (49; 7), punching press array DATA1 (3000; 6), array PDATA (600 is optimized; 4), enable array Esc1(26 to 29); size array SCD(26 to 29); simulation layer and public variable PROGNUM program number, BANLENTH panel length, BANWIDTH strip width; HOUDU thickness; the CLQD strength of materials, PNum effective hole countings etc. more than 100, are respectively used to each functional module;
cAD figure reads: 402 to 408 realize the connection of first setting up CAD and CAM, read all pixels of Plate Beam shape library, filter out the entity that pixel title equals circle, obtain the entity attributes value center of circle and straight warp, the 1st that the coordinate value Y in the coordinate value X in the center of circle, the center of circle and diameter value D changes into punching press array Data1,2nd, the 3rd; 4th initial value is 1 expression one-shot, and the data exporting punching press array Data1 are to intelligent control module;
Step 2: intelligent control module: the reading of die storehouse, enable array, size array and assignment: 409 to 412 realize, the content of die storehouse puts into moju array, the size of dummy mould puts into scd, and according to the content determination enable array Esc1 of moju array and scd array, condition is:
7,9,26 3 effective otherwise invalid for equal for die size then ESC1 (26)
8,10,27 3 effective otherwise invalid for equal for die size then ESC1 (27)
16,18,28 3 effective otherwise invalid for equal for die size then ESC1 (28)
17,19,29 3 effective otherwise invalid for equal for die size then ESC1 (29)
Twoly rush condition, two punching is searched, two punching process: realize by 413 to 426, it is one three search procedure recirculated, outer circulation variable i, intercycle variable j, Inner eycle variable K, the data in reading two holes are realized and this holes is not all processed by two punching by outer circulation and middle circulation, the span of Inner eycle variable K is 26-29 tetra-dummy moulds, twoly rush condition: holes equal diameters and diameter equal scd (k) and the equal and X item spacing of holes of the Y value of holes equals 50 and this dummy mould effectively enable, meet and carry out two punching process, i.e. two punch mark data1 (i, 4)=2, data1 (j, 4)=0, jump out Inner eycle, do not satisfy condition, Inner eycle is got next dummy mould and is judged, repeat 414 to 426, complete intelligent control module,
Step 3: automatic adaptation die module: 427 to 436 realize; Comprise real have to select mold block with dummy mould, when data1 (i, 4)=2, judge that the X value in this hole is in odd number rice section or even number rice section, the X value in this hole is with adaptive four dummy moulds of positive sequence in odd number rice section, namely by 26,27,28, the order of 29 is adaptive, the X value in this hole is with adaptive four dummy moulds of inverted sequence in even number rice section, namely by 29,28, the order of 27,26 is adaptive; As data1 (i, 4) when=1, judge that the X value in this hole is in odd number rice section or even number rice section, the X value in this hole is have mould by adaptive 25 realities of positive sequence in odd number rice section, the order of namely pressing 1-25 is adaptive, the X value in this hole is have mould by adaptive 25 realities of inverted sequence in even number rice section, and the order of namely pressing 25-1 is adaptive, and this part completes the content of the adaptive mould of subregion; When data1 (i, 4)=0, not adaptive mould; The mold block figure write-back module of adaptive mould in dull and stereotyped shape library, read for post-processing module;
Step 4: post-processing module
:437 to 438 realize, and read all mold data of the dull and stereotyped shape library of automatic adaptation die module write-back, put into and optimize array PData, and increase the biased of this mould of coordinate value X+ of an insertion point, and the biased of mould obtains from die storehouse array; Optimize the coordinate value X of array the 1st block insertion point, the coordinate value Y of the 2nd block insertion point, the 3rd mould number, this mould of coordinate value X+ of the 4th insertion point biased, optimize array and be biased ascending sequence by X+ mould; The optimization array data of having sorted generates NC program creation and analog simulation; Processing runs into dummy mould number in running, and two realities corresponding to machine die storehouse have mould to press down punching simultaneously, run into tangible mold number, one-shot.