Good Day,
Getting my feet wet with g-code. I made a working program from Fusion 360 to Universal G Code v 2.0 Nightly.
Can I jog through the program and start on line 70 instead of line 20??
Thank you very much
Solved! Go to Solution.
Solved by litodrums. Go to Solution.
In most controls you can start at any line in the code. The main thing to watch for is to make sure all of your offsets, tool numbers, speeds and feeds are being called past that point in the code. The machine won't read anything before the line you start at. If you are simply wanting to skip over a part of your code, I would suggest using block delete on the sections you want to skip, again being sure that you are calling of the necessary initial commands.
Thank you for getting back, do I do the editing/blocking in UGS?? OR do I edit the code in program called Brackets.
thank you
I would do it in Brackets, for me its a little easier to spot any mistakes there, but its more about what you are more comfortable with.
thank you again for the suggestion on using Brackets. I would think I would need to do a backup of the original g-code before I start deleting lines? Correct?
Also because I'm new at this, reading code lines for me is like spotting a star formation in the nights sky. But I guess that's something I need to start learning.
Thank you very much for your input, I appreciate it very much.
I'm just starting out but I'm very excited to learn the right way of doing this.
@litodrums Why do you want to edit the G code? Is what Fusion posts incorrect? Better to fix the post processor than manually edit code, sooner or later you'll get it wrong and crash your machine.
Mark
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Actually, doing a block delete is just adding a "/" to the beginning of a line, like so:
/G0 X0 Y0
So you aren't actually deleting anything, so a backup isn't necessary. Good luck, hope it works out for you.
The g code runs fine. I need to switch out a cutter and run only a section of the code to clean up two areas on the piece. I'm concerned that the switched out cutter will mess up the part overall, that looks good right now.
OK so if I have 200 lines of code, each line get an "/" at the beginning and when I'm done just remove the "/".
Correct??
Another method is with line numbers.
Fanuc and Mitsubishi allow this:
T1M6 (.500 ENDMILL)
G0 G90 G54 X 1. Y1. S1000 M3
G43 H1 Z.1 M8
GOTO 123 (where the "123" is whatever line number you want to skip to.
N120 (STUFF)
N121 (YOU WANT)
N122 (TO SKIP)
N123 (IT THEN SKIPS TO THIS LINE, AS IT'S #123)
This may or may not work in Mach3
Not sure I can do this with a MillRight Carve King Using BrGl electronics??
But I can also try this as well as "/".
Thank you
Can't find what you're looking for? Ask the community or share your knowledge.