How to Program CNC Drilling Machine

CNC drilling machine is mainly used for drilling, reaming, reaming, tapping and other processing, in the automotive, locomotive, shipbuilding, aerospace, engineering machinery industry; especially for ultra-long plate, stringer, And other porous systems Fuyuan into the sea of ​​various types of large parts of the drilling process as the first choice.On the CNC drilling machine programming problems, Xiaobian first given the code is explained as follows:
G00 positioning
1, Format G00 X_ Z_; This command moves the tool from the current position to the command specified position (in absolute coordinate mode) or to a distance (in incremental coordinate mode).
2, the positioning of non-linear cutting form, we are defined as: independent of the rapid movement rate to determine the location of each axis. Tool path is not a straight line, according to the order of arrival, the machine axis in order to stop the specified location.
3, linear positioning, the tool path similar to linear cutting (G01), as the shortest time (not more than each axis rapid movement rate) located in the required position.
G01 Linear interpolation
1, Format G01 X (U) _Z (W) _ F_; Linear interpolation moves from the current position to the command position in a straight line and at the commanded movement rate X, Z: Absolute coordinate value of the position to be moved .U, W: Incremental coordinate value of the position to which you want to move.
Circular interpolation (G02, G03)
1, the format G02 (G03) X (U) __Z (W) __I__K__F __; G02 (G03) X (U) __Z (W) __ R__F__;
(CW) G03- Counterclockwise (CCW) X, Z- End point in coordinate system U, W-Distance between start point and end point I, K- Vector from start point to center point (radius value) R-arc range (up to 180 degrees).
Second origin return (G30)
The coordinate system can be set with the second origin function.
1. Set the coordinate value of the tool start point with the parameters (a, b): Point “a” and “b” are the distance between the machine origin and the starting point.
2, in programming with G30 command instead of G50 set coordinate system.
3, after the implementation of the first point of return, regardless of the actual location of the tool in there, when the knife touches the command to move to the second origin.
4, the replacement tool is also carried out in the second origin.
Thread cutting (G32)
F-Thread lead setting E-thread pitch (mm) The spindle speed should be controlled evenly when programming a thread cutting program. G32 X (U) __ Z (W) __ F __; G32 X (U) __ Z _ (G97), and take into account certain characteristics of the thread part. In the thread cutting mode, the movement rate control and spindle speed control function are ignored, and when the feed hold button is activated, the movement progresses at the completion of a cutting After the cycle stopped.
1, the format G41 X_ Z_; G42 X_ Z_; the cutting edge is sharp when the cutting process in accordance with the specified shape of the implementation of the problem will not occur.However, the real knife edge is formed by the arc (nose radius).
2, bias function
Command Cutting position Tool path
G40 Cancels the movement of the tool in the program path
G41 The tool on the right moves from the program path to the left
G42 The tool on the left moves from the right side of the program path
The principle of compensation depends on the direction of the center of the tool nose arc, which always does not coincide with the radius vector in the normal direction of the cutting surface.Therefore, the reference point of the compensation is the center of the tool nose.In general, the compensation of tool length and tool nose radius is This principle is used for tool compensation, the tool nose radius R should be measured with the X and Z datum points, respectively, and the tool radius compensation for imaginary tool nose radius compensation The number of tool nose forms required (0-9). These should be entered in advance in the tool offset file.
“Tool nose radius offset” should be commanded or canceled with the G00 or G01 function, whether the command is circular interpolation or not, and the tool does not move correctly, causing it to gradually deviate from the executed path. Offset commands should be done before the start of the cutting process and the over-cutting from the outside of the workpiece can be prevented, and the offset can be canceled by the move command after the cutting process.
Workpiece coordinate system selection (G54-G59)
1, Format G54 X_ Z_;
2. Function The G54-G59 command is used to assign an arbitrary point (workpiece origin offset value) of the machine coordinate system to parameters of 1221-1226 and set the workpiece coordinate system (1-6). 1222 Workpiece coordinate system 2 (G55) – Workpiece origin return offset value – Parameter 1222 Workpiece coordinate system 3 (G56) – Workpiece home position return offset 1225 Workpiece coordinate system 5 (G58) – Workpiece zero point return offset – Parameter 1225 Workpiece coordinate system 6 (G59) – Workpiece origin return – Parameter 1224 Workpiece coordinate system 4 (G57) – Workpiece zero return offset – Offset – Parameter 1226 The system automatically selects the workpiece coordinate system 1 (G54) after the power is turned on and the homing has been completed, and they remain valid until the modal command changes the coordinates. In addition to these setup steps, there is a parameter in the system that immediately changes the parameters of G54 to G59 The origin offset value outside the workpiece can be passed with parameter No. 1220.
Finishing cycle (G70)
1, Format G70 P (ns) Q (nf) ns: First segment number of the finished shape program nf: Final segment number of the finished shape program 2. Function After G71, G72 or G73 rough turning, the G70 Fine turning.
External roughing cycle (G71)
1, the format G71U (Δd) R (e) G71P (ns) Q (nf) U (Δu) W (Δw) F (f) S (s) T (t) N (ns) … .F__ From the sequence number ns to nf, the movement command between A and B is specified .. S __. T__N (nf) … Δd: The depth of cut (radius specification) does not specify a positive or negative sign. FANUC system parameter (NO.0717) .e: retraction stroke This specification is a status specification and does not change until another value is specified. FANUC system parameter (No.0717) .nf: the last segment number of the finished shape program. △ u: the distance and direction of the X direction finishing allowance (diameter / radius) ) △ w: distance and direction of finishing allowance in Z direction.
2, Function If the finishing shape of A to A ‘to B is determined by the program in the following figure, △ d (cutting depth) is used to remove the specified area, leaving the finishing allowance Δu / 2 and Δw.
Face turning fixed cycle (G72)
1, the format G72W (? D) R (e) G72P (ns) Q (nf) U (? U) W (? W) F (f) S (s) T (t)? T, e, ns, nf , Δu, Δw, f, s and t have the same meaning as G71 2. Function As shown in the figure below, this cycle is the same as G71 except that it is parallel to the X axis.
Forming Machining Compound Cycle (G73)
1, the format G73U (Δi) W (Δk) R (d) G73P (ns) Q (nf) U (Δu) W (Δw) F (f) S (s) T (Nf) ………. Δi: retraction distance in X-axis direction (radius specification), FANUC system parameter (NO.0719) (Radius specified), FANUC system parameter (NO.0720). D: The number of times of division is the same as the number of rough machining repetitions, FANUC system parameter (NO.0719) .ns: Finishing shape program (Diameter / radius) △ w: Z-direction finishing allowance (in the direction of the Z direction), the final segment number of the finishing program in the Z direction. Distance and direction.
2, the function This function is used to repeat cutting a fixed form of gradual change, with this cycle, can effectively cut a rough machining or casting, etc. have been processed forming the workpiece.
End face peck drilling cycle (G74)
1, Format G74 R (e); G74 X (u) Z (w) P (Δi) Q (Δk) R (Δd) F (f) e: Backward amount This specification is state specification, (X.0922) x: X coordinate of point B u: Increment from a to b z: Z coordinate of point c w: Increment from A to C Δi: The amount of movement in the X-direction Δk: the amount of movement in the Z-direction Δd: the tool retraction amount at the cutting base Δd must be the sign (+), but if X (U) and ΔI are omitted, If the X (U) and P are omitted, the result will only be operated on the Z-axis, which is used to drill the hole (see the figure below). .
External / internal peck drilling cycle (G75)
2. Function The following instruction operation is shown in the figure below, except that X (X) is the same as the XOR (X, Y) Z is used instead of G74. In this cycle, the cutting can be performed in X-axis and X-axis pecking.
Thread Cutting Cycle (G76)
1, the format G76 P (m) (r) (a) Q (? Dmin) R (d) G76X (u) Z (w) R (i) P (k) : Finishing repetition times (1 to 99) This specification is a status specification and will not be changed until another value is specified. FANUC System parameter (No. 0723) Specifies the .r: To angle amount This specification is the status specification, The value of the FANUC system parameter (NO.0109) is specified .a: Tool nose angle: 80, 60, 55, 30, 29, 0 degrees can be selected, 2 digits are specified. Specified is the status specification and will not be changed until another value is specified. FANUC The system parameter (No. 0724) is specified. For example: P (02 / m, 12 / r, 60 / a) △ dmin: Min. (No.0726) Specified .i: Radius difference of the thread part If i = 0, general linear thread cutting can be done. K: Thread height This value is in the range of X The axial direction is specified by the radius value Δd: the first cutting depth (radius value) l: thread lead (with G32)
2, the function of thread cutting cycle.
Internal and external diameter of the cutting cycle (G90)
1, the format linear cutting cycle: G90 X (U) ___ Z (W) ___ F___; Press the switch into a single block mode, the operation is complete as shown in the 1 → 2 → 3 → 4 path cycle operation.U and W positive and negative (+/-) in the incremental coordinate program is changed according to the direction of 1 and 2. Cone cutting cycle: G90 X (U) ___ Z (W) ___ R___ F___; The “R” value of the cone must be specified. The function is used in a similar way to the linear cutting cycle.
0, W <0, R <0, W <0, R> 0, U> 0, W <0, W < W <0, R <0
Thread cutting cycle (G92)
1, the format straight thread cutting cycle: G92 X (U) ___ Z (W) ___ F___; thread range and spindle RPM stability control (G97) is similar to G32 (cut thread.) In this thread cutting cycle, The chamfer length may be set to 0.1L units in the range 0.1L to 12.7L according to the assigned parameters. Thread cutting cycle: G92 X (U) ___ Z (W) ___ R___F___; 2. Function Cutting thread cycle
Step cutting cycle (G94)
(G96, G97); (2) The cutting speed of the cutting step: G94 X (U) ___ Z (W) ___ F___;
The NC lathe divides the rate into, for example, the low and high speed zones by adjusting the stride and modifying the RPM method. The speed of the G96 is freely variable. The G96 function is to perform linear speed control and to control only the corresponding RPM Of the workpiece diameter changes to maintain a stable cutting rate G97 function is to cancel the line speed control, and only control the stability of RPM.
Set the amount of displacement (G98 / G99)
The cutting displacement can be assigned in millimeters per minute using the G98 code, or the G99 code to assign the displacement per revolution (mm / rev); here the G99 per revolution is programmed in the NC lathe. (Mm / min) = Displacement rate per revolution (mm / rev) x Spindle RPM

You can leave a response, or trackback from your own site.

Leave a Reply

Sorry, no posts matched your criteria.