Difference between revisions of "Custom G-Code Variables"

From MatterControl Manual
Jump to: navigation, search
(Created page with "MatterSlice allows you to place certain tokens in your custom GCode that will automatically be replaced with the appropriate values. F...")
 
 
(16 intermediate revisions by one other user not shown)
Line 1: Line 1:
MatterSlice allows you to place certain tokens in your [[Slice Settings/Printer/Custom G-Code|custom GCode]] that will automatically be replaced with the appropriate values. For example:
+
[[File:Lulzbot Mini Custom GCode Example.png|framed|right|<center>The Lulzbot Mini profile makes use of Custom G-Code variables.</center>]]MatterSlice allows certain tokens to be placed in [[SETTINGS/Printer/Custom G-Code|custom G-Code]] that will automatically be replaced with the appropriate values. For example:
  
 
<code>M109 S[temperature]</code>
 
<code>M109 S[temperature]</code>
  
In this line, <code>[temperature]</code> will be replaced with the extruder temperature defined in your slice settings. These tokens can be enclosed in either square brackets [] or curly brackets {}, but for compatibility with other slicers we recommend square brackets.
+
In this line, <code>[temperature]</code> will be replaced with the extruder temperature defined in your slice settings. These tokens can be enclosed in either square brackets [] or curly brackets {}, but for compatibility with other slicers square brackets are recommended.
  
 
Here is the list of currently available tokens:
 
Here is the list of currently available tokens:
Line 9: Line 9:
 
