Advertisement
rootiest

Untitled

Apr 18th, 2022
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.28 KB | None | 0 0
  1. [gcode_macro IF_TEST]
  2. gcode:
  3. M117 Value: { present }
  4. {% if present == 1 %}
  5.   SET_SERVO SERVO=my_servo ANGLE=103
  6.   G4 P1375
  7.   SET_SERVO SERVO=my_servo ANGLE=88
  8.   M117 test pass
  9. {% elif present == 0 %}
  10.   M117 it equals zero
  11. {% else %}
  12.   M117 Unknown Value: { present }
  13. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement