# a comment at the very top # should be treated as the file header # up to the first section, including all blank lines [section_1] option_1: value_1 option_1_1: True # this is a boolean option_1_2: 5 ; this is an integer option_1_3: 1.123 #;this is a float [section_2] ; comment option_2: value_2 ; comment [section_3] option_3: value_3 # comment [section_4] # comment option_4: value_4 [section number 5] #option_5: value_5 option_5 = this.is.value-5 multi_option: # these are multi-line values value_5_1 value_5_2 ; here is a comment value_5_3 option_5_1: value_5_1 [gcode_macro M117] rename_existing: M117.1 gcode: {% if rawparams %} {% set escaped_msg = rawparams.split(';', 1)[0].split('\x23', 1)[0]|replace('"', '\\"') %} SET_DISPLAY_TEXT MSG="{escaped_msg}" RESPOND TYPE=command MSG="{escaped_msg}" {% else %} SET_DISPLAY_TEXT {% endif %} # SDCard 'looping' (aka Marlin M808 commands) support # # Support SDCard looping [sdcard_loop] [gcode_macro M486] gcode: # Parameters known to M486 are as follows: # [C] Cancel the current object # [P] Cancel the object with the given index # [S] Set the index of the current object. # If the object with the given index has been canceled, this will cause # the firmware to skip to the next object. The value -1 is used to # indicate something that isn’t an object and shouldn’t be skipped. # [T] Reset the state and set the number of objects # [U] Un-cancel the object with the given index. This command will be # ignored if the object has already been skipped {% if 'exclude_object' not in printer %} {action_raise_error("[exclude_object] is not enabled")} {% endif %} {% if 'T' in params %} EXCLUDE_OBJECT RESET=1 {% for i in range(params.T | int) %} EXCLUDE_OBJECT_DEFINE NAME={i} {% endfor %} {% endif %} {% if 'C' in params %} EXCLUDE_OBJECT CURRENT=1 {% endif %} {% if 'P' in params %} EXCLUDE_OBJECT NAME={params.P} {% endif %} {% if 'S' in params %} {% if params.S == '-1' %} {% if printer.exclude_object.current_object %} EXCLUDE_OBJECT_END NAME={printer.exclude_object.current_object} {% endif %} {% else %} EXCLUDE_OBJECT_START NAME={params.S} {% endif %} {% endif %} {% if 'U' in params %} EXCLUDE_OBJECT RESET=1 NAME={params.U} {% endif %}