User Tools

Site Tools


mycnc:server_api

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mycnc:server_api [2022/01/07 13:49] ivanmycnc:server_api [2022/09/07 15:33] (current) ivan
Line 1: Line 1:
 ====== Server API ====== ====== Server API ======
  
-This article serves as the main reference point for all myCNC material related to the myCNC Server API. It will be expanded at a full manual.+//This article serves as the main reference point for all myCNC material related to the myCNC Server API.// 
  
-The server API allows to control movement and machine coordinates remotely, via a series of commands. A list of such commands is presented below for jog control, etc. To obtain a full list of commands, type ? while connected to the remote host:+The server API allows to control movement and machine coordinates remotely, via a series of commands. 
 + 
 +To enable Server API functionality, first head into your Settings > Config > Network, and enable the ''Server Interface'' option, as well as set a ''Server Port'' (the server port will be used to connect to your system via the ''telnet'' command, for example ''telnet 127.0.0.1 4266''): 
 + 
 +{{:mycnc:server-api-002-network-tab.png}} 
 + 
 +A list of Server API commands is presented below for jog control, etc. To obtain a full list of commands, type ? while connected to the remote host:
  
 {{:mycnc:server-api-001-commands-list.png}} {{:mycnc:server-api-001-commands-list.png}}
Line 63: Line 69:
 | SinglePlay | | SinglePlay |
 | ShutDown |  | ShutDown | 
 +| GetJobName | Get the full job name and file path |
 +| GetSVariable8020 | Get the full job name and file path (same as GetJobName) |
 +| GetSVariable8109 | Get current job (file) size, in MB | 
 +| GetSVariable8108 | Get the current job (file) folder path (same as GetJobName but without the actual file name) |
 +| GetSVariable8107 | Get the current job name without the folder path (name only) | 
  
 ====Server API, Jog control==== ====Server API, Jog control====
mycnc/server_api.txt · Last modified: 2022/09/07 15:33 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki