Skip to content

GCode Variable Substitution

Stewart Allen edited this page Feb 7, 2020 · 2 revisions

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
  • {time} = dwell time in seconds
  • {time_ms} = dwell time in milliseconds
  • {time_sec} = dwell time in seconds

simple algebraic expressions supported in the form

  • {token+n} {token-n} {token/n} {token*n}

Kiri:Moto Resources

Support Development

Donate

Clone this wiki locally