M Code problem

M Code problem

Anonymous
Not applicable
1,489 Views
12 Replies
Message 1 of 13

M Code problem

Anonymous
Not applicable

Hi, I'm using Fusion 360 as a student and been doing some CAM. When I put my file as a ".nc" I have always have this M26 code that is generated and I do not understand what it is for and I wondered how to remove or disable if possible.

0 Likes
Accepted solutions (1)
1,490 Views
12 Replies
Replies (12)
Message 2 of 13

zwelsh91
Advocate
Advocate

To help the community better assist with your question, Can you please share your file and what Post Processor you are using to generate machine code?

Zak Welsh
Zakary Welsh Machine LLC
0 Likes
Message 3 of 13

Anonymous
Not applicable
Here is my post processor (in fusion 360) and here is the “.nc” file;
0 Likes
Message 4 of 13

randyT9V9C
Collaborator
Collaborator

Your attachments didn't come through.

 

Is it generating an error on your control? You may need to comment it out of your post processor. Remember the generic post processors sometimes need to be edited to taste.

 

M26  will vary in purpose depending on the machine/control. You'll need to look it up in your manual. I have one machine that uses M26 to reset the machine zero, another that does clear point tool change, and on my lathe it retracts the tail stock. And I have machines that wouldn't know what to do with it. 😉

0 Likes
Message 5 of 13

Anonymous
Not applicable
It is not a error that M26, I just want to know what activates it and how to disable it in Fusion so it doesn’t generate the M26
Thank you
0 Likes
Message 6 of 13

randyT9V9C
Collaborator
Collaborator

What post processor are you using?

0 Likes
Message 7 of 13

Anonymous
Not applicable
I’m using the one called “Brackets” in Fusion 360
0 Likes
Message 8 of 13

randyT9V9C
Collaborator
Collaborator

Brackets is the editor that your generated g-code is viewed in following post processing. When you post process, what vendor and post are you selecting from the post configuration dialog? What model of machine do you have?

0 Likes
Message 9 of 13

Anonymous
Not applicable
There’s a place to enter what machine you have? In my case it’s a cnc router and I don’t really go into details with what vendor I put in, but does it make a difference?
0 Likes
Message 10 of 13

randyT9V9C
Collaborator
Collaborator

You need to select a post processor that best matches your machine/controller. Every machine is a little different. G-code generated for one machine may have un-intended results on another. Post processors are very much machine/control specific.

 

What cnc machine are you running?

 

postprocessor.PNG

Message 11 of 13

Anonymous
Not applicable
My machine is a cnc router for milling, it’s called CNC3018 but it’s not made by any company and I don’t know what king of gcode my machine understands
0 Likes
Message 12 of 13

randyT9V9C
Collaborator
Collaborator
Accepted solution

I believe the CNC3018 is GRBL based. Try using the GRBL post, it is in the list of pre-installed posts.

 

Alternatively you can download the latest version here:

https://cam.autodesk.com/hsmposts

 

Looking at the sample code it does not have the M26 included that was causing you issues.

0 Likes
Message 13 of 13

Anonymous
Not applicable
I see, I didn’t know what GRBL meant. Now it more sens, thank you very much, I’ll try this change soon and let you know,
Thanks again
0 Likes