Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
supported-g-codes [2018/12/03 17:50]
wolfmanjm [G codes]
supported-g-codes [2019/01/29 22:51] (current)
arthur [Additional Codes]
Line 109: Line 109:
 | M375 | Z grid strategy: load calibration grid.  optional S Parameter loads a pre saved custom grid  | <​kbd>​M375 S123</​kbd>​ | | M375 | Z grid strategy: load calibration grid.  optional S Parameter loads a pre saved custom grid  | <​kbd>​M375 S123</​kbd>​ |
 | M375.1 | display the current grid   | <​kbd>​M375.1</​kbd>​ | | M375.1 | display the current grid   | <​kbd>​M375.1</​kbd>​ |
-| M400 | Wait for the queue to be empty before ​answering "​OK" ​| <​kbd>​M400</​kbd>​ |+| M400 | Wait for the queue to be empty and the motors to stop before ​the M400 answers ok | <​kbd>​M400</​kbd>​ |
 | M407 | Get filament detector information | <​kbd>​M407</​kbd>​ | | M407 | Get filament detector information | <​kbd>​M407</​kbd>​ |
 | M500 | Save some volatile settings to an override file | <​kbd>​M500</​kbd>​ | | M500 | Save some volatile settings to an override file | <​kbd>​M500</​kbd>​ |
Line 139: Line 139:
 </​code>​ </​code>​
 </​callout>​ </​callout>​
 +== Additional Codes
 +The Smoothieware configuration file permits the association of additional codes with some tool functions. ​ For example, for a [[switch|Switch module]], you can specify an arbitrary command in the '​input_on_command'​ and '​input_off_command'​. ​ This means that some additional codes may be available, depending on your specific configuration file.
 +
 +For example, if you are using servos, then you will likely have configured the following commands:
 +|= G-Code |= Description |= Example |
 +| M280 | Move servo to S<​position>​ where position is 0-100| M280 S20 ; move servo to position 20 = 20% duty cycle |
 +| M281 | Turn off servo | M281 ; Same as M280 S0 0% duty cycle, effectively off | |
 +
 +Additionally,​ in your configuration,​ you can assign sub-commands to deal with multiple tools of the same type, for example:
 +
 +|= G-Code |= Description ​ |
 +| M280.1 | Move your first servo |
 +| M280.2 | Move your second servo | |
  
 == Tool change == Tool change