Add Materials From G-Code
05 May 2020 06:13 #166738
by phillc54
Add Materials From G-Code was created by phillc54
This feature is from
a request on Github
This is from the docs:
This is from the docs:
Warning: Spoiler!
It is possible to add new materials or edit existing materials by using "magic comments" in a G-Code file.
A full example is:
(o=1, nu=2, na=5mm Mild Steel 40A, ph=3.1, pd=0.1, ch=0.75, fr=3000, kw=0.5, th=1, ca=45, cv=110, pe=0.1, gp=5, cm=1, jh=0, jd=0)
This is made up of the following mandatory parameters:
Name Description
o= option
nu= material number (see note below)
na= material name (see note below)
ph= pierce height
pd= pierce delay
ch= cut height
fr= feed rate
Plus the following optional parameters:
Name Description
kw= kerf width
th= thc enable (0=disable, 1=enable)
ca= cut amps
cv= cut voltage
pe= pause at end delay
gp= gas pressure (Powermax)
cm= cut mode (Powermax)
jh= puddle jump height
jd= puddle jump delay
The options are:
Option Description
0 Create a temporary default material
This will be discarded by a manual reload or a LinuxCNC restart
1 Add a new material if it does not exist
2 Overwrite an existing material if it exists
Add a new material if it does not exist
Formatting rules are:
. The entire comment must be in parentheses
. The beginning of the magic comment must be (o=
. The equals sign must immediately follow each parameter with no space
. The above mandatory parameters must be in the magic comment (see note below)
. There can be any number and type of magic comments in a G-Code file with the exception of option 0. If more than one option 0 are in the G-Code file then only the first one found will be used and the others will have an error reported
NOTE: nu and na are not required for option 0.
The following user(s) said Thank You: tommylight, bbsr_5a
Please Log in or Create an account to join the conversation.
05 May 2020 06:51 #166742
by bbsr_5a
Replied by bbsr_5a on topic Add Materials From G-Code
where do the numbers come from
if you need to edit the G-code you can edit the material LIB in first hand
if you need to edit the G-code you can edit the material LIB in first hand
Please Log in or Create an account to join the conversation.
05 May 2020 06:53 #166743
by phillc54
Replied by phillc54 on topic Add Materials From G-Code
Sorry, I don't understand what you mean...
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.075 seconds