Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How Do I Get Fusion to Make "M06 T8" Instead of "T8 M06" for Fanuc?

techshopjim
Enthusiast

How Do I Get Fusion to Make "M06 T8" Instead of "T8 M06" for Fanuc?

techshopjim
Enthusiast
Enthusiast

 

Hi Everyone!

 

I'm doing some CNC projects at Jamie Hyneman's shop in San Francisco (where Mythbusters was filmed).  He has a Fanuc control on a Sharp SV-2412 milling center that you may have seen on the show.  I'm using the machine to make stuff for him and for me.  It is a very nice machine, and works well with Fusion 360.

 

However, we are having one problem.  When I output gcode with the generic Fanuc post in Fusion 360, I get something like this:

 

%
O1001
(T8 D=0.25 CR=0. - ZMIN=-0.31 - FLAT END MILL)
G90 G94 G17 G49 G40 G80
G20
G28 G91 Z0.
G90

(FACE1)
T8 M06
S8000 M03
G54
M08

 

(I added the red bold as emphasis of that line.)

 

We couldn't figure out why the Fanuc control would start to run the gcode file and do the zeroing just fine, but then stop at the tool change line "T8 M06".  After looking at Fanuc forums, we discovered and verified that the like "T8 M06" needs to be reversed to "M06 T8", then it works fine.  Some Fanucs can use either command order, but some Fanucs cannot.  Ours apparently cannot.

 

How can I get Fusion 360 to produce the corrected gcode?  Do I need to make a change to the Fanuc generic post "fanuc.cps" or is there another way to make Fusion 360 reverse the commands in that line?  I'd rather not have to edit gcode every time I make parts, especially if there are a lot of tool changes throughout the gcode file.

 

 

Thank you!

0 Likes
Reply
Accepted solutions (2)
670 Views
4 Replies
Replies (4)

thaont.cnc
Advocate
Advocate
Accepted solution
1 Like

randyT9V9C
Collaborator
Collaborator
Accepted solution

Be aware that the generic Fanuc post is very generic. I've had to edit the post for my 15M quite a bit, especially for some of the finer points like rigid tapping. Make a local copy of the generic post and start editing it. You may need to attempt to open the Personal Posts folder from within Fusion 360 CAM in order for the folders to be created.

 

On Windows put your personal posts in your home folder:

C:\Users\USERNAME\AppData\Roaming\Autodesk\Fusion 360 CAM\Posts

 

On the Mac:

/Users/$USER/Autodesk/Fusion 360 CAM/Posts

 

Look at line 1069:

writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));

 

Change to this:

writeBlock(mFormat.format(6), "T" + toolFormat.format(tool.number));

2 Likes

techshopjim
Enthusiast
Enthusiast

 

Hi Randy...

 

Thank you very much!  That worked perfectly.  I can't wait to actually try it out on the machine Tuesday!

 

Happy New Year!

 

0 Likes

techshopjim
Enthusiast
Enthusiast

 

Hello Thaont...

 

Thank you very much!  That worked perfectly.  You and Randy basically pointed me to the same code in the CPS file, but I didn't know about the stuff in the Post dialog box.

 

I can't wait to actually try it out on the machine Tuesday and do auto tool changes right from my Fusion-generated gcode!

 

Happy New Year!

 

0 Likes