Showing results for 
Search instead for 
Do you mean 
Solved! Go to solution

Output gcode Milling for Fanuc machine

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



end of sequence



Looking for your help.!


Accepted by topic author Khang
‎08-26-2015 04:32 AM

Re: Output gcode Milling for Fanuc machine

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

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!

Learn online

Solution Information