X/Y Plane Obstacle Avoidance in a Canned Cycle

Next Generation Control Mill Operator's Manual

The Online Interactive Operator's Manual is currently available in English only.

A PDF version of the Operator's Manual is available for download in multiple languages. Click the link below to view the Operator's Manual in your language. Click "Continue" to view the online version in English.

Get a translated PDF Download Continue

If you put an L0 on a canned cycle line, you can make an X, Y move without the Z-Axis canned operation. This is a good way to avoid obstacles in the X/Y plane.

Consider a 6" square aluminum block, with a 1" by 1" deep flange on each side. The print calls for two holes centered on each side of the flange. You use a G81 canned cycle to make the holes. If you simply command the hole positions in the drill canned cycle, the control takes the shortest path to the next hole position, which puts the tool through the corner of the workpiece. To prevent this, command a position past the corner, so the move to the next hole position does not go through the corner. The drill canned cycle is active, but you do not want a drill cycle at that position, so use L0 in this block.

Canned Cycle Obstacle Avoidance. The program drills holes [1] and [2], then moves to X5.5. Because of the L0 address in this block, there is no drill cycle in this position. Line [A] shows the path that the canned cycle would follow without the obstacle avoidance line. The next move is in the Y Axis only to the position of the third hole, where the machine does another drill cycle.

% O60811 (X Y OBSTACLE AVOIDANCE) ; (G54 X0 Y0 is at the top-left of part); (Z0 is at the top of the part) ; (BEGIN PREPARATION BLOCKS) ; T1 M06 (Select tool 1) ; G00 G90 G40 G49 G54 (Safe startup) ; G00 G54 X2. Y-0.5(Rapid to first position) ; S1000 M03 (Spindle on CW) ; G43 H01 Z0.1 M08 (Activate tool offset 1) ; (Coolant on) ; (BEGIN CUTTING BLOCKS) ; G81 Z-2. R-0.9 F15. (Begin G81 & Drill 1st hole) ; X4. (Drill 2nd hole) ; X5.5 L0 (Corner avoidance) ; Y-2. (3rd hole) ; Y-4. (4th hole) ; Y-5.5 L0 (Corner avoidance) ; X4. (5th hole) ; X2. (6th hole) ; X0.5 L0 (Corner avoidance) ; Y-4. (7th hole) ; Y-2. (8th hole) ; (BEGIN COMPLETION BLOCKS) ; G00 Z0.1 M09 (Rapid retract, Coolant off) ; G53 G49 Z0 M05 (Z home, Spindle off) ; G53 Y0 (Y home) ; M30 (End program) ; %

Be aware: Many service and repair procedures should be done only by authorized personnel. The service technicians at your Haas Factory Outlet (HFO) have the training, experience, and are certified to do these tasks safely and correctly. You should not do machine repair or service procedures unless you are qualified and knowledgeable about the processes.

Danger: Some service procedures can be dangerous or life-threatening. DO NOT attempt a procedure that you do not completely understand. Contact your Haas Factory Outlet (HFO) and schedule a service technician visit if you have any doubts about doing a procedure.