The G code of CNC machining center is detailed and analytic

  • Time:
  • Click:153
  • source:BACHTEL CNC Machining
G code is the instruction in numerical control program. Call G statement commonly. 1.

Name of code function code - the function summarizes G00------G01 of fast fixed position------Linear interpolation G02------G03 of interpolation of clockwise circular arc------G04 of interpolation of anticlockwise direction circular arc------Time time-out G05------Pass G06 of interpolation of intermediate dot circular arc------Parabola interpolation G07------G08 of interpolation of Z batten curve------Feed quickens G09------Feed decelerate G10------Data installs G16------G17 of polar coordinates process designing------Machine XY planar G18------Machine XZ planar G19------Machine YZ planar G20------Imperial dimension (Frank system) G21-----Metric dimension (Frank system) G22------G220 of means of radius dimension process designing-----The system uses G23 on operation interface------G230 of means of diametical dimension process designing-----The system uses G24 on operation interface------The subprogram ends G25------Jump turn treatment G26------Machine G30 circularly------Fold cancels G31------Fold defines G32------Wait for pitch whorl cutting, imperial G33------Wait for pitch whorl cutting, metric G34------Add G35 of pitch whorl cutting------Decrease G40 of pitch whorl cutting------Cutting tool is compensated / cutting tool slants buy cancels G41------Cutting tool is compensated -- left G42------Cutting tool is compensated -- right G43------Cutting tool slants buy -- G44------Cutting tool slants buy -- negative G45------Cutting tool slants buy + / + G46------Cutting tool slants buy + / - G47------Cutting tool slants buy - / - G48------Cutting tool slants buy - / + G49------Cutting tool slants buy 0/+G50------Cutting tool slants buy 0/-G51------Cutting tool slants buy + / 0G52------Cutting tool slants buy - / 0G53------Linear deflection, cancel G54------G55 of set workpiece coordinate------Set workpiece coordinate 2 G56------Set workpiece coordinate 3 G57------Set workpiece coordinate 4 G58------Set workpiece coordinate 5 G59------Set workpiece coordinate 6 G60------Accurate way way (essence of life) G61------Accurate way way (in) G62------Accurate way way (thick) G63------Attack whorl G68------Cutting tool slants buy, g69 of an internal angle------Cutting tool slants buy, quoin G70------Imperial dimension (be Xi Menzi this, of Frank is G21) G71------G74 of metric dimension millimeter------Wind reference point (machine tool at 0 o'clock) G75------Return process designing coordinate at 0 o'clock G76------Car whorl is compound circular G80------Fixed loop cancels G81------The circle secures circular G331 outside-----Whorl secures circular G90------Absolute dimension G91------Relative to dimension G92------Prefab coordinate G93------Time reciprocal, feed leads G94------Feed rate, minutely feed G95------Feed rate, every turn feed G96------Constant linear velocity controls G97------Cancel constant linear velocity to control 2.

Functional detailed sees pattern of fast fixed position: G00 X(U)__Z(W)__ explains: (1) this instruction makes cutting tool moves to appoint the position quickly according to means of dot position control. Must not undertake machining to workpiece in mobile process. (The rate that axis of 2) all process designing defines with parameter place at the same time is floating, walk along process designing value to stop when some axis, and other axis continues to move, (The coordinate that 3) does not move is beardless process designing. (4)G00 can write into G0 exemple: G00 X75 Z200G01 U-25 W-100 is X and Z go at the same time first 25 nod to A quickly, catch Z to go again 75 nod to B quickly. G01, linear interpolation format: G01X(U)__Z(W)__F__(mm/min) explains: (1) this instruction makes cutting tool moves to appoint the position according to linear interpolation means. Floating rate is by speed of F instruction feed. All coordinate are OK linkage moves. (2)G01 also can write into G1 exemple: Two axes of G01 X40 Z20 F150 linkage chooses form of the interpolation that go against a circle to B from A dot 1: G02X(u)____Z(w)____I____K____F_____ explains: (1) X, Z is when G90, coordinate of circular arc terminus is relative to process designing the absolutely coordinate 0 o'clock is worth. When G91, circular arc terminus is the increment size of start of opposite circular arc. No matter G90, when G91, the centre of a circle that I and K are circular arc is opposite the increment coordinate at start. I is X direction value, K is Z direction value. Coordinate of the centre of a circle must not omit when circular arc interpolation, unless use other form process designing. (2) when G02 instruction process designing, can have made up quadrantal circle directly, full circle. Note: When crossing quadrant, can undertake clearance is compensated automatically, if parameter area end inputs clearance to compensate great disparity of as actual as the machine tool backlash, can arise to cut mark apparently on workpiece. (3) G02 also can be written into G2. Exemple: Format of G02 X60 Z50 I40 K0 F120 2: G02X(u)____Z(w)____R (+ - ) __F__ explains: (1) the process designing that cannot be used at making a circle (2) the radius that R is arc of workpiece unilateral R. R is take a sign, "+ " state circular arc horn is less than 180 degrees; "- " state circular arc horn is more than 180 degrees. Among them " + " can omit. (3) it is with terminal point coordinate accurate, when the length cost of terminus and start is more than 2R, criterion with replacing circular arc point-blank. Exemple: Format of G02 X60 Z50 R20 F120 3: G02X(u)____Z(w)____CR=__ (radius) F__ format 4: G02X(u)____Z(w)__D__ (diameter) F___ format of these two kinds of process designing is basically datival the 2 identical interpolation that arrange a circle show pattern: Besides circular arc direction of rotation contrary outside, format and G02 statement are same. G04, time time-out format: G04__F__ or G04__K__ explain: Treatment campaign pauses, after time arrives, continue to machine. Suspensive time is appointed by the data at the back of F. The unit is a second. Limits is 0.

01 seconds arrive 300 seconds. Form of circular arc interpolation chooses among: G05X(u)____Z(w)____IX_____IZ_____F_____ explains: (1) X, z is terminal coordinate value, IX, IZ is value of intermediate dot coordinate. Other and G02/G03 similar routine: G05 X60 Z50 IX50 IZ60F120 quickens / decelerate format: G08 explains: They take group alone in block, when moving to this paragraph in the program, feed rate will increase 10% , if should increase 20% need,write two alone paragraphs. Format of radius process designing: G22 explains: Take group alone in the program, criterion the system moves with radius means, the below numerical value in the program also is it is with radius accurate. G23(G230) , format of means of diametical dimension process designing: G23 explains: Take group alone in the program, criterion the system moves with diametical means, the below numerical value in the program also is it is with the diameter accurate. Jump turn treatment format: G25 LXXX explains: When the program executes this paragraph of order, shift the block that it appoints. (XXX is block date) . G26, process a form circularly: G26 LXXX QXX explains: When the program executes this paragraph of order, the block that it appoints begins this paragraph as body of a loop, circular time is decided by the numerical value at the back of Q. Fold cancels a format: G30 explains: Take group alone in the program, cooperate to use with G31, cancel the function of G31. Fold defines a format: G31 F_____G32, wait for pitch thread machining (imperial) G33, wait for pitch thread machining (metric) format: G32/G33X(u)____Z(w)____F____ explains: (1) X, Z is worth for terminal coordinate, f is pitch (2) G33/G32 can machine whorl of short-hilted broadsword, only head only. (3) the change that X is worth, can machine awl whorl (4) when using this statement, the rotate speed of main shaft cannot too tall, otherwise cutting tool wears away bigger. G50, set workpiece coordinate / set main shaft is highest (low) rotate speed format: G50 S____Q____ explains: S gives priority to an axis top rotate speed, q gives priority to G54 of axial lowest rotate speed, set workpiece coordinate one format: G54 explains: There can are a few coordinates in the system is, g54 correspondence is fastened at the first coordinate, numerical value of its origin position is in machine tool parameter set. G55, set workpiece coordinate 2 Alexandrine G56, set workpiece coordinate 3 Alexandrine G57, set workpiece coordinate 4 Alexandrine G58, set workpiece coordinate 5 Alexandrine G59, set workpiece coordinate format of way of 6 Alexandrine and accurate way: G60 explains: In machining a process actually, when a few movements are together repeatedly, when using accurate method process designing, so when undertaking issueing a paragraph of treatment, will have an amortize process (meaning namely decelerate) format of continuous way way: G64 explains: opposite G60. Basically use at rough machining. G74, wind reference point (machine tool at 0 o'clock) format: G74 X Z explains: (1) this paragraph in must not appear other content. (2) appear at the back of G74 coordinate general with X, Z ordinal time 0. (3) must affirm the machine tool assembled reference point switch before use G74. (4) also can undertake odd axis is answered 0. G75, return process designing coordinate at 0 o'clock format: G75 X Z explains: Return process designing coordinate at 0 o'clock G76, return process designing coordinate initial drop pattern: G76 explains: Return the position that begins treatment to cutting tool. G81, outside round (inside round) fixed loop format: G81__X(U)__Z(W)__R__I__K__F__ explains: (1)X, z is terminal coordinate value, u, w is opposite for terminal photograph the increment size at current drop. (2)R is the wants treatment diameter with sectional start. (3)I is thick car feed, k is fine vehicle feed, i, K is counted to have a sign, and both symbol should identical. The symbol agrees as follows: By cutting of extroversion center axle (the circle outside the car) for " , " , turn over this to be " + " . (The X with different 4) , z, the switch with the different circle outside R decision, be like: Have taper or did not spend, be being spent to awl or retrorse taper, left cutting or right cutting. (The speed that 5)F machines for cutting (after Mm/min)(6) machines an end, cutting tool stops to be on terminus. Exemple: G81 X40 Z 100 R15 I-3K-1 F100 machines a process: 1: G01 feed the first knife is the I(of 2 times I, last knife is) of I+K fine vehicle, undertake deepness cutting: 2: Two axes of G01 interpolation, cutting comes terminal and sectional, if machine an end to stop: 3: G01 retreats knife I to arrive safe place, undertake tangent plane handles glossily assisting at the same time 4: G00 fast feed arrives outside I of senior engineer face, obligate I undertakes next cutting are machined, repeat to 1. G90, format of process designing of absolute value means: G90 explains: (When program of 1)G90 be classified, the coordinate of all be classified is worth after is entirely was at 0 o'clock with process designing fiducial. (After 2) system electrify, the machine tool lies G condition. Format of process designing of means of increment of N0010 G90 G92 X20 Z90N0020 G01X40 Z80 F100N0030 G03X60 Z50 I0 K-10N0040 M02: G91 explains: When program of G91 be classified, all coordinate are worth later all position of a coordinate is calculated before as start process designing value of motion. In department of below one paragraph of coordinate, came as initial drop before from beginning to end process designing. Exemple: Coordinate of workpiece of set of N0010 G91 G92 X20 Z85N0020 G01X20 Z-10 F100N0030 Z-20N0040 X20 Z-15N0050 M02 fastens a format: G92 X__ Z__ explains: (1)G92 changes the coordinate value that the system indicates currently only, not mobile reference axis, achieve the goal of set coordinate origin. (The effect of 2)G92 is the coordinate of point of a knife that will show changes set value. (The XZ at the back of 3)G92 can enroll respectively, also can make up completely. G94, feed rate, minutely feed explains: This is a machine tool switch on the mobile phone acquiescent condition. G20, the subprogram calls a pattern: G20 L__N__ explains: (The program name after the to want to call subprogram N after 1)L, but cannot input N. Allow to take digital 1~99999999 only at the back of N. (2) this paragraph the program does not get occurrence above to describe the content beyond. Subprogram end returns a form: G24 explains: (1)G24 states the subprogram ends, return those who call this subprogram program to issue a paragraph. (2)G24 and G20 appear in couples (3)G24 this paragraph not instruction of other of be patient of appears. 3.

Example exemple: Be in what the subprogram calls the parameter in the process to transfer a process through leaving a specification, notice to use program name please: If P10M03 S1000G20 L200M02N200 G92 X50 Z100G01 X40 F100Z97G02 Z92 X50 I10 K0 F100G01 Z-25 F100G00 X60Z100G24 wants for many times to call, use M03 S1000N100 G20 L200N101 G20 L200N105 G20 L200M02N200 G92 X50 Z100G01 X40 F100Z97G02 Z92 X50 I10 K0 F100G01 Z-25 F100G00 X60Z100G24G331 by following formats please, format of thread machining loop: G331 X__Z__I__K__R__p__ explains: (1)X changes to the diameter, x=0 is straight whorl (2)Z is whorl length, absolutely or opposite process designing all but (3)I is the in X direction length removing remaining part after whorl is cut, ± is worth (the diameter of 4)R thread outside diameter and root diameter is poor, be worth (the loop of whorl of 5)K pitch KMM(6)p machines a frequency, divide a knife to cut clew namely: 1, feed deepness is R ÷ P and take every time whole, last knife not feed will make whorl range solely 2, inside the bearing direction to decide I is worth name that whorl withdraws X of end basis edge. 3, the position of rest that thread machining circulates is what aim point of a knife whorl outside round place. Example: M3G4 F2G0 X30 Z0G331 Z-50 X0 I10 K2 R1.

5 P5G0 Z0M054.

Note 1, G00 and G01G00 motion contrail have mix point-blank broken line two kinds, this instruction just is used at choosing location, cannot use at cutting to machine G01 to press the eye punctuation that appoints feed speed to move to be appointed to the instruction with sharp movement way, use at cutting to machine commonly 2, G02 and G03G02: ? Show shut Qu not 〔 Piao?G03: ? Ugly shut Qu not delay time of 〔 Piao? , G04(or stop instruction of of short duration) invert with Yu Zheng commonly grooving of aperture of aperture of blind of switch, treatment, a flight of stairs, turning 4, plane of G17, G18, G19 chooses to dictate, appoint planar treatment, use at milling machine and machining center G17:X commonly- Y is planar, can omit, also can be as parallel as X-Y plane planar G18:X- Z plane or to it parallel plane, x-Z is only planar in numerical control lathe, need not appoint G19:Y technically- Z plane or to it parallel plane 5, G27: of instruction of reference point of G27, G28, G29? Does pray die young comfort is envy contrary to does happy event of Fei of ⑷ of  Hu Luo comfort 28: of Man of envy lot extensive? Does die young of far  pray comfort is envy contrary to is Lai of bits of ň   contrary to 〨 29: ? Comfort forcedly Zuo of  of stand upright of envy Zhui pray 28 cooperate to use 6, G40 of G40, compensation of radius of G41, G42: Cancel cutting tool radius to compensate 7, G43 of G43, compensation of length of G44, G49: Length is compensating G44: Length loses compensation G49: Cancel cutting tool length to compensate 8, G32, G92, G76G32: Whorl cutting G92: Whorl cutting secures circular G76: Whorl cutting is compound circulate 9, turning treatment: G70, G71, 72, G73G71: Axial thick vehicle is complex circular instruction G70: Finish machining is compound circular G72: End panel turning, g73 of loop of radial thick car: Profile modeling thick car circulates 10, milling machine, machining center: G73: High speed deep aperture pecks get G83: Deep aperture pecks get G81: Bore loop G82: Deep Kong Zuan cuts circular G74: G84: of left thread machining coming back? Lean on?G76 of commonplace of  Yan duckweed: Essence of life bores hole circular G86: Bore hole treatment loop G85: G80 of aperture of bore with a reamer: Cancel to dictate circularly 11, G90 of process designing means, G91G90: G91 of absolutely coordinate process designing: Increment coordinate process designing 12, G50 of instruction of main shaft set: Main shaft is highest the set G96 of rotate speed: Constant linear velocity controls G97: Main shaft rotate speed controls (cancel constant linear velocity to control an instruction) G99: Return R to nod (the aperture intermediate) G98: Return reference point (final aperture) 13, main shaft positive and negative turns stop instruction M03, M04, M05M03: Main shaft is passing M04: Main shaft inverts M05: Main shaft stops 14, M07 of cutting fluid switch, M08, M09M07: Fluid of mist shape cutting opens M08: Fluid of fluid shape cutting opens M09: Cutting fluid closes 15, motion stops M00, M01, M02, M30M00: The program suspends M01: The plan stops M02: M30: of machine tool restoration? ?6 of  of charming of an ancient nationality in China of pray of firm imperial order of  of  of Yao of silk ribbon tadpole, M98: Call a subprogram 17, M99: Return a main program CNC Milling CNC Machining