585,982 active members*
4,549 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > Adding user toolbar buttons in PlanetCNC TNG software
Page 2 of 2 12
Results 21 to 28 of 28
  1. #21
    Join Date
    Nov 2015
    Posts
    260

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    Where do I have to put the script file?

  2. #22
    Join Date
    Jun 2017
    Posts
    143

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    In the scripts folder in your profile. Name it M910.gcode

  3. #23
    Join Date
    Jun 2017
    Posts
    143

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    And the print statements are just in there to assist with debugging and can be removed once you have things working. The output shows up in the output window if you have it visible. Click on the icon with the two recangles up the top right to show/hide it.

  4. #24
    Join Date
    Nov 2015
    Posts
    260

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    Thanks, it works. I learned a lot.
    The problem is, however, when the machine is processing code, the button cannot be used.
    It should behave like the spindle start button.

  5. #25
    Join Date
    Jun 2017
    Posts
    143

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    I am not near my machine and it is to cold to go out to the shed, so I can't test this, but try adding enable="true" as an option in BtnTop.txt. You can conditionally control when the button is enabled, maybe the default is for it to only be enabled when idle.

  6. #26
    Join Date
    Jun 2017
    Posts
    143

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    Actually I don't think that will work. Once you are running code you can't use the buttons. You can't use the spindle button to stop the spindle while it is actively processing code.
    You can however add M910 inside the code so that it happens as part of it.

  7. #27
    Join Date
    Jun 2017
    Posts
    143

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    In fact the enable option should probably be set to

    Code:
    enable="AND(_hw_idle == 1,_hw_estop == 0)"
    so that the button gets greyed out when not usable. The orange highlight still shows, just like the spindle button when code is running.

  8. #28
    Join Date
    Mar 2017
    Posts
    1312

    Re: Adding user toolbar buttons in PlanetCNC TNG software

    it does not work because you can not execute g-code while machine is running.
    But it is possible to do exact same thing without using g-code. I'll create an example.

Page 2 of 2 12

Similar Threads

  1. Is the PlanetCNC software license transferable?
    By retrosmith in forum PlanetCNC
    Replies: 3
    Last Post: 01-23-2019, 02:25 AM
  2. Adding buttons to Mach 3
    By Jkountz in forum Mach Wizards, Macros, & Addons
    Replies: 6
    Last Post: 02-24-2013, 07:48 PM
  3. Some help with EMC2, adding buttons....
    By Vegabond in forum LinuxCNC (formerly EMC2)
    Replies: 4
    Last Post: 08-27-2009, 05:37 PM
  4. Plot toolbar and user interface
    By single phase in forum NCPlot G-Code editor / backplotter
    Replies: 6
    Last Post: 10-11-2006, 08:39 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
  •