Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: wormball on May 30, 2024, 12:34:12 PM
-
Hello!
As you may know, if you stop mach3 by pushing the red stop button on the screen, if you push the green cycle start button again, it will continue the program right where you stopped it without notice, and moreover, without starting the spindle. And if you forget about that, it can conclude in breaking the tool or something else, right as i did recently.
So i want to write some safety macro to prevent this kind of situations. In the elder scroll i have read the following wisdoms:
OEM LED Start 804
OEM LED Pause Feed Hold 805
OEM LED Pause 80
OEM DRO G-code Line Number (current) 816
These allowed me to distinguish between actual running state, yellow feed hold button and stop, but not allowed me to distinguish between two aforementioned kinds of stop.
The 816 dro merely indicates what line of code is scrolled to on the screen, but it can be deceptive cos there is no guarantee it is the actual current execution line. And if it is not, it may lead to some unwanted catastrophes.
Is there any way to distinguish between pause and full stop? Or get the actual line on which the execution is paused?
Thanks in advance.
-
Well, red stop button has the same function as E-stop switch, if you have one.
Machine stops immediatelly and possibly with loss of position. Buffer is flushed and all caned cycles are erset, and some more.
If you want to "pause" the motion you shoul use Feed Hold and after pressing Cucle Start program will continue from where it was paused. Motion will not stop imediatelly, lookahead buffer will first be emptied, so a couple of lines of code could be executed.
So the process of "pausing" the program is Feed Hold followed by Stop and to resume Cycle Start
-
Hello again!
I found that the actual executed line of code dro is 240, but it is not documented. So now i have a safety macro on "cycle start" button.