apply formatting

This commit is contained in:
bakedpotatolord 2025-06-10 21:14:47 -06:00
commit d44ca56d39
17 changed files with 165 additions and 185 deletions

View file

@ -19,7 +19,6 @@ description: Variable Substitutions and Expressions in GCode Macros
- \{print-time\} = alias for \{time\} ... deprecated after 2.8
- \{print_time\} = alias for \{time\} ... 2.9 and beyond
## FDM (3D Printing) Mode Only
### FDM Macros
@ -44,10 +43,12 @@ description: Variable Substitutions and Expressions in GCode Macros
- \{e\} = amount of filament extruded
### "Feature" only Macros (v3.4+)
- \{feature\} = feature region of the print (brims, infill, etc)
- \{minx|miny|maxx|maxy\} = position in mm of extents of the print area
### Logical Code Flow (IF / ELIF / ELSE / END)
```
;; IF { layer >= 10 && layer <= 20 }
;; ..... inside 10-20 layer={layer}
@ -58,7 +59,8 @@ description: Variable Substitutions and Expressions in GCode Macros
;; END
```
### PREAMBLE control (v3.4+)
### PREAMBLE control (v3.4+)
Allows for intro comment and config list to be re-positioned after the header or disabled. This was introduced to allow GCode output to work with Ultimaker.
`;; PREAMBLE OFF`
@ -96,24 +98,25 @@ Set decimal precision (n = integer) (v3.8+)
`;; DECIMALS = n`
### Axis Scaling (v3.7+)
Allows for a factor to be applied to X,Y,Z coordinates. Useful for some machines like the Roland MDX-40A that uses an unusual coordinate space. Default axis scale is `1`
_`;; SCALE { "X":100, "Y":100, "Z":100 }`_
## CAM & FDM Modes
### Simple Algebraic Expression Support
## CAM & FDM Modes
### Simple Algebraic Expression Support
- Text inside `{}` is evaluated algebraically with access to JS classes and methods
- `{Math.min(layer/layers, 0.5) + 1}`
- `{token+n} {token-n}`
### Axis Remapping (v3.5+)
Allows for over-riding the default axis names. Useful for swapping axes and changing output for specific firmware targets. The format of the map is a JSON object._
Allows for over-riding the default axis names. Useful for swapping axes and changing output for specific firmware targets. The format of the map is a JSON object.\_
`;; AXISMAP {"X":"Y", "Y":"Z", "E":"E1"}`
## Laser Mode Only
### Laser Macros