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

Both sides previous revisionPrevious revision
mycnc:stop_end_program [2021/04/08 21:54] ivanmycnc:stop_end_program [2024/02/21 13:54] (current) ivan
Line 42: Line 42:
   exit(99);   exit(99);
 };</code> };</code>
 +
 +:!: **NOTE:** Note the ''proc=plc_proc_idle'' code at the end of the M02 macro. If this line is not present, then the Stop command is not completed, and the system will remain suspended as it waits for the PLC code to complete all operations. As a result, running/restarting the control program will not work correctly. 
  
 {{:mycnc:stop-end-003-m02.png}} {{:mycnc:stop-end-003-m02.png}}
Line 96: Line 98:
  
 In non-default configurations, there can be a number of outputs/inputs being set and cleared upon program stop. Often, when issues arise with ports being set and cleared upon program start/stop, it is an issue with port set / port clear code being left over in the M02, OFF, and %%__HANDLER_GCODE_STOP%% commands. Therefore, it is advisable to begin diagnostics with looking for portset/portclr codes in these commands to see if the behaviour has been previously defined there.  In non-default configurations, there can be a number of outputs/inputs being set and cleared upon program stop. Often, when issues arise with ports being set and cleared upon program start/stop, it is an issue with port set / port clear code being left over in the M02, OFF, and %%__HANDLER_GCODE_STOP%% commands. Therefore, it is advisable to begin diagnostics with looking for portset/portclr codes in these commands to see if the behaviour has been previously defined there. 
 +
 +
  
  
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