Abstract:
A generating device for CNC drilling program and the method of generating CNC drilling program and RAM for computer to allow computer to execute production of CNC drilling program. The generating device for CNC drilling program can accomplish the tedious printing arrangement and calculation work based on the customer&#39;s original drilling program and the inputting drilling-hole numerical data. The precision of the present device is high and the efficiency of drilling is obtained.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    (A) Field of Invention  
           [0002]    This invention relates to a CNC (computer numeric control), and in particular, a generating device for CNC drilling program and the method of producing CNC drilling program and the recording media used for the same.  
           [0003]    (B) Description of the Prior Art  
           [0004]    As shown in FIG. 1, CN C drilling program needs a plurality of tedious steps and calculation in order to achieve its object. The original program has to be input into CAD/CAM, and then proceed to printing arrangement, and editing steps and it normally takes up several hours. By means of PE2 software to edit and calculate to proceed with zero point setting, drill conversion, printing holes, inspection hole, making of opening, and circular holes. All these have to be calculated manually and then inputted into PE2 program It is laborious and time consuming and this will affect the production operation.  
           [0005]    As the operation needs to be operated under PE2 and CAD/CAM, there are human errors occurred and rectification process is needed and therefor the working efficiency cannot be improved. Accordingly, it is an object of the present invention to provide a generating device for CNC drilling program, which overcomes the above-mentioned drawbacks.  
         SUMMARY OF THE INVENTION  
         [0006]    The present invention is directed to a generating device for CNC drilling program, wherein the customer provides only the original program and the input drilling holes numerical data, the present generating device for CNC drilling program can complete the tedious steps of printing arrangement and calculation steps without employing CAD/CAM and PE2 or manual calculation. Thus, operation cost for such is greatly saved.  
           [0007]    It is an object of the invention to provide a generating device for CNC drilling program, wherein the production of CNC drilling program is automatic.  
           [0008]    Yet an object of the invention to provide a generating device for CNC drilling program, wherein a recording media for production of CNC drilling program is provided.  
           [0009]    Features and advantages of the invention will be evident from the following detailed description of the preferred embodiment described in conjunction with the attached drawings.  
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0010]    [0010]FIG. 1 is flowchart of a conventional method to produce CNC drilling program.  
         [0011]    [0011]FIG. 2 is flowchart for the generating device for CNC drilling program in accordance with the present invention.  
         [0012]    [0012]FIG. 3 is a display page of the generating device for CNC drilling program in accordance with the present invention.  
     
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT  
       [0013]    With reference the drawings, in particular to FIGS. 2 and 3, there is shown a flowchart of producing CNC drilling program in accordance with the present invention. A customer must provide the original program for drilling hole and input the program at column a of the path file name of the original program shown in FIG. 3. The scanning device of the present generating device scan the original program for drilling hole to obtain the number of drills and the coordinates of the drilling hole data and are display at column q of Number of Drills shown in FIG. 3. The customer can designate the storage of the accomplished CNC drilling program into column b of the conversion program path file name.  
         [0014]    The drilling hole numerical data are input in sequence as shown in FIG. 3 by the customer, and these data include the quadrant at column c, the width X and the height Y of the single plate respectively at column d and e and determine whether proceed to printing arrangement (Y/N) at f. If printing arrangement is needed the number of plate on the horizontal row has to be inputted into column g and the spaced distance shall be inputted at column h, the number of plate on the vertical row has to be inputted into column I and the spaced distance between vertical row shall be inputted at column j. In addition, the selection of circuit board being either a single face or a dual face is made at column k. After the above data has been inputted, the CNC drilling program generating device will preliminary calculate the exact total length and width to display at column l and m and the total length and width of the cut board are shown at column n and o.  
         [0015]    Based on the original program of the drilling hole, the number of drills (for instance, T1, T2) will be shown in column q. The diameter of the drilling needle should be inputted at column r. If an opening or a circular hole is required, the column s has to be inputted with X or Y, showing that an opening or a circular hole is made at the X-axis or the Y-axis, and the length of the opening or the diameter of the circular hole is made at column t or u. At this instance, the numerical data of the drilling hole has been fully inputted. The present generating device will automatically calculate a drilling program which can be executed on the CNC tool.  
         [0016]    Based on the original program and the numerical data of the drilling hole, if the quadrant for input is 1 or 4, sub program A is page and the calculation of the zero point setting (X-axis) is executed as follows:  
           Q= 12.008− x /2/25.4  (1)  
         [0017]    wherein x is the real total length and width. The value of Q is a 6-digit with 2 numbers in front of the decimal, otherwise, a zero has to be supplemented and no decimal has to be denoted. For instance, if the value for Q is 1.234. Then the number in the column should be 012340.  
         [0018]    If the utilize quadrant is 2 or 3, sub program B is page to execute the calculation of zero-point setting (Y-axis). Equation 2 is shown as follows:  
           Q= 12.008− y /2/25.4  (2)  
         [0019]    wherein y is the real total overall length and width.  
         [0020]    Based on the input numerical data, the diameter of the needle is in mm and it must be converted to inch. Based on the equation for common hole, C[T]:T is the needle diameter/25.4  
         [0021]    For square hole, C[T]: 1.2 mm/25.4  
         [0022]    For circular hole, C[T]: 3.0 mm/25.4  
         [0023]    Based on the value at the column k, whether the circuit board is single face or a dual face can be determined. For dual surface, sub program C is page.  
         [0024]    The diameter of each needle has to be added 0.15 inch and is saved at the formatted content position.  
         [0025]    For specific needle to proceed with opening or circular hole, sub-program D is page and the automatic speed reducing of motor is executed and is saved at the formatted content position.  
         [0026]    For drilling program format, the first drill (T01) secures the drilling printing hole. At this instance, sub program E is page to execute the calculation of printing hole. If the printing holes are 4, the position of the printing holes are determined based on the size of the cut board and the coordinates are calculated as follow and the calculated values are converted into a specific format and saved at the formatted content position.  
         (0, −3.8/25.4)  (3)  
         (x/25.4, −3.8/25.4)  (4)  
         (x/25.4, (y+3.8)/25.4)  (5)  
         (0, (y+3.8)/25.4)  (6)  
         [0027]    After the coordinate for the position of the printing hole is calculated, the coordinate of the position of the inspection hole (0.2, −3.8/25.4) is calculated and is saved in the formatted content position.  
         [0028]    After the first drill (T01) has completed the drilling of the printing hole, the data of the first drill within the drilling original program is obtained and a second drill (T02) is used. Similarly all the drill data within the original program is added with 1. Next inspection to determine either an opening or a circular hole. If the sub-program F and G is proceeded if such drill is needed to execute the opening or the circular hole calculation and is saved in formatted content position. The calculation of opening is as follows:  
         ( t−r )/2/25.4 =L  (inch)  (7)  
         [0029]    If Y axis does not change, the value at the formatted content is X  
         (n+L)YmG85X(n−L)Ym  (8)  
         [0030]    If X axis does not change, the value at the formatted content is XnY  
         (m+L)G85XnY(m−L)  (9)  
         [0031]    wherein t is the length of the opening, r is the diameter of the drilling needle, n is the X axis coordinate of the original program, m is the Y axis coordinate of the original program.  
         [0032]    The calculation of the circular hole is as follows:  
         [ u −(3.0/2)]/25.4 =P  (inch)  (10)  
         XnYmG84P  (11)  
         [0033]    wherein u is the diameter of the circular hole, n is the X axis coordinate of the original program, and m is the Y axis coordinate of the original program. If printing arrangement is needed, subprogram H is page and calculation of printing arrangement is executed. The purpose of printing arrangement is that repeat drilling of the horizontal and vertical plates under the similar drills and the same original program. Thus the calculation for printing arrangement based on the number of plate and spaced apart of the vertical and horizontal rows and the formatted content value is as follows:  
         R(g−1)M20X[(d+h)/25.4]Y  (12)  
         R(i)M20XY[(e+j)/25.4]  (13)  
         [0034]    wherein d is the input value for the width of a single plate, e is the input value for the height of the single plate, g is the number of plate for the input horizontal row, and h is the spaced distance of the input horizontal row, i is the number of plate for the input vertical row, and j is the spaced distance of the input vertical row.  
         [0035]    After each drill has completed the drilling the hole has to be inspected and the drill being damaged or not has also been inspected. After the drill has completed the drilling of the circuit board, sub program I is page and the calculation for the position of the inspection hole has to be executed and is saved at formatted content position.  
         [0036]    If the original program is at M30, the program is completed and no drill is in existence. The drilling hole program must be ended with M30. If M30 has not been reached this indicates that there is another drill and the LOOP 1  of the flowchart in FIG. 2 has to be repeated until the program is ended.  
         [0037]    In accordance with the present invention, the generating device includes a display interface. As shown in FIG. 3, the required drilling numerical data must be inputted and calculate the total drilling holes number and the quoted charges. Thus the used can obtained a quoted charge from the screen of the display and the CNC drilling program without manual calculation. The efficiency of the CNC drilling program generation is improved.  
         [0038]    In accordance with the present invention, the function of the sub program is as follows:  
         [0039]    A: zero point setting (X-axis)  
         [0040]    B: zero point setting (Y-axis)  
         [0041]    C: Automatic adding  
         [0042]    D: Motor automatic speed reducing  
         [0043]    E: Printing hole  
         [0044]    F: Opening calculation  
         [0045]    G: Circular hole calculation  
         [0046]    H: Printing arrangement calculation  
         [0047]    I: Inspection hole.  
         [0048]    The present invention also relates to a method of using a program to generate CNC drilling program comprises the following steps: receiving the original program for drilling hole; inputting drilling hole numerical data; calculating zero-point setting value based on the original program and the drilling hole numerical data; performing calculation for an opening or circular hole based on the original program and the drilling hole numerical data; and performing printing-arrangement calculation based on the drilling hole numerical data.  
         [0049]    By means of the scanning drills of the original program, the number of drills and the coordinate of drilling hole can be obtained. To input the drilling hole numerical data, the utilized quadrant, the width and height of the single plate, the length, width and the number of the printing arrangement, single surface or dual surfaces of the circuit board, the diameter of the drill, the size of the opening or the circular hole have to be inputted. The above data will be displayed at the screen and the total number of drilling hole and the quoted charges for the drilling holes will be displayed.  
         [0050]    In view of the above, the customer provides only the original program and the input drilling holes numerical data, the present generating device for CNC drilling program can complete the tedious steps of printing arrangement and calculation steps without employing CAD/CAM and PE2 or manual calculation. Thus, operation cost for such is greatly saved.  
         [0051]    The above method is completed using computers and the computer programs can be stored in RAM media such as diskette, optical disc, hard disc, IC memories.  
         [0052]    It is to be understood that the description of the preferred embodiment is intended to be only illustrative, rather than exhaustive, of the present invention. Those of ordinary skill will be able to make certain additions, deletions, and/or modifications to the embodiment of the disclosed subject matter without departing from the spirit of the invention or its scope, as defined by the appended claims.