1. X-axis tool setting
When entering the system, follow the prompt to return the machine tool to zero, install the edge finder, install the workpiece, use the forward view, select the manual mode, move the X-axis outside the workpiece, lower the Z-axis, switch to the handwheel or single-step mode, and slowly move the edge finder towards the workpiece until the prompt "The horizontal direction is in place" is shown. Record the "X" value of the mechanical coordinate at this time temporarily as (X=X1).
Then switch to manual mode to lift the Z-axis, move the edge finder to the opposite direction of the X-axis, lower the Z-axis, switch to handwheel or single-step mode, and slowly move the edge finder towards the workpiece until the prompt "horizontal direction is in place" is shown. Record the "X" value of the mechanical coordinate at this time temporarily as (X=X2).
Calculation: X1+X2/2=X3 the center point of the workpiece, that is, the x-coordinate of G54 (input to the x-coordinate of G54)
2. Y-axis tool setting
After aligning the X-axis, select the manual mode, lift the Z-axis, use the left view, move the Y-axis outside the workpiece, lower the Z-axis, switch to the handwheel or single-step mode, and slowly move the edge finder towards the workpiece until the prompt "The horizontal direction is in place" is displayed. Record the mechanical coordinates at this time
The value of "X" is temporarily denoted as (Y=Y1). (As shown in Figure 4-1-3
Then switch to manual mode to lift the Z-axis, move the edge finder to the opposite direction of the Y-axis, lower the Z-axis, switch to handwheel or single-step mode, and slowly move the edge finder towards the workpiece until the prompt "The horizontal direction is in place" is shown.
At this time, the "X" value of the mechanical coordinate is temporarily recorded as (Y=Y2)
Calculation: Y1+Y2/2=Y3 The center point of the workpiece, that is, the x-coordinate of G54 (input to the y-coordinate of G54)
3. Z-axis tool setting
After aligning the X and Y axes, raise the Z coordinate, remove the edge finder and install the milling cutter. Start the spindle rotation, lower the Z axis to the workpiece surface, switch to the handwheel or single-step mode, use local magnification, and slowly move the milling cutter to the workpiece surface. Record the "Z" value of the mechanical coordinate at this time.
4. Coordinate input for (G54 ~ G59) :
On the MDI panel, select "OFFSET". Use the soft key to choose "Coordinate System". Use the cursor movement key to move the cursor to the X coordinate of G54. Use the keys on the MDI panel to INPUT (X3) and press "INPUT Key Input". Input the Y value (Y3) and press "Input Key Input" Enter the Z value (Z***) and press the "INPUT Key".
Note: When entering the coordinate values of G54, there must be a decimal point after the input value.
Tool compensation function of machining center:
1. Tool radius compensation (G40, G41, G42)
Tool radius compensation: G40, G41, G42
Explanation
G40: Eliminate tool radius compensation;
G41 left tool compensation (compensation on the left side of the tool's forward direction);
G42: Right tool compensation (compensation on the right side of the tool's forward direction);
G17: The tool radius compensation plane is the XY plane.
G18: The tool radius compensation plane is the ZX plane.
G19: The tool radius compensation plane is the YZ plane.
The parameters of X, Y, Z: G00/G01, that is, the end point of tool compensation establishment or cancellation (Note: The tool path projected onto the compensation plane is compensated);
The parameters of D: G41/G42, that is, the tool compensation numbers (D00 to D99), represent the corresponding radius compensation values in the tool compensation table.
G40, G41, and G42 are all modal codes and can be mutually deregistered.
Note: The switching of the tool radius compensation plane must be carried out in the compensation cancellation mode.
The establishment and cancellation of tool radius compensation can only be carried out using the G00 or G01 command, not G02 or G03.
Example 1: Considering the tool radius compensation, program the processing of the part shown in the diagram: Process along the path indicated by the arrow. Assume that at the beginning of the processing, the tool is 50mm away from the upper surface of the workpiece, and the cutting depth is
10mm.

