Just a quick question regarding numbers for lines.
If any changes are made eg. If I were to put a M00 for a programme stop do I need to change all the numbers to be in order or can it be left out all together?
Want to put a stop after some cuts so that I can pull the parts out before they get covered in dross from the torch.
Cheers for the help.
Mtw fdu.
Line numbers matter when changing g-code?
-
- 3 Star Elite Contributing Member
- Posts: 297
- Joined: Sat Dec 20, 2014 3:12 am
- Location: Barossa Valley, South Australia
Line numbers matter when changing g-code?
Camcutcnc 4 x 4 plasma cutter with UC 100 Motion Controller
Powermax 45 with Machine Torch
Bobcad V27 and Mach 3
Proma THC
Now with Rotary Axis
Laser cross hairs
Powermax 45 with Machine Torch
Bobcad V27 and Mach 3
Proma THC
Now with Rotary Axis
Laser cross hairs
-
- 6 Star Elite Contributing Member
- Posts: 11250
- Joined: Thu Sep 21, 2017 5:22 pm
- Location: Tucson, Arizona
- Contact:
Re: Changing g-code
In general - line numbers are optional, and used for reference only. I don't use them for my cnc machines to save program memory.
Line numbers are sometimes used for looping or subroutine calls - depending on controller.
David
Line numbers are sometimes used for looping or subroutine calls - depending on controller.
David
You currently do not have access to download this file.
To gain download access for DXF, SVG & other files Click Here
Last edited by adbuch on Mon Dec 05, 2022 5:10 am, edited 1 time in total.
-
- 6 Star Elite Contributing Member
- Posts: 11250
- Joined: Thu Sep 21, 2017 5:22 pm
- Location: Tucson, Arizona
- Contact:
Re: Changing g-code
I also use program stops between some operations for cnc machining so that he machine will pause and I can measure the OD, or in some cases release the collet and pull the material out to the desired length before the cut-off operation.
David
David
-
- 3 Star Elite Contributing Member
- Posts: 297
- Joined: Sat Dec 20, 2014 3:12 am
- Location: Barossa Valley, South Australia
Re: Changing g-code
Thanks for the info David.
I have used the M00 with cnc milling when need to check tooling after certain ops to make they are not worn too much and if they have broken altogether.
I have used them for stopping the cutting when doing square tubing to change sides etc. I have manually changed the numbers manually when doing this...however, if it is a long program it can time consuming. Would there be a short cut for the same process when using plasma?
Thanks again for your help.
Mtw fdu.
I have used the M00 with cnc milling when need to check tooling after certain ops to make they are not worn too much and if they have broken altogether.
I have used them for stopping the cutting when doing square tubing to change sides etc. I have manually changed the numbers manually when doing this...however, if it is a long program it can time consuming. Would there be a short cut for the same process when using plasma?
Thanks again for your help.
Mtw fdu.
Camcutcnc 4 x 4 plasma cutter with UC 100 Motion Controller
Powermax 45 with Machine Torch
Bobcad V27 and Mach 3
Proma THC
Now with Rotary Axis
Laser cross hairs
Powermax 45 with Machine Torch
Bobcad V27 and Mach 3
Proma THC
Now with Rotary Axis
Laser cross hairs
-
- 6 Star Elite Contributing Member
- Posts: 11250
- Joined: Thu Sep 21, 2017 5:22 pm
- Location: Tucson, Arizona
- Contact:
Re: Changing g-code
You could probably modify your post processor to add them in automatically. The post processor I use for my cnc machining centers puts in the option stops and program end automatically, and I manually put in any program stops I need.
David
David
- acourtjester
- 6 Star Elite Contributing Member
- Posts: 8490
- Joined: Sat Jun 02, 2012 6:04 pm
- Location: Pensacola, Fla
Re: Changing g-code
I have used M00 when I an using a dimple g-code for center punching drill locations. After they are finished I have the M00 so I can change the nozzle or change the amps setting on the Plasma. Then the finish of the G-code is for normal cutting out of the parts. the line number help for the placement of the M00.
https://drive.google.com/file/d/1jdkwyU ... share_link
https://drive.google.com/file/d/1jdkwyU ... share_link
DIY 4X4 Plasma/Router Table
Hypertherm PM65 Machine Torch
Drag Knife and Scribe
Miller Mig welder
13" metal lathe
Small Mill
Everlast PowerTig 255 EXT
Hypertherm PM65 Machine Torch
Drag Knife and Scribe
Miller Mig welder
13" metal lathe
Small Mill
Everlast PowerTig 255 EXT
-
- 3 Star Elite Contributing Member
- Posts: 297
- Joined: Sat Dec 20, 2014 3:12 am
- Location: Barossa Valley, South Australia
Re: Line numbers matter when changing g-code?
Thanks guys.
I just added in the M00 where I needed them witot changing the numbers and it all worked fine.
Mtw fdu.
I just added in the M00 where I needed them witot changing the numbers and it all worked fine.
Mtw fdu.
Camcutcnc 4 x 4 plasma cutter with UC 100 Motion Controller
Powermax 45 with Machine Torch
Bobcad V27 and Mach 3
Proma THC
Now with Rotary Axis
Laser cross hairs
Powermax 45 with Machine Torch
Bobcad V27 and Mach 3
Proma THC
Now with Rotary Axis
Laser cross hairs
-
- 6 Star Elite Contributing Member
- Posts: 11250
- Joined: Thu Sep 21, 2017 5:22 pm
- Location: Tucson, Arizona
- Contact:
Re: Line numbers matter when changing g-code?
Mtw fdu wrote: Tue Dec 06, 2022 9:31 pm Thanks guys.
I just added in the M00 where I needed them witot changing the numbers and it all worked fine.
Mtw fdu.



That's exactly what I do.
David