Format: G00x (u) _ z (w) _;
Where X(U)_ and Z(W)_ are the coordinate values of the target point.
2. Linear interpolation G0 1
Format: g 01x (u) _ z (w) _ f _;
Where X(U) and Z(W) are the coordinates of the target point, and f is the feed speed.
When the machine tool executes instruction G0 1, if there is no F instruction in the previous program section, this program section must contain F instruction. G0 1 and f are modal instructions.
3. Circular interpolation G02 and G03
Use G02 instruction for clockwise circular interpolation and G03 instruction for counterclockwise circular interpolation.
1) arc radius r, arc interpolation of terminal coordinates.
Format: g18g02 (g03) x (u) _ z (w) _ r _ f _;
Where: X(U) and Z(W) are the coordinate values of the arc end point,
X and z are used for absolute value programming mode, and u and w are used for incremental value programming mode. When the central angle corresponding to the specified arc is less than or equal to 180, it is represented by "+r"; On the contrary, it is represented by "-r".
F is the feed when machining an arc.
2) Arc interpolation is carried out by using vectors and terminal coordinates.
Format: g18g02 (g03) x (u) _ z (w) _ i _ k _ f _;
These include:
X(U) and Z(W) are the coordinates of the arc end point, X and z are absolute value programming modes, and U and w are incremental value programming modes.
For example, use G54 command to set the workpiece coordinate system as shown in the figure.
First set the G54 origin offset register:
G54 X0 Z85.0
Then call in the program:
n 0 10 G54;
Description:
1 and G54~G59 are six preset coordinate systems, which can be selected as required.
2. The origin of workpiece coordinates established by 2.G54~G59 is relative to the origin of the machine tool, which has been set before the program runs and cannot be reset during the program runs.
3. The coordinate values of the workpiece coordinate origin preset by 3.G54~G59 in the machine coordinate system can be input through MDI, and the system will automatically remember them.
4. Before using this set of instructions, you must first return to the reference point.
5.G54~G59 are modal instructions, which can cancel each other out.