{|
 
{|
 
|-
 
|-
! variable !! Slice Settings Page
+
! Variable !! Slice Settings Page
 
|-
 
|-
| <tt>temperature</tt> || [[Slice Settings/Filament/Filament/Extruder Temperature (C)/Extruder Temperature|Extruder Temperature]]
+
| <tt>temperature</tt> || [[SETTINGS/Filament/Filament/Extruder Temperatures/Extruder Temperature|Extruder Temperature]]
 
|-
 
|-
| <tt>bed_temperature</tt> || [[Slice Settings/Filament/Filament/Bed Temperature (C)/Bed Temperature|Bed Temperature]]
+
| <tt>bed_temperature</tt> || [[SETTINGS/Filament/Filament/Bed Temperatures/Bed Temperature|Bed Temperature]]
 
|-
 
|-
| <tt>bed_remove_part_temperature</tt> || Example
+
| <tt>bed_remove_part_temperature</tt> || [[SETTINGS/Filament/Filament/Bed Temperatures/Bed Remove Part Temperature|Bed Remove Part Temperature]]
 
|-
 
|-
| <tt>extruder_wipe_temperature</tt> || [[Slice Settings/Filament/Filament/Extruder Temperature (C)/Extruder Wipe Temperature|Extruder Wipe Temperature]]
+
| <tt>extruder_wipe_temperature</tt> || [[SETTINGS/Filament/Filament/Extruder Temperatures/Extruder Wipe Temperature|Extruder Wipe Temperature]]
 
|-
 
|-
| <tt>z_offset</tt> || Example
+
| <tt>z_offset</tt> || [[SETTINGS/Printer/Print Area/Size and Coordinates/Z Offset|Z Offset]]
 
|-
 
|-
| <tt>retract_length</tt> || Example
+
| <tt>retract_length</tt> || [[SETTINGS/Filament/Filament/Retraction/Length on Move|Length on Move]]
 
|-
 
|-
| <tt>filament_diameter</tt> || Example
+
| <tt>filament_diameter</tt> || [[SETTINGS/Filament/Filament/Filament/Diameter|Filament Diameter]]
 
|-
 
|-
| <tt>first_layer_speed</tt> || Example
+
| <tt>first_layer_speed</tt> || [[SETTINGS/General/Speed/Modifiers/First Layer Speed|First Layer Speed]]
 
|-
 
|-
| <tt>infill_speed</tt> || Example
+
| <tt>infill_speed</tt> || [[SETTINGS/General/Speed/Speed for Infill/Infill|Speed for Infill]]
 
|-
 
|-
| <tt>max_fan_speed</tt> || Example
+
| <tt>max_fan_speed</tt> || [[SETTINGS/Filament/Cooling/Fan Speed/Maximum Fan Speed|Maximum Fan Speed]]
 
|-
 
|-
| <tt>min_fan_speed</tt> || Example
+
| <tt>min_fan_speed</tt> || [[SETTINGS/Filament/Cooling/Fan Speed/Minimum Fan Speed|Minimum Fan Speed]]
 
|-
 
|-
| <tt>min_print_speed</tt> || Example
+
| <tt>min_print_speed</tt> || [[SETTINGS/Filament/Cooling/Cooling Thresholds/Minimum Print Speed|Minimum Print Speed]]
 
|-
 
|-
| <tt>perimeter_speed</tt> || Example
+
| <tt>perimeter_speed</tt> || [[SETTINGS/General/Speed/Speed for Perimeters/Inside Perimeters|Inside Perimeter Speed]]
 
|-
 
|-
| <tt>retract_speed</tt> || Example
+
| <tt>retract_speed</tt> || [[SETTINGS/Filament/Filament/Retraction/Speed|Retraction Speed]]
 
|-
 
|-
| <tt>support_material_speed</tt> || Example
+
| <tt>support_material_speed</tt> || [[SETTINGS/General/Speed/Speed for Other Printing/Support Material|Support Material Speed]]
 
|-
 
|-
| <tt>travel_speed</tt> || Example
+
| <tt>travel_speed</tt> || [[SETTINGS/General/Speed/Speed for Non-Print Moves/Travel|Travel Speed]]
 
|-
 
|-
| <tt>bridge_fan_speed</tt> || Example
+
| <tt>bridge_fan_speed</tt> || [[SETTINGS/Filament/Cooling/Fan Speed/Bridging Fan Speed|Bridging Fan Speed]]
 
|-
 
|-
| <tt>bridge_speed</tt> || Example
+
| <tt>bridge_speed</tt> || [[SETTINGS/General/Speed/Speed for Other Printing/Bridges|Bridge Speed]]
 
|-
 
|-
| <tt>raft_print_speed</tt> || Example
+
| <tt>raft_print_speed</tt> || [[SETTINGS/General/Speed/Speed for Infill/Raft|Raft Speed]]
 
|-
 
|-
| <tt>external_perimeter_speed</tt> || Example
+
| <tt>external_perimeter_speed</tt> || [[SETTINGS/General/Speed/Speed for Perimeters/Outside Perimeter|Outside Perimeter Speed]]
 +
|-
 +
| <tt>layer_num</tt> || Represents the current layer number, starting with 0.
 
|}
 
|}
 +
 +
[[Category:Slice Settings]]

Latest revision as of 10:32, 28 December 2016

The Lulzbot Mini profile makes use of Custom G-Code variables.
MatterSlice allows certain tokens to be placed in custom G-Code that will automatically be replaced with the appropriate values. For example:

M109 S[temperature]

In this line, [temperature] will be replaced with the extruder temperature defined in your slice settings. These tokens can be enclosed in either square brackets [] or curly brackets {}, but for compatibility with other slicers square brackets are recommended.

Here is the list of currently available tokens:

Variable Slice Settings Page
temperature Extruder Temperature
bed_temperature Bed Temperature
bed_remove_part_temperature Bed Remove Part Temperature
extruder_wipe_temperature Extruder Wipe Temperature
z_offset Z Offset
retract_length Length on Move
filament_diameter Filament Diameter
first_layer_speed First Layer Speed
infill_speed Speed for Infill
max_fan_speed Maximum Fan Speed
min_fan_speed Minimum Fan Speed
min_print_speed Minimum Print Speed
perimeter_speed Inside Perimeter Speed
retract_speed Retraction Speed
support_material_speed Support Material Speed
travel_speed Travel Speed
bridge_fan_speed Bridging Fan Speed
bridge_speed Bridge Speed
raft_print_speed Raft Speed
external_perimeter_speed Outside Perimeter Speed
layer_num Represents the current layer number, starting with 0.