513,040 active members
4,235 visitors online
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > Remember loaded tool in ATC at startup / shutdown
Results 1 to 4 of 4
  1. #1
    Registered
    Join Date
    Apr 2010
    Posts
    1

    Remember loaded tool in ATC at startup / shutdown

    Hello,

    I'm running a CNC mill with a rotary ATC with PlanetCNC TNG. Technically tool change works fine, but I'm struggling a bit to establish a reliable workflow for everyday usage. PlanetCNC doesn't remember the currently loaded tool when I switch off the machine and turn it on again next day. So when I turn on PlanetCNC I have at first to "select" the tool that is already loaded, which I find quite prone to human error.

    My idea was therefore to unload the tool always before I turn off the machine, but actually I couldn't yet find a function for unloading a tool. I could probably add some kind of "empty tool" to the tool table, but this will probably result in unnecessary movements of the ATC.

    Maybe I'm just blind and there is some easy solution already? Or a way to make PlanetCNC remember the loaded tool after shutdown?

    Regards

  2. #2

    Join Date
    May 2019
    Posts
    20

    Re: Remember loaded tool in ATC at startup / shutdown

    "Parameters.txt"

  3. #3
    Moderator PlanetCNC's Avatar
    Join Date
    Mar 2017
    Posts
    466

    Re: Remember loaded tool in ATC at startup / shutdown

    You can unload tool using T0M6 command or, if you are not using ATC simply use M61Q0. Make sure your ATC script understands that T0 is "special".

    In TNG it is possible to have persistent parameters. Open file "Parameters.txt" located in profile folder. There are some parameters already there. Then add your custom parameter, for example "_mytool 0". Note that name starts with underscore because you want this parameter to be global. There is single space between name and value.

    Now you can use this parameter in home script. Somewhere near beginning you can add:
    o<tool> if [#<_current_tool> EQ 0]
    M61 Q#<
    _mytool>
    o<tool> endif
    And perhaps also add a message informing user that M61 selected different tool.
    Homing script now loads last stored tool.

    In M6 script, after M6 gcode add line:
    #<_mytool> = #<_current_tool>
    This way custom parameter has correct value. And because it is listed in "Parametes.txt" file its value will persist.


  4. #4
    Moderator PlanetCNC's Avatar
    Join Date
    Mar 2017
    Posts
    466

    Re: Remember loaded tool in ATC at startup / shutdown

    In TNG v2 this is done without any script modifications. Just add "_current_tool" parameter to "Parameters.txt" file and last tool will be remembered.

Similar Threads

  1. Spring Loaded Engraving Tool
    By MFchief in forum Tormach Personal CNC Mill
    Replies: 17
    Last Post: 12-06-2018, 05:08 PM
  2. Replies: 11
    Last Post: 07-20-2017, 11:42 PM
  3. Proper Startup/Shutdown Procedure for Kflop
    By MadTooler in forum Dynomotion/Kflop/Kanalog
    Replies: 1
    Last Post: 07-11-2016, 07:55 PM
  4. Spring loaded pen plotter tool
    By Joe2014 in forum General Full 3D Wood Router Machines
    Replies: 0
    Last Post: 03-01-2016, 07:36 PM
  5. Spring Loaded Engraving Tool
    By djh82uk in forum General MetalWork Discussion
    Replies: 7
    Last Post: 01-11-2008, 05:35 AM

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
  •