mycnc:stop_end_program
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mycnc:stop_end_program [2019/10/28 13:01] – ivan | mycnc:stop_end_program [2020/11/20 10:01] – ivan | ||
---|---|---|---|
Line 2: | Line 2: | ||
{{: | {{: | ||
+ | |||
+ | {{youtube> | ||
When using myCNC, the actions performed by the program when the Stop button is pressed are defined in the following files: | When using myCNC, the actions performed by the program when the Stop button is pressed are defined in the following files: | ||
Line 9: | Line 11: | ||
* %%__HANDLER_GCODE_STOP%% (Settings > Config > PLC > Software PLC) | * %%__HANDLER_GCODE_STOP%% (Settings > Config > PLC > Software PLC) | ||
- | The actions taken upon pressing the button differ depending on the sequence | + | The exact actions taken upon pressing the Stop button differ depending on the number |
<code C M02.plc> | <code C M02.plc> | ||
Line 39: | Line 41: | ||
};</ | };</ | ||
- | If the Stop button is pressed TWICE, the OFF.plc procedure will be utilized: | + | {{: |
+ | |||
+ | If the Stop button is pressed TWICE, the OFF.plc procedure will be used. Below is the default code for the OFF.plc procedure for the X1366P profile (note that the procedures will be different for other profiles and different user cases): | ||
<code C OFF.plc># | <code C OFF.plc># | ||
Line 64: | Line 68: | ||
};</ | };</ | ||
- | The two separate commands allow for a variety of stopping configurations. M02.plc procedure | + | {{: |
+ | |||
+ | The two separate commands allow for a variety of stopping configurations. M02.plc procedure | ||
+ | |||
+ | Sometimes, when issues arise with the lift procedure, or with any of the processes described in the M02 procedure, it is advisable to click the Stop button twice in order to obtain a complete and total G-code run shutdown (if that is the way that the codes have been set up). | ||
Additionally, | Additionally, | ||
Line 74: | Line 82: | ||
</ | </ | ||
- | Therefore, in a default configuration, this handler will simply activate, do nothing | + | {{: |
+ | |||
+ | As can be seen from the code above code, in its default configuration | ||
<code C __HANDLER_GCODE_STOP> | <code C __HANDLER_GCODE_STOP> | ||
Line 83: | Line 93: | ||
</ | </ | ||
- | In non-default configurations, | + | In non-default configurations, |
+ |
mycnc/stop_end_program.txt · Last modified: 2024/02/21 13:54 by ivan