It is a kind of to judge the method that technique edges are entered in wiring board profile milling
Technical field
It is more particularly to a kind of to judge the method that technique edges are entered in wiring board profile milling the present invention relates to circuit board manufacturing area.
Background technology
At present in the graphic designs designed with technique edges, when having outline edge raised or being recessed, toward work
Skill side milling, which enters and enters certain distance toward two side millings, just can ensure that plate profile in kind meets data figure, at present in what situation
Lower milling is entered, milling is entered in what situations and side is while the judgement that technique edges are entered in milling is still judged by human eye, it is impossible to ensured in kind and pre-
Phase design configuration is consistent, and technique edges design is slow, extremely influences delivery efficiency, and be easily caused scrap, customer complaint etc. is asked
Topic.
The content of the invention
Present invention offer is a kind of fast and automatically, accurately to judge that the method for technique edges is entered in wiring board profile milling.
Present disclosure is:
It is a kind of to judge the method that technique edges are entered in wiring board profile milling, comprise the following steps:
The first step, before profile graphic designs, sets a zero point, rectangular coordinate system is set up, to ensure profile frame line all
It is horizontal or vertical;
Second step, with the rising of profile frame line, stop x, y-coordinate save as the first order of Hash table, with first order Hash table
The other line segments met with it for rising, finding out centered on stop in the setting margin of tolerance of every line segment of middle preservation rise, only
Point x, y-coordinate, set up in the form of multilevel hash table and preserve the outline drawing of Customer design, if arc then preserves the center of circle and sat simultaneously
Mark;
Whether the 3rd step, travels through Hash table in a circulating manner, obtain the two ends of all profile frame lines and need milling to enter portion
Whether simultaneously toward the side judged result that also milling is entered when division technique side, milling are entered;
4th step, line line meets depending on the then size of foundation intersecting point coordinate and non-profile frame line other end coordinate, bank
Meet then according to friendship(Cut)Depending on the size of the central coordinate of circle of point coordinates and arc, specific determination methods are illustrated by accompanying drawing;
5th step, connects these line segments to form production needs according to the estimate of situation at all profile frame line two ends
Design outline closed figure.
Judge that situation is entered in the milling for being stored in the line segment AB of the first order profile frame line of Hash table A ends:If AB is only first
Belong to a certain section of circumscribed rectangle side, if then point A(Or B)Four summits of not circumscribed rectangle one of them when, this point
Position should milling enter the segment distance of technique edges one, it is the value corresponding to key that A point coordinates is then taken out from the Hash table second level, i.e., with
The list of line segment or the coordinate of arc that the point coordinates meets, the searching loop list,
If line segment AB is vertical, that line segment traversed(It is set to AC)C point Y-coordinate compared with A point Y-coordinate
And obtain a result(If A is line segment AB lower end and Y_a>If Y_c or A are line segment AB upper end and Y_a<Y_c, should be toward side milling
Enter, otherwise do not enter toward side milling);
If what is traversed is arc(It is set to AOC), with regard to comparison point A and the center of circle(If A is line segment AB upper end, if center of circle O is outside
Cut beyond rectangle and Y_a<Y_o or center of circle O are within circumscribed rectangle and Y_a>It should enter during Y_o toward side milling;
If A is line segment AB lower end, if center of circle O is beyond circumscribed rectangle and Y_a>Y_o or center of circle O are within circumscribed rectangle
And Y_a<It should enter during Y_o toward side milling, if line segment AB is horizontal, that line segment traversed(It is set to AC)C points X
Coordinate is compared and obtained a result with A point Y-coordinate;
If A is line segment AB left end and X_a>If X_c or A are line segment AB right-hand members and X_a<X_c, should enter toward side milling,
Otherwise do not enter toward side milling;
If what is traversed is arc(It is set to AOC), with regard to comparison point A and the center of circle(If A is line segment AB left end, if center of circle O is outside
Cut beyond rectangle and X_a>X_o or center of circle O are within circumscribed rectangle and X_a<It should enter during X_o toward side milling;
If A is line segment AB right-hand member, if center of circle O is beyond circumscribed rectangle and X_a<X_o or center of circle O are within circumscribed rectangle
And X_a>It should enter during X_o toward side milling), once being learnt during traversal certainly needs milling to enter, then can jump out this traversal, then goes to judge
Situation is entered in the milling of another end points or other profile frame line.
The present invention judges that wiring board profile milling enters the methods of technique edges and uses the obtained design outline figure of methods described complete
Meet actual production wiring board in milling profile entirely, the feed of milling cutter takes into full account that what milling cutter itself size brought actually mills out
The influence that profile is not inconsistent with customer requirement, majority milling cutter diameter is 1mm at present, if the wiring board profile of client is not the square of rule
Shape(Most cases are such), then because milling cutter itself is round, run into re-entrant angle corner position will the non-milling of residual fraction arrive, so as to lead
Reality and different design are caused, and then causes product is unqualified to be forced to do over again or even scrap or customer complaint, is judged by the method
Go out these re-entrant angles position should many millings enter after technique edges, above-mentioned adverse consequences can be avoided completely, additionally, due to it is all judgement all by
Program voluntarily judges, it is to avoid the mistake that human intervention is caused, while whole results can be obtained the short time, then is about to this certainly by program
A little line segments connect into final design profile figure according to judged result, can significant increase CAM personnel design efficiency and correctness.
Brief description of the drawings
Fig. 1 judges that wiring board contour structures schematic diagram in the methods of technique edges is entered in wiring board profile milling for the present invention;
Fig. 2 judges that the structure that the side of wiring board four in the methods of technique edges enters work side with milling is entered in wiring board profile milling for the present invention
Schematic diagram;
Fig. 3 is left side lower middle portion partial enlarged drawing in Fig. 2;
Fig. 4 is the enlarged drawing of corner position in Fig. 2.
Embodiment
The present invention is further described with reference to specific embodiment:
It is a kind of to judge the method that technique edges are entered in wiring board profile milling, comprise the following steps:
The first step, before profile graphic designs, sets a zero point, rectangular coordinate system is set up, to ensure profile frame line all
It is horizontal or vertical;
Second step, with the rising of profile frame line, stop x, y-coordinate save as the first order of Hash table, with first order Hash table
The other line segments met with it for rising, finding out centered on stop in the setting margin of tolerance of every line segment of middle preservation rise, only
Point x, y-coordinate, set up in the form of multilevel hash table and preserve the outline drawing of Customer design, if arc then preserves the center of circle and sat simultaneously
Mark;
Whether the 3rd step, travels through Hash table in a circulating manner, obtain the two ends of all profile frame lines and need milling to enter portion
Whether simultaneously toward the side judged result that also milling is entered when division technique side, milling are entered;
4th step, line line meets depending on the then size of foundation intersecting point coordinate and non-profile frame line other end coordinate, bank
Meet then according to friendship(Cut)Depending on the size of the central coordinate of circle of point coordinates and arc, specific determination methods are illustrated by accompanying drawing;
5th step, connects these line segments to form production needs according to the estimate of situation at all profile frame line two ends
Design outline closed figure.
Judge that situation is entered in the milling for being stored in the line segment AB of the first order profile frame line of Hash table A ends:If AB is only first
Belong to a certain section of circumscribed rectangle side, if then point A(Or B)Four summits of not circumscribed rectangle one of them when, this point
Position should milling enter the segment distance of technique edges one, it is the value corresponding to key that A point coordinates is then taken out from the Hash table second level, i.e., with
The list of line segment or the coordinate of arc that the point coordinates meets, searching loop list, if line segment AB is vertical, is traversed
That line segment(It is set to AC)C point Y-coordinate compared with A point Y-coordinate and obtained a result(If A is line segment AB lower end and Y_a>
If Y_c or A are line segment AB upper end and Y_a<Y_c, should enter toward side milling, otherwise not enter toward side milling);If what is traversed is arc
(It is set to AOC), with regard to comparison point A and the center of circle(If A is line segment AB upper end, if center of circle O is beyond circumscribed rectangle and Y_a<Y_o or
Center of circle O is within circumscribed rectangle and Y_a>It should enter during Y_o toward side milling;If A is line segment AB lower end, if center of circle O is circumscribed
Beyond rectangle and Y_a>Y_o or center of circle O are within circumscribed rectangle and Y_a<It should enter during Y_o toward side milling, if line segment AB is water
Flat, then that line segment traversed(It is set to AC)C point X-coordinate compared with A point Y-coordinate and obtained a result;If A is line segment
AB left end and X_a>If X_c or A are line segment AB right-hand members and X_a<X_c, should enter toward side milling, otherwise not enter toward side milling;
If what is traversed is arc(It is set to AOC), with regard to comparison point A and the center of circle(If A is line segment AB left end, if center of circle O circumscribed rectangle with
Outer and X_a>X_o or center of circle O are within circumscribed rectangle and X_a<It should enter during X_o toward side milling;If A is line segment AB right-hand member,
If center of circle O is beyond circumscribed rectangle and X_a<X_o or center of circle O are within circumscribed rectangle and X_a>Should be toward side milling during X_o
Enter), once being learnt during traversal certainly needs milling to enter, then can jump out this traversal, then go to judge another end points or other profile side
Situation is entered in the milling of wire.
With reference to instantiation, the profile of wiring board in the design of the present invention, wiring board profile as shown in Figure 1, figure is described
Wire 1, is provided with one or more recessed position 2 in four sides of profile wire 1, recessed position 2 can for semicircle or fillet or
Right angle.Wherein the lower left corner for the present invention will set 0. 11, if it is exactly this in fact that we, which connect profile frame line,
The circumscribed rectangle of wiring board.
Plus the profile after technique edges is as shown in Fig. 2 it is exactly technique edges 5 than those parts that upper figure has more, in recessed position 2
The recessed position of upper correspondence is exactly that work side 6 is entered in so-called milling, and having most of position also side, also a segment distance, such as fillet phase are entered in milling
Work side 6 is entered in corresponding milling;Some do not enter toward side milling, and work side 6 is entered in such as corresponding milling in right angle:
Fig. 3 is Fig. 2 lower middle portion partial enlargements, and such as icon shows:Line segment AB is exactly a certain section of profile frame line, it is understood that
It is the left side of the circumscribed rectangle of wiring board certain is a bit of, and AB be it is vertical, due to A points do not fall circumscribed rectangle some
Summit, thus at A points should milling enter technique edges, concurrently there are the arc AOC met with AB in A points, and the circumscribed square of point O assist sides
Outside shape and Y_a<Y_o, therefore certain distance should be entered to B end mills.
In addition, to B points position, (as shown in Figure 4) is checked in amplification, this figure is the enlarged drawing of the corner position of B points there, is passed through
Amplification, it is understood that corner is really the false arc connected into by multistage line segment, then now judge that the milling of B points position enters situation then
Should judge the mode that line segment meets with line segment:Because B points all do not fall within certain of the circumscribed rectangle of wiring board profile as A points
On individual summit, thus B points should milling enter the segment distance of technique edges one, and line segment AB and line segment BP meets at B points, due to AB be it is vertical,
And X_b<X_p, therefore B points should be while milling be entered toward another section of line segment AB(This example is A ends)A segment distance is entered in milling.
It can accurately show that situation is entered in all millings according to the method described before, and the method for above-mentioned derivation can pass through program
To realize, so CAM personnel designed lines plate profile the efficiency that will significantly improve, improve design and compatible degree.
The foregoing is only a preferred embodiment of the present invention, not makees any formal limitation to the present invention;It is all
The those of ordinary skill of the industry can be shown in by specification accompanying drawing and described above and swimmingly implement the present invention;But, it is all
Those skilled in the art without departing from the scope of the present invention, using disclosed above technology contents
The equivalent variations for a little variation, modification and evolution made, are the equivalent embodiment of the present invention;Meanwhile, it is all according to the present invention
The variation, modification and evolution of any equivalent variations made to above example of substantial technological etc., still fall within the present invention's
Within the protection domain of technical scheme.