587,465 active members*
2,926 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > TNG Stop button is not turning off the spindle - is this a bug? Can I change it?
Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2019
    Posts
    41

    TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    I have observed that when a G-Code program is running on my CNC router and I use the Stop button on the TNG toolbar, the spindle does not turn off.
    The g-code program does stop as well as motion. But the Spindle and VFD keep on running.

    Is this by functionality by design? Can I change it via a setting or a file change?


    The spindle and vfd are the common Chinese imports. The Emergency stop DOES stop the program, motion, and the spindle/vfd. The VFD is controlled by PlanetCNC card.

  2. #2
    Join Date
    Aug 2022
    Posts
    23

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    I do have the same problem. Only the E-Stop shuts down everything. When i have to stop during a plasma cutting action i have to shut down the torch manually by the button. Its awful that way. Haven't yet figured out why.

  3. #3
    Join Date
    Mar 2017
    Posts
    1329

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    There are lots of options to do this.
    You can write OnStop.gcode script and run M5 from there.
    Or you can write #OnStop expr.txt event and turn outputs off from there.

  4. #4
    Join Date
    Jan 2013
    Posts
    474

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    Usually a spindle drive only needs the enable signal removing to stop. Could be a wiring problem with the stop button. Possibly dual channel and channel to the drive isn't dropping out.

  5. #5
    Join Date
    Aug 2020
    Posts
    135

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    This is not a wiring problem. Planetcnc does not change the state of the output that is linked to the spindel when stopping the program with the stop button. As instructed above you can achieve this by adding the corresponding code either to onstop.gcode or to expr.txt

  6. #6
    Join Date
    Dec 2008
    Posts
    46

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    Not everyone is able to intervene on the codes and, also for safety reasons, it would be advisable for the program to offer, in the setting, the option to stop the spindle in this condition.
    The user will then choose whether to activate the option, without going to modify/create the scripts.

  7. #7
    Join Date
    Mar 2017
    Posts
    1329

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    I believe anyone should be able to do this.
    It is easier to add "M5" to OnStop script than find which checkbox in settings should be checked.
    Because Stop is not EStop, a move to safe height is usually also used here.

    Go to "Settings/Program Options/Events".
    Scroll down to "OnStop" and click "Edit Script".
    Add "M5" line.
    Click save icon to save modified script.
    Is this really so hard?
    (see attachments)

  8. #8
    Join Date
    Dec 2008
    Posts
    46

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    No, it's not at all difficult. Far from it. And I wasn't speaking in a personal capacity, since I too modify the scripts also with the help of the friends of this forum. But, I repeat, and sincerely without any desire for controversy, that there are those who prefer to operate only through the user interface, and I fully understand their reluctance to modify system scripts.
    On the other hand I realize that the program was also born thinking about the possibility - on the user side - of expanding its potential by modifying and creating scripts, expressions and more.
    I just wanted to say that this is an important function, and that having it in the setting options wasn't a bad idea, and could be reassuring for more "cautious" users.
    (Sorry for my poor English language, I'm using translation program...)

  9. #9
    Join Date
    Nov 2019
    Posts
    41

    Re: TNG Stop button is not turning off the spindle - is this a bug? Can I change it?

    Quote Originally Posted by PlanetCNC View Post
    I believe anyone should be able to do this.
    It is easier to add "M5" to OnStop script than find which checkbox in settings should be checked.
    Because Stop is not EStop, a move to safe height is usually also used here.

    Go to "Settings/Program Options/Events".
    Scroll down to "OnStop" and click "Edit Script".
    Add "M5" line.
    Click save icon to save modified script.
    Is this really so hard?
    (see attachments)
    Thank you for the insight on how to achieve this, and additional thanks for the directions too. :-D

Similar Threads

  1. MACH 3 OEM Spindle Stop button
    By rhershkowitz in forum Mach Software (ArtSoft software)
    Replies: 5
    Last Post: 08-10-2019, 09:56 PM
  2. How to configure a soft stop button - Not E-stop
    By Jmhx2 in forum UCCNC Control Software
    Replies: 1
    Last Post: 07-21-2019, 11:48 PM
  3. Replies: 0
    Last Post: 09-20-2018, 03:18 AM
  4. Spindle stop prior to tool change?
    By nitemare in forum Mori Seiki Mills
    Replies: 6
    Last Post: 04-21-2009, 12:37 PM
  5. Replies: 10
    Last Post: 10-24-2008, 04:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •