Announcements
Visit Fusion 360 Feedback Hub, the great way to connect to our Product, UX, and Research teams. See you there!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom Manual NC code

Custom Manual NC code

Hi,

 

I would like to be able to create multiple new manual nc operations with about 5-10 lines of code and save them as templates that I can name myself. For instance, I need to be able to write code to retract a machine to it's Z zero position, then position it to an X and Y, then rotate an indexer. I typically run CNC horizontal mills with an indexing tombstone, so I need to keep the spindle as far away from the tombstone when indexing, as it indexes in rapid feed only. I also like to position X and Y in a place of my choosing for the next operation. I know I can just edit the posted code but I dont want to do that everytime I change feeds and speeds or a toolpath.

 

I have used the "Actions" and "Pass Throughs" options, but they are limited to one liners and you cant save them for use later.

 

Thank you, and keep up the great work, I am loving this software so far!

 

Korianna Slawnyk

8 Comments

Actually you can make the pass through output multiple lines. And save them as templates.

 

In the post processor use this function for pass through and the post will spilt the lines after ;

function onPassThrough( text ) {
    var lines = String( text ).split( ";" );

    for ( var i in lines )  {
        writeln( lines[ i ] );
    }
 

 

Coscor_NPL
Advocate

I woul also like as described above, the ability to add a custom line to the program (like say a extra special manual move to line with a special M code)

@Coscor_NPL

Like said above that is just a small post processor edit away.

The functionality is already in the program.

Coscor_NPL
Advocate

@Laurens-3DTechDraw I know that I can make custom codes in the post processor, but this would enable a fuction on all programs posted by this post, what I actually meant was that I wanted inside the program to add a line of code to the program

 

example:

I want to call a custom numbered zero point stored in the machine before any operations,

first I would add as the first 'operation' a 'Custom operation NC' and type what i want to add, like, as a example:

______________________

CYCL DEF 7.0 NULPUNKT
CYCL DEF 7.1 #6

______________________

Then thereafter add all the operation (drilling, milling etc.)

 

The only way I see this could be possible, is to either inserting the line in the final posted program...

 

I'm sorry if I misunderstood your post, if you ment that we actually allready have the functionallity to add 'custom nc lines operations'

 

 

Also, Not everyone can figure out how to update (or have the permission) to update your post, and it can be expensive to get your supplier to do it...

 

BTW. I saw this idea: http://forums.autodesk.com/t5/ideastation-request-a-feature-or/create-your-own-manual-nc-options/idi... and now I just realized it is you that posted the idea... 

@Coscor_NPL

We already have the possibility in the program. But by default this is not enabled in the post because you can seriously have a crash when you don't think about what you are doing.

 

If you paid your re-seller for your post or when you are using one supplied with the program you can and are allowed to edit them.

If they are just copy paste everybody should be able to do this right?

 

If you paste the code I pasted about totally at the bottom of your post processor(see the forum where to store custom posts) you should be able to insert code into your NC-file with using a Manual NC - Passthrough and type the code you want. ; will make the code after be written on a new line.

 

And yes that Idea was me.Smiley Wink

Thanks for the vote.

Coscor_NPL
Advocate

@Laurens-3DTechDraw okay, I think I'm stating to understand.

 

Anyways... you say we can 'add custom nc code' in fusion360.. where is this? I can't find it... (Korianna mentioned something of Actions and Pass Throughs?) sorry if i'm just dumb and missed it!

 

Thanks for the tip I need to make sure the post needs to be able to 'accept the code given by Fusion360'

 

Btw. no, if you're in bigger companies, people are not 'allowed' to edit your post, exept if you pay a supplier to do it 'correctly'... stuff like that

If the company is like that, well let them pay. Sorry but you should protect stupidity. If the company rather pays someone let the re-seller do it.

But for some reason the manual NC operation doesn't seem to feel like a possibility. I'll see if I can make a video for you tomorrow.
Coscor_NPL
Advocate

@Laurens-3DTechDraw If you could make some sort of video, it would be greatly appriciated!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea