config: Add example for including a parameter in a macro call (#2251)
Add description to default_parameter of g-code macro description of method to call macro with a non-default value. Signed-off-by: David Smith <davidosmith@gmail.com>
This commit is contained in:
parent
8663bc8192
commit
d1f4f18810
|
@ -400,9 +400,11 @@
|
||||||
# prefix. Use this to define default values for g-code parameters.
|
# prefix. Use this to define default values for g-code parameters.
|
||||||
# For example, if one were to define the macro MY_DELAY with gcode
|
# For example, if one were to define the macro MY_DELAY with gcode
|
||||||
# "G4 P{DELAY}" along with "default_parameter_DELAY = 50" then the
|
# "G4 P{DELAY}" along with "default_parameter_DELAY = 50" then the
|
||||||
# command "MY_DELAY" would evaluate to "G4 P50". The default is to
|
# command "MY_DELAY" would evaluate to "G4 P50". To override the
|
||||||
# require that all parameters used in the gcode script be present in
|
# default parameter when calling the command then using
|
||||||
# the command invoking the macro.
|
# "MY_DELAY DELAY=30" would evaluate to "G4 P30". The default is
|
||||||
|
# to require that all parameters used in the gcode script be
|
||||||
|
# present in the command invoking the macro.
|
||||||
#variable_<name>:
|
#variable_<name>:
|
||||||
# One may specify any number of options with a "variable_" prefix.
|
# One may specify any number of options with a "variable_" prefix.
|
||||||
# The given variable name will be assigned the given value (parsed
|
# The given variable name will be assigned the given value (parsed
|
||||||
|
|
Loading…
Reference in New Issue