View Full Version : Need Help! Canned Cycle for cutoff operation


copenhagen
11-13-2009, 01:07 PM
Is there a x-direction canned cycle for Mach. Looking through the guide it appears all canned cycles are for the z-axis (drilling, boring..) I am using a fanuc post processor and it is producing a canned grooving cycle that mach doesn't accept.

G75 R0.01
G75 X-0. Z-2.196 P20 Q0 F0.01

If there isn't a x-direction canned cycle for mach. Can somebody please help me in editing the processor code to create the needed movements for the cutoff operation. Below is the post code.


@groove
local string for for1 for2 for3
local numeric d1 d2

for1 = '2/2.0(P)'
for2 = '2/2.0(P*10)'
for3 = '5.0(P*1000)'
d1 = abs(side_step)
d2 = abs(down_step)
if process_type eq face
gcode = 74
{nb 'G'gcode, ' R'release_dist }
{nb 'G'gcode,' X'last_pos_x:xpos_f ' Z'last_pos_z ' P'd1 :for3 ' Q'd2 :for3 }
else
gcode = 75
{nb 'G'gcode, ' R'release_dist }
{nb 'G'gcode,' X'last_pos_x:xpos_f ' Z'last_pos_z ' P'd2:for3 ' Q'd1:for3}
endif
{' F'feed }
endp

Thx, Cope

copenhagen
11-14-2009, 07:02 PM
For right now I am just using this:

gcode = 1
{nb 'G'gcode, ' X'last_pos_x:xpos_f ' Z'last_pos_z}

it works but I would prefer the canned cycle.

If it helps any, below are the variables. The mach manual really has me stumped. It almost seems like it was a copy and paste from the mill manual. I think all i need is to just use x_last, and step distance, with maybe a retract distance.

@groove

Parameters:
work_type type: integer {groove_rough, groove_prof,cut, ang_groove}.

process_type type: integer {LONG, FACE}.

turning_mode type: integer for LONG: {INTERNAL, EXTERNAL}
for FACE: {BACK, FRONT}.

first_pos_x, type: numeric coordinates of first point of geometry.
first_pos_z

last_pos_x, type: numeric coordinates of last point of geometry.
last_pos_z

second_offset type: integer offset number of the other side of the tool.

down_step type: numeric down step of the groove.

side_step type: numeric distance between each two groove-cut steps.

release_dist type: numeric safety release distance of the groove-cut.