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
Solved! Go to Solution.
Solved by Swissomation. Go to Solution.
Are you asking for the post to output the G0, G1, G2, or G3 on each line instead of it being Modal?
Hi Chris!
Yes, exactly that I want.
I did not even know that this type of code was called Modal.
Thanks,
Angelo
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.
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
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
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.
Can't find what you're looking for? Ask the community or share your knowledge.