diff options
author | Janar Sööt <janar.soot@gmail.com> | 2018-09-27 19:08:01 +0300 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-09-30 11:53:10 -0400 |
commit | 68dc28580fd6e7500e5e8fa515763a25d6a03c29 (patch) | |
tree | 8dbe7dabe0717b4f02a7cfedd6bb862334ed9587 /config | |
parent | d9e35481bedd5de04800120befc0e94b5877ecd6 (diff) | |
download | kutter-68dc28580fd6e7500e5e8fa515763a25d6a03c29.tar.gz kutter-68dc28580fd6e7500e5e8fa515763a25d6a03c29.tar.xz kutter-68dc28580fd6e7500e5e8fa515763a25d6a03c29.zip |
gcode_macro: default parameter values
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/example-extras.cfg | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg index 8b1cad33..1e5776f9 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -976,6 +976,14 @@ # a macro MY_DELAY with gcode "G4 P{DELAY}" then the command # "MY_DELAY DELAY=100" would evaluate to "G4 P100". This parameter # must be provided. +#default_parameter_<parameter>: +# One may define any number of options with a "default_parameter_" +# prefix. Use this to define default values for g-code parameters. +# For example, if one were to define the macro MY_DELAY with gcode +# "G4 P{DELAY}" along with "default_paramter_DELAY = 50" then the +# command "MY_DELAY" would evaluate to "G4 P50". The default is to +# require that all parameters used in the gcode script be present in +# the command invoking the macro. # Replicape support - see the generic-replicape.cfg file for further |