GCode Variable Substitution

Stewart Allen edited this page Apr 18, 2017 · 1 revision

current set of variable substitutions

All Modes

  • {top} = offset in mm of bed top Y axis
  • {left} = offset in mm of bed left X axis
  • {right} = offset in mm of bed right X axis
  • {bottom} = offset in mm of bed bottom Y axis

3D printing / FDM

in "pre" and "post"

  • {temp} = hot end temperature
  • {bed_temp} = bed temperature
  • {fan_speed} = active cooling fan speed (usually 0-255)
  • {z_max} = max build height in mm

in "settings"

  • {bed_width} = bed width in mm
  • {bed_depth} = bed depth in mm
  • {nozzle_size} = nozzle diameter in mm
  • {filament_diameter} = filament diameter in mm

CAM

  • {tool} = CAM tool #
  • {tool_name} = CAM tool name

simple algebraic expressions supported in the form

  • {token+n} {token-n} {token/n} {token*n}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.