02 Processing programming and precautions
Case of end face drilling: 4.2mm drill bit is used to drill the center of 40mm bar end face.
The symbols in Figure 1 indicate the following actions
Positioning (fast moving G00).
Cutting feed (linear interpolation G01).
P1: the pause time programmed by the address P instruction.
Ma: C axis clamped M code output (a value is set in the parameter (NO.5110)).
M(a+1): C axis release M code output.
P2: Pause time set by parameter (NO.5111).
Code execution process
The tool is quickly positioned from the starting point to the hole position (that is, the point on the initial plane determined by the hole position data), execute Ma;
Quickly locate to point R;
Cutting feed to the bottom plane of the hole;
Suspend the pause time specified by P;
Quickly return to the R point plane, execute M(a+1) and pause P2 for the specified time;
Quickly return to the initial plane;
The drilling cycle ends.
End face drilling programming
O2222 (program name)
T0101 (tool number tool compensation)
M63 S2000 (Second spindle forward rotation speed 2000)
G99 M08 (feed coolant per revolution)
G0 Z3 Y0 (Quick positioning ZY axis)
X0 (Quick positioning X axis)
M14 (spindle switch to position control)
G50 C0 (fix this position as C0)
M45 (spindle holding brake)
G83 X0 Z-10 R-2
Q1500P1000F0.08 (side drilling cycle)
G80 (cycle cancellation)
G0Z50 (Quick positioning Z axis)
M46 (Cancel the spindle brake)
M15 (spindle switch to speed control)
M65 (the second spindle stops rotating)
M09 (coolant off)
M30 (End of program operation)
End tapping processing case: tapping at 40mm bar Z-10 (the hole has been drilled with a 4.2mm drill), M5x0.8 tap is used.
The symbols in Figure 3 indicate the following actions
Positioning (fast moving FG00).
Cutting feed (linear interpolation G01).
P1: Pause time programmed by address P instruction.
Ma: C axis clamping M code output (a value is set in parameter (NO.5110)).
M(a+1): C axis release M code output.
P2: Pause time set by parameter (NO.5111).
Code execution process
The tool quickly positions the point from the starting point (that is, the point on the initial plane determined by the hole position data), execute Ma;
Quickly locate to point R;
There are multiple feeding and retreating processes: During the initial cutting from point R, the spindle is rotated forward, only after cutting in the cutting amount q specified by address Q (action 1), the spindle is reversed, and only the parameters are returned After the return amount d (action 2) set in (NO.5213), the spindle is rotated forward to perform (d+q) cutting. (Action 3) After this, before reaching the bottom of the hole (point Z), repeat 2 and 3;
Pause at the bottom of the hole to pause the time specified by P1;
The spindle starts to rotate in the reverse direction, the tapping axis retracts the tool to the R point plane, to the R point plane at the speed specified by F, and the spindle stops rotating at the R point; execute the C axis to release the M code M (a+1), and pause Pause time specified by P2;
Quickly return to the initial plane;
The high-speed deep hole rigid tapping ends.
Side drilling machining programming
O3333 (program name)
T0202 (tool number tool compensation)
G0 Z3 (Quick positioning Z axis)
X0 Y0 (Quick positioning XY axis)
M14 (spindle switch to position control)
G50 C0 (fix this position as C0)
M25 (second spindle rigid tapping)
G99G88X0 Z-8 R-2
R-2 Q1500F0.8M45 (end tapping cycle)
G80 (Cancel cycle)
G0Z50 (Quick positioning Z axis)
M46 (Spindle holding brake canceled)
M15 (spindle switch to speed control)
M65 (the second spindle stops rotating)
M30 (End of program operation)
03 Matters needing attention in end face drilling and tapping
Switch to the ZpXp plane (G18);
If the tapping is to the end, please modify the parameters 5213 (change to 1000), 5104#6 (change 0 to 1), 5200#7 (change 0 to 1);
Note the forward and reverse rotation of the second spindle.
|