Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [gcode_macro COMPARE_VALUES]
- description: Compare two values
- gcode:
- {% set VALUE_A = params.A|default(0)|float %}
- {% set VALUE_B = params.B|default(0)|float %}
- {% if VALUE_A < (VALUE_B - 3) or VALUE_A > (VALUE_B + 3) %}
- M118 False
- {% else %}
- M118 True
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement