G04P0; Pause 0s, read the current machine coordinate position correctly for subsequent procedures M5;Close the spindle (Read the current tool mechanical coordinate position) #20=#864 #21=#865 #22=#866 IF#571EQ0GOTO1;Discrimination system using a fixed position on the knife mode or the current position of the knife mode (Fixed feed mode for X, Y, Z) #1=#572-#20 #2=#573-#21 #3=#574-#22 GOTO2 (In the current tool setting mode, X, Y and Z feeds are cleared) N1#1=0 #2=0 #3=0 (Move to the initial position of the knife) N2G91G00Z#3 G91G00X#1Y#2 (At 100 speed probe 100mm detection tool signal) N1M101 G91G01Z-100F100 M102 G04P0;Pause 0s #402=#400;Save the Z axis zero offset of the coordinate system #403=1;Set automatic correction coordinate system logo #404=-#870;Save the tool thickness, if the previous tool thickness parameter is 0, the system will use this variable to modify the tool thickness parameter to complete the first knife G91G01Z#575F#578;The knife is completed, Z axis back