Untitled

mail@pastecode.io avatar
unknown
python
a year ago
1.3 kB
2
Indexable
Never
[gcode_macro go_screw_1]
gcode:
  SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0
  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=0

  {% if printer.toolhead.homed_axes == "xyz" %}
    G1 Z15
    G1 X20 Y20 F5000
    G1 Z0 F600
    
  {% else %}
    G28
    G1 Z15
    G1 X20 Y20 F5000
    G1 Z0 F600
  {% endif %}



[gcode_macro go_screw_2]
gcode:
  SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0
  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=0

  {% if printer.toolhead.homed_axes == "xyz" %}
    G1 Z15
    G1 X200 Y20 F5000
    G1 Z0 F600
    
  {% else %}
    G28
    G1 Z15
    G1 X200 Y20 F5000
    G1 Z0 F600
  {% endif %}



[gcode_macro go_screw_3]
gcode:
  SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0
  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=0

  {% if printer.toolhead.homed_axes == "xyz" %}
    G1 Z15
    G1 X20 Y200 F5000
    G1 Z0 F600
    
  {% else %}
    G28
    G1 Z15
    G1 X20 Y200 F5000
    G1 Z0 F600
  {% endif %}



[gcode_macro go_screw_4]
gcode:
  SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0
  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=0

  {% if printer.toolhead.homed_axes == "xyz" %}
    G1 Z15
    G1 X200 Y200 F5000
    G1 Z0 F600

  {% else %}
    G28
    G1 Z15
    G1 X200 Y200 F5000
    G1 Z0 F600
  {% endif %}