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
console-commands [2018/12/03 17:51]
wolfmanjm [config-get]
console-commands [2020/11/07 12:24] (current)
wolfmanjm
Line 8: Line 8:
 Not all of the console commands are documented here, feel free to add any that have been missed. Not all of the console commands are documented here, feel free to add any that have been missed.
 </​callout>​ </​callout>​
 +
 +<callout type="​warning"​ icon="​true"​ title="​Usage">​
 +Commands are meant as shortcuts/​easier to use alternatives to G/M-codes when users are interacting directly with the machine via one of the serial ports.
 +
 +If you are developing a host, you should use G/M-codes to interface programmatically with the machine, as they are more consistent in their format and answers and easier to parse.
 +
 +Commands on the other hand have no guarantee to have any of that, they are meant for manual use.
 +</​callout>​
 +
 +
  
 <callout type="​info"​ icon="​true"​ title="​ Pronterface">​ <callout type="​info"​ icon="​true"​ title="​ Pronterface">​
Line 29: Line 39:
 <​kbd>​help</​kbd>​ Give a list of commands <​kbd>​help</​kbd>​ Give a list of commands
  
-Here is an example output ( as of April 2016 )+Here is an example output ( as of March 2019 )
  
 <​code>​ <​code>​
 +commands:
 version version
 mem [-v] mem [-v]
-ls [[-s]|[folder]]+ls [-s]|[folder]
 cd folder cd folder
 pwd pwd
-cat file [[limit]|[-d 10]]+cat file [limit]|[-d 10]
 rm file rm file
 mv file newfile mv file newfile
Line 52: Line 63:
 get temp [bed|hotend] get temp [bed|hotend]
 set_temp bed|hotend 185 set_temp bed|hotend 185
 +switch name [value]
 net net
 load [file] - loads a configuration override file from specified name or config-override load [file] - loads a configuration override file from specified name or config-override
Line 347: Line 359:
  
 And be very careful as this command will leave your laser on indefinitely,​ it is the only thing that can do that, and it is dangerous. And be very careful as this command will leave your laser on indefinitely,​ it is the only thing that can do that, and it is dangerous.
 +
 +=== Host commands
 +These are commands designed to return information to a Host program like Smoopi. Some are instant and reply regardless of the state of the buffers.
 +
 +<​key>​$G</​key>​ return gcode state eg ''​[GC:​G0 G54 G17 G21 G90 G94 M0 M5 M9 T0 F15000.0 S0.8000]''​
 +
 +<​key>​$I</​key>​ same as $G but sends no ok and is instant
 +
 +<​key>​$H</​key>​ Home
 +
 +<​key>​$J</​key>​ [Xnnn] [Ynnn] [Znnn] [Snnn] issue jog command, axis can be XYZABC optional S is scale of max_rate
 +
 +<​key>​$S</​key>​ [switches] return switch state(s) for the named switches
 +
 +<​key>​$X</​key>​ release ALARM state
 +
 +<​key>​$#</​key>​ returns the WCS states and values
 +
 +<​key>?</​key>​ instantly returns the current running state, axis positions, feedrates and temperatures eg ''<​Idle|MPos:​0.0000,​0.0000,​470.7656,​85.1522|WPos:​0.0000,​0.0000,​470.5656|F:​15000.0,​279.0|T:​22.2,​0.0|B:​22.2,​0.0>''​
 +
  
 === Stopping Smoothie === Stopping Smoothie
  
 {{page>​stopping-smoothie}} {{page>​stopping-smoothie}}