User Tools

Site Tools


mycnc:stop_end_program

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
mycnc:stop_end_program [2019/10/28 12:12] – created ivanmycnc:stop_end_program [2019/10/28 12:16] ivan
Line 64: Line 64:
 };</code> };</code>
  
 +Additionally, whenever the player stops running G-code, the %%__HANDLER_GCODE_STOP%% Software PLC which is continuously running in the background will be activated. By default, the %%__HANDLER_GCODE_STOP%% simply consists of the following code:
  
 +<code C __HANDLER_GCODE_STOP>main()
 + {
 +  exit(99);
 + };
 +</code>
  
 +Therefore, in a default configuration, this handler will simply activate, do nothing and then close. However, in situations where it is necessary to add a command which will activate whenever the G-code run has stopped, %%__HANDLER_GCODE_STOP%% can be used. 
mycnc/stop_end_program.txt · Last modified: 2024/02/21 13:54 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki