The numerical control process designing that the curve machines is analysed

  • Time:
  • Click:128
  • source:DELENO CNC Machining
The trade is made in mechanical, mould, often encounter curvilinear treatment. To simple curve -- circular arc, g code provided statement of G2, C3, I, J, K, R, draw up very easily numerical control program. But to a few complex, special curves -- elliptical, parabola, involute, still have of course more complex tall second curve, groovy method is helpless. The author is carried out according to old job, pass have the aid of software of a few tools, via special processing, draw up G code program will solve this kind of problem. Commonly used method has 3 kinds: ① uses the powerful function of G code, draw up grand program. Mastercam of software of tool of ② have the aid of, create curvilinear program. ③ uses C language (or other language) produce a program advocate data file, next the hand is moved functional sentence is imposed in file head end, make the program that can run. These 3 kinds of methods have respective actor, defect and suitable scope, can complement each other. 1.

It offerred the grand program of G code variable, arithmetic manipulation dictates (add, decrease, by, except) , functional function (SIN, COS, TAN, ... ) , still control dictates (IF -- GO-TO, WHILE -- DO) . Use these statements ably, can solve a lot of simpler, curves that have the law, wait like sinusoid, parabola. Exemple 1: Sinusoid (the 1) that be like a graph. Main program main program... G65P9910AOB360. C100. F100... variable of ministry of play a game of chess installs #l=0 #2=360.

00 #3=100.

00 #9=100.

00 09910(subprogram) WHILE[#1IE#2]DO1 #10=#3*SIN[#1] G90Gl#lY#10F#9 #1=#1+10. END1 of course, this law still can convey more complex curve. Grand order is small fine, small to storage space device is very applicable. Have very strong adaptability, should alter only 9 data can undertake rough machining. Dan Jihui is acerbity difficult, logic is complex, the mistake in the process discovers not easily, helpless to particularly complex curve. This kind of method is taller to the requirement of process designing personnel, need code of very skilled G, include not commonly used statement, want to have quite solid advanced maths knowledge, be familiar with CNC Machining operation even. The application of Mastercam software 2.

Use Mastercam software this software applies extensively at CNC Machining, the interface kisses and, yi Xueyi is used, can solve G code the problem with grand insoluble program. The workpiece that gives out with the article is exemple, if the graph is shown 2 times, its curve is defined by the coordinate dot of a few disperse (use at measuring) , if subordinate list place is shown. With Mastercam processing, operation flow is as follows: ① establishs a point first, be worth scale by coordinate all and known drop. ② becomes all points by order couplet Spline curve. ③ chooses to machine means. ④ creates machine program. Concrete move is as follows: The 1st pace, create, Point, Position, input coordinate value directly next, first axis of the Y after X axis, separate with comma among. The 2nd pace, after waiting for all giving to decide data input to end, command Create, Spline, Auto-matic, systematic clew choice is nodded the first times, the 2nd dot and the last dot, click one by one after finishing, the system generates Spline batten curve automatically. The 3rd pace, command Toolpaths, Finish, Chain, what click a curve with the mouse is right (end) upright, choose End Here order, after affirming Done, shoot a dialog box of parameter of Tool Parameters cutting tool, choose appropriate cutting tool according to need, again switch arrives Finish Parameters dialog box, if the graph is shown 3 times, choose cutting parameter. Special attention wants in this process of a few important parameter affirmatory: ① Linearization decides to machine precision, its are worth smaller precision taller, criterion the process is longer also, general 0.

01 enough. Meaning of ② Compensa-tion Type is choice knife filling type, commonly used is Computer and Con-trol two kinds. Computer is according to cutting tool actual condition computation gives cutting tool contrail, generating program, need not the knife fills; Control takes no account of cutting tool norms, create the program that the knife fills. ③ Compensation Direction, choose knife filling way, the basis machines means and operation method and can decide commonly. An administrative menu is played after above parameter is affirmatory, if pursue,4 are shown. The 4th pace, click Post key, open aftertreatment dialog box, if the graph is shown 5 times, fix operating system of machine tool numerical control, what choose here is FANUC system, the file is MPLFAN. , attention: Aftertreatment file with MPL begin, ever since a few numerical control operating systems that show simplified a book. If want to change,be other system, through Change Post key undertakes choosing, and command of pitch on Edit, click 0K key next, generating program. The treatment of this workpiece fumbles through a few: When be being machined for the first time, use directly give out the coordinate value of the dot, one will is approximately between 2 o'clock linear, the instruction that use G1 draws up program. The curve that as a result treatment comes out is 19 paragraphs of broken line, it is disperse the dot is too few and far between cause. The 2nd, nod disperse in AutoCAD2002 use command of batten curve Spline to string, divide a curve with vertical line, divide into equal parts what it goes up in X axis is umbriferous, beg the coordinate of the dot come out, increased a number of the dot. And be in artificially original two are inserted a certain number of dot, write a program entirely. Although this law can solve a problem, but very trival, and the program is huge, easy make mistake. The 3rd, use Mastercam, use batten line to rise the dot of disperse repeatedly, create the program that contented precision asks directly, with the method 2 photographs are compared, generating program is small fine, correct rate is high. This method is efficient, simple, convenient, can solve the curvilinear form that gives disperse point only, inferior to handlers requirement. The data process designing that the curve machines 3.

With C language (or other language) the data main body of generating program some product, its appearance is a very complex curve equation, it is very difficult to use grand program (impossible even) draw up it come, and Mastercam cannot input function equation. Right now, a future life of language of C of have the aid of becomes data principal part. Exemple: Equation of lathe work curve is as follows: ≤ of 0 ≤ X 22.

1Y=200.

2 + 140.

653 √ B B=0.

008754 (X/168) + 6.

1455 (X/168) 2 - 4.

87544 (X/168) 3 + 0.

568749 (X/168) 4 + 0.

76587 (X/168) 5 it is very difficult in Mastercam scale. Will calculate with C language its disperse dot, the process is as follows: #include " Math. H " #include " Conio. H " #include " Stdio. H " { of Main () Double A, b, d, c, i, e; FILE*fp; Fp=fopen(" D: \ S77.

Txt " , " W + " ) ; For(i=0; I<22.

1; I=i + 0.

/ of C=i of { of / of * of ③ of 1) / * 168; B=0.

008754*c + 6.

1455*c*c - 4.

87544*c*c*c + 0.

568749*c*c*c*c + 0.

76587*c*c*c*c*c; D=0.

3333*log(b) ; E=exp(d) ; A=200 of / of * of / * ① .

2 + 140.

65*e; Printf(of / of * of / * ② " Z=% .

4f " , i) ; Printf(" X=% .

4f \ N " , a) ; Fprintf(fp, " Z% .

3fX% .

3f \ N " , i, a) ; The result outputs file S77.

TXT* / } Printf (" Ok " ) ; ② of ① of program of } of Getch () used a formulary A=eIna two sentences, b leaves 3 times just is the 1 / of 6 namely 3. This program is in TC2.

0 through. Run this program to get S771.

Txt file, with the editor (any, like notebook) open, should add a function in head end only sentence, it is program of a practicable. Its principle is: Any curves can be divided into countless very short curves, every very short curve can consider as one Duan Zhi line approximately. Tend when the length of every paragraphs of curve zero hour, also tend with linear error 0. Enough much rise repeatedly point-blank can replace a paragraph of curve, change the curve into so finite paragraph linear. Linear process comes true very easily, the problem gets simplifying. For as far as possible reduce curvilinear error, length of every paragraphs of curve wants as far as possible short, the circular condition in the program is so chief (control curve length, + of the I=i that note ③ 0.

1 0 medium.

1) can be obtained very small. But the order of such make it will be very large, much redundant data arises. Curvature and error become direct ratio, because the condition is chief fixed, in curvature small local error is small, curvature is 0 (namely linear) when have much useless data (can be abandoned completely and do not affect program) , and in curvilinear curvature big local error is bigger. Neozoic machine tool capacity of system of its numerical control is very large, need not consider the size of the program too much so, in order to assure curvilinear precision (line outline is spent) for the first important or urgent business. If want to generate to do not have redundant small order, should use to 2 to beg guide wait for mathematical knowledge, very complex, herein is not made discuss. CNC Milling