Numerical control system prepares functional amplification to design

  • Time:
  • Click:124
As mechanical equipment change ceaselessly, numerical control machine tool is gaining ground stage by stage, and in treatment of mechanical spare parts, the system of machine tool of ordinary numerical control has general preparative function only (G function) . If machine a simple square antrum, want to edit through the program and be machined via relapsing for many times, ability finishs speech of this one party. If the part is a bit complex, not only machine program is bigger, data is much, process designing time is long, and occurrence mistake is checked not easily also. Additional, machine the spare parts of likeness of a lot of appearance, want new process designing every time, very between take time. To solve this one problem, can take work out particular kind the plan of special program. If manufacturer is offerred have in the program fixed program and when repeating pattern, can deposit some one special share as the subprogram, make the program simplifies. If contain grand program optional when the function, return the set that can adopt systematic parameter, become written grand program set the G function of fixed loop. What the author uses is XKA738CCNC Milling, what it uses is FANUK-0MJ system () of system of the following abbreviation, deserve to have " user grand program B " , it can undertake variable process designing to the spare parts not only, and the G function that can become grand order principal part fixed loop through parameter set. Retain the function that forms with a group of commands like the subprogram lay aside is in memory, command the function of memory the delegate with (like G___) , the command machine tool that enters according to writing only can execute its function. Call this group of orders that put store the user grand program, call an user grand order order on behalf of the command. In system of numerical control of structure of principal part of grand order of graph 1 1, if grand program structure pursues 1, the program name manufacturer in systematic parameter already set is O9010 -- , O9019, the G code that should decide with proper motion only calls number of program of grand order principal part, with respect to the treatment that can have corresponding figure. Adopt parameter set, can choose to whether show grand program go up in screen, be changed by the fault to avoid a program, had better choose screen, but defect is the cursor in treatment won't move, end till this function. Additional, other program name cannot v this grand program. The user is treatment process partly among grand order principal part, pass variable to its assignment, can undertake fixed circular machining, program end returns a main program through M99. Of principal part of 2 grand orders compile a figure give priority to with variable in principal part of 2 grand orders, have operation, move with variable. Its purpose should make similar spare parts arrives centrally inside a limits not only, and the structure wants concise, accord with treatment measure, the memory that take up wants small. In working as a result of software system, be to use interrupt inquiry to control fashion, when need changes working position, put forward to interrupt application to CPU by PIO, CPU issues corresponding move statement via judgement, the machine tool has campaign according to the instruction again. It is with round antrum treatment now exemple (the 2) that be like a graph, will consider the design train of thought of grand program. Variable use and operation in this system, the address that appoints in I of set independent variable and in the user the variable name that uses inside grand order principal part is one to one correspondence, this variable is systematic variable, use at calculative additionally communal variable, the system did not make a provision, can use arbitrarily (except systematic variable) . Variable operation, want to be written according to systematic regulation, be like: #102)1/2 writes #100=(#110 × into: 100=SQRE [#110*#102] is become #100 ≥ 5 when, transfer N6 paragraph, those who be written into IF [#100GE5]GOTO6 to design variable of system of program train of thought is affirmatory want to be opposite above all in round antrum treatment the letter in the variable date in independent variable I and the G instruction that order oneself is corresponding, it affects the way that the spare parts machines directly. If coordinate of the centre of a circle is worth X, Y (#24, #25) , the radius D(#7) of round antrum, r(#18) of cutting tool radius, machine deepness Z(#26) , b(#2) of rough machining frequency, mental allowance K(#6) , every time feed deepness Q(#17) , it is treatment direction A(#1) next, safe height H(#11) , feed F(#9) . Flow chart of round antrum treatment and program flow chart are the important step of work out program, the course is reasonable, flow chart is crucial, the place of the moving contrail that it affects treatment directly and move is logical (the 3) that be like a graph. Graph 3 O9012; #100=#26-#6; #101=#9*5; #102=#7-#6-#18; #103=#102/#2; #104=#25+#7-#18; #105=#5-#18; G00X#24 Y#25; G00Z#11; #106=0; N100#106=#106+#17; G01Z-#106 F#9; IF[#102 EQ 0]GOTO 150; #107=0; N110 #106=#107+#103; #108=#107+#25; G01 Y#108 F#101; IF[#1 EQ 1]GOTO 120; IF[#1 EQ-1] GOTO 130; N120 G03 X#24 Y#108 IO J-#107; GOTO 140; N130 G02 X#24 Y#101 IO J-#107; N140 IF[#107 LT #102] GOTO 110; N150 IF[#106 EQ #26] GOTO 160; G00 Y#25; IF[#106 LT #100]GOTO 100; #106=#106+#6-#17; GOTO 100; N160 G01Y#104; G03 X#24 Y#104 IO J-#105; G00 Z#11; M99; The G instruction that is grand program set fixed loop can write afore-mentioned grand order principal part according to flow chart, pass set of grand program of parameter general O9012 to be the G instruction of fixed loop. Use this kind of means to still can write other G instruction, be like square antrum, all cloth aperture the treatment process designing that wait, use at the spare parts to machine. Parameter set is adopted here grand program O9012 is G202, dictate the form is: G202 X, Y, Z, H, Q, K, D, R, B, A, F, among them B, cut for every deep, round antrum needs to divide surplus of N second cutting. Exemple: Treatment F100mm × 2mm, F80mm × 2mm two round antrum, the centre of a circle is apart from coordinate origin to be A(40 respectively, 40) , B(-30, 70) , 16mm of milling cutter diameter, process designing is as follows: O0012 N1 G54 G90 G40 G17; N2 S500 M03; N3 G00 X0 Y0; N4 Z50; N5 G202 X 40 Y40 Z2.

1H2 Q1 K0.

1D50 R8 B5 A1 F50; (The A that go against mill is nodded) N6 G202 X-30 Y70 Z2.

1H2 Q1 K0.

1D40 R8 B3 A-1 F50; (Suitable mill B is nodded) N7 G00 Z50; N8 G00 X0 Y0; N9 M30; 3 epilogue pass pair of process designing of similar spare parts in machining, and solidify dictates to secure a loop, make the efficiency of process designing has not only very big rise, and still can avoid process designing the mistake on trival occurrence computation. Additional, the development of these G functions applies, saved what offer manufacturer to buy similar function afresh to the technology a large sum of capital. CNC Milling