cancel
Showing results for 
Search instead for 
Did you mean: 

Output gcode Milling for Fanuc machine

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

Hello all,

How can I customize the post Mill-3axis which I only want to output G05.1Q1 and G05.1Q0 in mill, not in Canned Cycles.

 

Start of sequence

G05.1Q1

.....

end of sequence

G05.1Q0

 

Looking for your help.!

 

2 REPLIES

Re: Output gcode Milling for Fanuc machine

Esteemed Contributor
Esteemed Contributor

One way:
Add code to set (or not) depending on operation type.  Something *like* this:

    if {[string match "Point to Point" $mom_operation_type] ||
		[string match "Hole Making" $mom_operation_type]  ||
		[string match "Thread Milling" $mom_operation_type] ||
		[string match "Drilling" $mom_operation_type]} {
   # drill operation, no G5
} else {
  # mill operation, G5
}

Personally, I'd set a flag that G05.1Q1 has been output, then use that flag to turn it off.

 

But you could use the above logic for both cases.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Output gcode Milling for Fanuc machine

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

Thanks Ken_A, 

I have done, but when I output multi sequence operation, $b not output in the next operation.

$b belong with Rapid Move. please help!

Untitled.png

Learn online





Solution Information