Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Repeat G-Code Command - GRBL

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
Anonymous
3121 Views, 8 Replies

Repeat G-Code Command - GRBL

Hi!

I'm using Estlcam as cnc controler with grbl and it only works with g-code file that repeat the command on each coordinate.

Does have a way to configure Fusion 360 to generate g-code in this way?

 

Thanks!

 

Angelo

8 REPLIES 8
Message 2 of 9
Swissomation
in reply to: Anonymous

Are you asking for the post to output the G0, G1, G2, or G3 on each line instead of it being Modal?

Chris Welch
President
Swissomation, Inc
Micro Machining


Message 3 of 9
Anonymous
in reply to: Swissomation

Hi Chris!

 

Yes, exactly that I want.

I did not even know that this type of code was called Modal.

 

Thanks,

 

Angelo

Message 4 of 9
LibertyMachine
in reply to: Anonymous

What post porocessor are you using? This is a very easy edit to do if you feel up to the task. Let's say we want the X,Y,Z position to be repeated at every line, (even if it's already at position) like so:

 

G01 X-0.4014 Y1.0000 Z-0.8750
G01 X0.7500 Y1.0000 Z-0.8750
G01 X0.7723 Y0.9990 Z-0.8750
G01 X0.7944 Y0.9960 Z-0.8750
G01 X0.8161 Y0.9911 Z-0.8750

Making this edit is easy. First, COPY your post processor to a new folder (we always want to have a backup). Second, open up the .cps file in a suitable editor (I prefer to use either Notepad++ or VBC) and search down a page or two for the varXoutput lines. We want to change this:

var xOutput = createVariable({prefix:"X"}, xyzFormat);

into this:

var xOutput = createVariable({prefix:"X", force:true}, xyzFormat);

Repeat this for any other value you want continuously posted out.

 

I am attaching a generic Chinese Post Processor I modified a while ago. I invite you to look at it's format and see how things are worded and perhaps see if this will work for you as well.

I'm NOT saying to "USE THIS POST", but rather, post out some code and see how many characters are being repeated each line. If you do decide you WANT to use this post, proceed with caution, as I've got zero idea how it will behave for your needs.

 

 

 


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
Message 5 of 9
Anonymous
in reply to: LibertyMachine

Hi Seth!

 

Thank you so much for the attention!

I am using GRBL post but what I need is repeat the command and not de coordinate.

For example, my g-code today is like this:

 

G1 X114.492 Y0 Z-14.278
X114.456 Y0 Z-12.192
X114.346 Y0 Z-10.25
G3 X74.88 Y0 Z-16.403 K0.6
G0 X74.88 Y0 Z1
X66.991 Y2 Z1
X66.991 Y2 Z-5.389


And this is what I want:

 

G1 X114.492 Y0 Z-14.278
G1 X114.456 Y0 Z-12.192
G1 X114.346 Y0 Z-10.25
G3 X74.88 Y0 Z-16.403 K0.6
G0 X74.88 Y0 Z1
G0 X66.991 Y2 Z1
G0 X66.991 Y2 Z-5.389

 

Thanks,

 

Angelo

Message 6 of 9
LibertyMachine
in reply to: Anonymous

Actually, the post I shared does also post out repetitive G codes. I don't have time to dive through the post to find out what I had done for that option, but feel free to have a go


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
Message 7 of 9
Anonymous
in reply to: LibertyMachine

I will really try!

 

Thank you so much for the help.

Message 8 of 9
Swissomation
in reply to: Anonymous

Try copying your post and then saving it as a personal post. If you cannot find the post to copy, you can download one from : https://cam.autodesk.com/hsmposts

 

Modify the copied personal post.

 

Find this line:


var gMotionModal = createModal({}, gFormat); // modal group 1 // G0-G3, ...

 

Add the below line above it and put two forward slashes "//" in front of the original line so it looks like this:

 

var gMotionModal = createModal({force:true}, gFormat); // modal group 1 // G0-G3, ...
// var gMotionModal = createModal({}, gFormat); // modal group 1 // G0-G3, ...

 

Everything in red is added.

This will comment out your original code and force the output of the G-codes.

 

Please be very careful and test your post. I am not a post expert. I am just trying to help.

 

Chris Welch
President
Swissomation, Inc
Micro Machining


Message 9 of 9
Anonymous
in reply to: Swissomation

Hi Chris!

 

It worked perfectly!

 

 

Thankyou very much!

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

Post to forums  

Autodesk Design & Make Report