G00
Fast moving positioning
G00 X__Y__Z__;
G01
Linear interpolation mode
G01 X__Y__Z__;
Corner chamfer mode
G01 X__Y__C__;
G01 X__Y__;
C: The distance from the imaginary corner to the start or end point of chamfering
Corner round mode
G01 X__Y__;
R: The arc radius of the corner, the corner chamfer is executed at the intersection of the first and second sections of the program
Straight angle mode
G17;
G01 A__X__(Y_);
A: The angle between the straight line and the first axis of the plane
X: X coordinate of the end point
GO2
Circular interpolation (clockwise)
G02 X__Y__R__F__;
R: arc radius
GO3
Circular interpolation (counterclockwise)
G03 X__Y__R__F__;
R: arc radius
GO4
time out
G04 X(U)__; or G04 P__;
XU: The last is the specified pause time, and the value thereafter must have a decimal point, otherwise it is calculated as one thousandth of this value, and the unit is s;
P: Specify the time, no decimal point is allowed (that is, expressed as an integer), and the unit is ms.
GO2.1
Involute interpolation (clockwise)
G02.1 X__Y__I__J__F__P;
IJ: arc center coordinates
P: Number of pitch, number of revolutions
GO3.1
Involute difference compensation (counterclockwise)
G03.1 X__Y__I__J__F__P;
IJ: arc center coordinates
P: Number of pitch, number of revolutions
GO2.3
Exponential function interpolation (forward rotation)
G02.3 X__Y__I__J__R__F__Q__I;
IJ: Angle
R: fixed value
F: Initial feed rate
Q: End point feed rate
G03.3
Exponential function interpolation (reverse)
G03.3 X__Y__I__J__R__F__Q__ I;
IJ: angle;
R: fixed value;
F: Initial feed rate
Q: End point feed rate
G05
High-speed and high-precision control Ⅰ
G05 P10000 High-speed and high-precision control opening
G05 P0 High-speed and high-precision control off
G05 P3 High-speed machining on
G05 P0 High-speed machining is off
G05.1
High speed and high precision control Ⅱ
G05.1 Q1 High-speed and high-precision control on
G05.1 Q0 High-speed and high-precision control off
G05.2 Q2 X0 Y0 Z0 Free-form surface high precision mode is on
G05.1 Q0 Free-form surface high precision mode is off
G07.1
Cylindrical interpolation
G07.1 C__;
C: Cylinder radius
G09
Stop the check correctly
G10
Program parameter input/correction input
G90 G10 L2 P__Xp__Yp__Zp__;
G91
P:0 External workpiece coordinate
1 G54
2 G55
3 G56
4 G57
5 G58
6 G59
P: When it is a number other than 0~6, the value of P is regarded as 1. When P is omitted, it will be regarded as the input of the workpiece coordinate correction amount currently being selected
G10 L10 P__R__;
P: Correction number
R: Correction amount
G10 L10 P__ R__; Long correction shape correction
G10 L11 P__ R__; long compensation and wear compensation
G10 L12 P__ R__; diameter shape correction
G10 L13 P__ R__; Radial wear compensation
G11
Program parameter input cancel
G12
Circular cutting CW
G12 I__D__F__;
I: the radius of the circle (incremental value)
D: Correction number
① Cut from the center of the circle
②Approximate the contour in a circular arc
③Milling arc path
G12.1
Polar coordinate interpolation mode starts
G13
Circular cutting CCW
G13 I__D__F__;
I: the radius of the circle (incremental value)
D: Correction number
G13.1
Polar coordinate interpolation mode canceled
G15
Polar coordinate command cancel
G15 cancel G16 polar coordinate command
G16
Polar coordinate command is valid
N1005 G16;
N1010 G90 G01 X__Y__;
...
N2000 G15;
Among them, X__ in the N1010 sentence indicates the radius of polar coordinates, and Y__ indicates the angle
G17
Plane selection X-Y
Milling M36*0.75 thread
Example: This example assumes the thread center point (0, 0); the diameter of the thread cutter is 33.244.
G00 G90 G80 G40 G49 G54 X0. Y0.;
S4000 M13;
G00 G43 H2 Z50.;
Z10. G01 Z0. F800.;
G41 D__;
G02 Y1.378 J0.689 F600.;
G17;
G02 Z-15. J-1.378 P20. F600.;
G02 Y0. J-0.689;
G00 Z80.;
G40;
M05;
M09;
M30;
First use the programming of the milling cutter with the same diameter as the thread cutter to obtain the Y and J values, as well as the X and Y coordinate values, and then substitute the above program example
G18
Plane selection X-Z
G19
Plane selection Y-Z
G20
Imperial instruction
G21
Metric Order
G27
Reference origin check
G28
Return to reference origin
G28 X__ Y__ Z__;
G29
Start point reset
G29 X__ Y__ Z__;
G30
Return to the 2nd~4th reference origin
G30 P2(P3,P4) X__ Y__ Z__;
G30.1
Reset tool position 1
G30.2
Reset tool position 2
G30.3
Reset tool position 3
G30.4
Reset tool position 4
G30.5
Reset tool position 5
G30.6
Reset tool position 6
G31
jump
G31.1
Jump 1
G31.2
Jump 2
G31.3
Jump 3
G32
Thread cutting (normal lead)
G32 Z__F__Q__;
Z: Thread cutting direction axis address and thread length;
F: Lead in the direction of the major axis (the axis with the most movement)
Q: Thread cutting start displacement angle (0~360°)
G33
Thread cutting (precision lead-inch thread)
G33 Z__E__Q__;
Z: Thread cutting direction axis address and thread length
E: The lead in the direction of the major axis (the axis with the most movement), the number of teeth contained in 1 inch
Q: Thread cutting start displacement angle (0~360°)
G34
Circumferential arrangement hole circulation
G34 X__Y__I__J__K__;
XY: the center position of the circular hole loop
I: circle radius, positive number means
J: The angle of the initial drilling point, the counterclockwise direction is positive
K: The number of drilling holes, the range is 1~9999, it cannot be 0, the counterclockwise direction is positive, and the clockwise direction is negative
G35
Straight line angle arrangement hole circulation
G35 X__Y__I__J__K;
XY: the coordinates of the starting point, affected by G90/G91
I: Interval, the straight-line distance between two holes
J: Angle, the angle between the array direction and the X axis, the counterclockwise direction is positive
K: the number of holes (including the starting point), the setting range is 1~9999
CNC Master
CNC Master
CNC machine tools, CNC programming, machinery manufacturing technology sharing, to provide you with the most convenient CNC manufacturing information, to create the most cutting-edge technology and machinery information platform.
3 original content
the public
G36
Circular arc arrangement hole circulation
G36 X__Y__I__J__P__K__;
XY: arc center coordinates
I: arc radius
J: The angle of the initial drilling point, the counterclockwise direction is positive
P: angular interval
K: the number of holes
G37
Automatic tool length measurement
G37 Z__R__D__F__;
Z: Measuring axis position and coordinate value of measuring position
R: The distance from the point that starts to move at the measurement speed to the measurement position
D: Tool stop range limit
F: Measuring speed
G37.1
Checkerboard hole loop
G37.1 X__Y__I__P__J__K__
XY: starting point coordinates
I: X axis interval
P: The number in the X-axis direction. Specified range 1~9999
J: Y-axis interval
K: Number of Y-axis
G38
Tool radius compensation vector designation
G38 I__J__;
Only used in diameter correction mode
G39
Tool radius compensation, corner arc compensation
G39 X__ Y__
Only used in diameter correction mode
G40
Tool radius compensation cancel
G41
Tool radius compensation left
G42
Tool radius compensation right
G40.1
Normal Control Cancel
G40.1 X__Y__F__;
G41.1
Normal control left effective
G41.1 X__Y__F__;
G42.1
Normal control right effective
G42.1 X__Y__F__;
G43
Tool length setting (+)
G43 Z__H__;
……;
G49 Z__;
G44
Tool length setting (-)
G44 Z__H__;
……;
G49 Z__;
G49
Tool length setting cancel
G43.1
The 1st spindle control is effective
G44.1
2nd spindle control effective
G45
Tool position setting (expansion)
G45 X__D__;
Use the compensation amount set in the compensation amount memory area as the extension amount in the moving direction
G46
Tool position setting (reduced)
G46 X__D__;
Use the correction amount set in the correction amount memory area as the reduction amount in the moving direction
G47
Tool position setting (double)
G47 X__D__;
Take 2 times the compensation amount set in the compensation amount memory area as the elongation in the moving direction
G48
Tool position setting (halved)
G48 X__D__;
The amount of reduction in the moving direction is twice the amount of correction set in the correction amount memory area
G47.1
2 spindles simultaneously control effective
G50
Scaling Cancel
G51
Scaling is effective
G51 X__Y__Z__P__;
XYZ: scaling center coordinates
P: Scaling magnification
G50.1
G command mirroring cancel
G50.1 X0;
G50.1 Y0;
G50.1 Z0;
Which axis to cancel is input after G50.1
G51.1
G command mirror image valid
G51.1 X0;
G51.1 Y0;
G51.1 Z0;
Which axis to mirror is input after G51.1
G52
Local coordinate system setting
G53
Mechanical coordinate system selection
G54
Workpiece coordinate system 1 selection
G55
Workpiece coordinate system 2 selection
G56
Workpiece coordinate system 3 selection
G57
Workpiece coordinate system 4 selection
G58
Workpiece coordinate system 5 selection
G59
Workpiece coordinate system 6 selection
G54.1
Workpiece coordinate system selection and expansion 48 groups
G60
One-way position positioning
G60 X__Y__Z__;
G61
Stop check mode correctly
G61.1
High-speed and high-precision control
G61.1 X__Y__F__;
G62
Automatic corner feed rate adjustment
G63
Tapping mode
The cutting percentage is fixed at 100%
Feed remains invalid
Single block stop is invalid
G63.1
Synchronous tapping mode (direct tapping)
G63.2
Synchronous tapping mode (reverse tapping)
G64
Cutting mode
G65
User macro single call
G66
User macro status call A
G66.1
User macro status call B
G67
User macro status call C
G68
Coordinate rotation is valid
G17 G68 X0 Y0 R__;
R: Rotation angle, counterclockwise is positive, range -360.000~+360.000
G69
Coordinate rotation cancel
G70
User canned cycle
G71
User canned cycle
G72
User canned cycle
G73
Fixed cycle (step cycle)
G73 X__Y__Z__R__F__S__Q__;
XYZ: Hole position data
Q: Try your best
R: Point R
F: Feed speed
S: Spindle speed
G74
Fixed cycle (reverse tapping)
G74 X__Y__Z__R__Q__F__S__X__Y__;
Z: Hole position data
R: Point R
Q: Step amount
F: Feed speed
S: Spindle speed
The values of F and S are: speed * pitch = feed
G75
User canned cycle
G76
Fixed cycle (fine boring)
After the X and Y axis are positioned, the Z axis quickly moves to the R point, and then feeds to the Z point at the speed given by F, then the spindle is oriented and moves a certain distance in the given direction, and then quickly returns to the initial point or the R point. After that, the spindle rotates at the original speed and direction
Note: Pay attention to check whether the direction of the tool tip after the spindle orientation meets the requirements
G77
User canned cycle
G78
User canned cycle
G79
User canned cycle
G80
Canned cycle cancel
G81
Fixed cycle (drilling/lead hole)
G8? (G7?) X_Y_Z_R_Q_P_F_L_S_, S_, I_, J_;
G8? (G7?) X_Y_Z_R_Q_P_F_L_S_, R_, I_, J_;
G8? (G7?): Hole processing mode
XYZ: Hole position data
RQPF: Hole processing data (R: refers to R point Q: designation of each cutting amount, input of incremental value
P: Pause time, add WeChat: Yuki7557, send a copy of macro program tutorial
F: drilling speed or thread pitch)
L: number of repetitions
S: Spindle rotation speed
R: Spindle rotation speed during synchronization switching or restoration
I: Position positioning axis positioning width
J: Drilling axis positioning width
G82
Fixed cycle (drilling/counting boring)
G82 X__Y__Z__R__F__P__;
P: pause time
G83
Fixed cycle (deep hole drilling)
G83 X__Y__Z__R__Q__F__;
Q: Cutting amount per time, incremental input
G84
Fixed cycle (tapping) Mitsubishi system
G84 X__Y__Z__R__F__P__;
F: pitch
P: Pause time
Fixed cycle (tapping) Frank system, etc.
G84 X__Y__Z__R__F__S__;
XYZ: Hole position data
R: Point R
F: Feed speed
S: Spindle speed
The values of F and S are: speed * pitch = feed
G85
Fixed cycle (boring in and boring out)
The canned cycle is very simple, and the execution process is as follows:
X, Y axis positioning, Z axis quickly to point R, feed to point Z at F speed, and return to point R at F speed.
G86
Fixed cycle
Ring (boring)
The execution process of this canned cycle is similar to G81. The difference is that the spindle stops when the tool feeds to the bottom of the hole in G86.
Quickly return to the R point or the initial point and then make the spindle rotate
G87
Fixed cycle (reverse boring)
In the G87 cycle, after the X and Y axes are positioned, the spindle is oriented, and the X and Y axes move in the specified direction by the distance given by the processing parameter Q, and move to the bottom of the hole (point R) at rapid feed rate, and the X and Y axes are restored At the original position, the spindle rotates at the given speed and direction, the Z axis feeds to the point Z at the speed given by F, and then the spindle is oriented again, and the X and Y axes move the distance specified by Q in the specified direction for rapid feed The speed returns to the initial point, the X and Y axes return to the positioning position, and the spindle starts to rotate
Note the same as G76
G88
Fixed cycle (boring)
G88 is a fixed cycle for boring with manual return function
G89
Fixed cycle (boring)
G90
Absolute value instruction
G90 X__Y__Z__;
G91
Incremental value instruction
G91 X__Y__Z__;
G92
Machine coordinate system setting
G92 S__Q__;
S: Maximum clamping speed;
Q: Minimum clamping speed
G92.1
Workpiece coordinate system setting
G93
Reverse time feed
G94
Asynchronous feed (feed per minute)
G95
Synchronous feed (feed per revolution)
G96
Zhou Suyi Customized Royal Effective
G96 S__P__;
S: weekly speed
P: Designation of a constant weekly speed control axis
G97
Zhou Suyi Customized Royal Cancel
G98
Canned cycle start point return
G99
Fixed cycle R point reset
G113
Spindle synchronization control cancel
G114.1
Spindle synchronization control is valid
G114.1 H__D__R__A__;
H: Basic spindle selection
D: Synchronous spindle selection
R: Synchronous spindle phase offset
A: Spindle synchronization acceleration and deceleration time constant
|