Six, G1 linear interpolation command
(1) Programming format: G1 X__Y__ Z__ F__;
(2) Meaning
X, Y, Z: End point coordinates in rectangular coordinate system
F: Feed speed, unit: mm/min.
The G1 command can move along any straight line parallel to the coordinate axis, inclined to the coordinate axis or space, and linear interpolation can process 3D curved surfaces and grooves. The target point can be input in a Cartesian coordinate system or a polar coordinate system. The tool moves along a straight line from the current starting point to the programmed target point at the feed rate F, and the workpiece is processed along this path.
G1 is a modal command. The spindle speed S and the spindle rotation direction M3/M4 must be specified before machining.
Seven, G2/G3/CIP circular interpolation instructions
(1) Programming format.
1) G2/G3 X—— Y—— Z—— I—— J—— K——;
2) CIP X—— Y—— Z—— I1=—— J1=—— K1=——.
(2) Meaning.
G2: The tool moves clockwise along an arc;
G3: The tool moves counterclockwise along a circular arc;
CIP: circular interpolation through the intermediate point;
X——Y—— Z——: the end point in the rectangular coordinate system;
I—— J—— K——: the arc center point coordinates in the rectangular coordinate system (in the X Y Z direction);
I1=—— J1=—— K1=——: the arc midpoint coordinates in the Cartesian coordinate system (in the X, Y, and Z directions respectively);
Note: When using the radius R method of programming, if the central angle of the machining arc is less than 180 degrees, R followed by the data is a positive arc radius value. If the central angle of the machining arc is greater than 180 degrees, the R followed by the data is a negative arc radius value. , When processing a full circle, the radius R method cannot be used, and the designated center method must be used.
8. G94/G95 feed speed control command
(1) G94: The unit for determining the feed rate is m m/min, inches/min, degrees/min, which are modal commands;
(2) G95: The unit for determining the feed speed is mm/r, inches/r, which is related to the spindle speed and is a modal command;
(3) F: Determine the feedrate value, the specific unit is determined by G94/G95, which is a modal command;
Nine, G41/G42/G40 tool radius compensation command
G40: Cancel tool radius compensation;
G41: Tool radius compensation is activated. Viewed along the cutting direction, the tool is on the left side of the workpiece contour;
G42: Tool radius compensation is activated, when viewed along the cutting direction, the tool is on the right side of the workpiece contour;





