Remember loaded tool in ATC at startup / shutdown

Results 1 to 4 of 4

Thread: Remember loaded tool in ATC at startup / shutdown

  1. #1
    Member
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:


  2. #2
    Member SkiPatrol's Avatar
    Join Date
    May 2019
    Posts
    14
    Downloads
    0
    Uploads
    0

    Default Re: Remember loaded tool in ATC at startup / shutdown

    "Parameters.txt"

    Last edited by SkiPatrol; 07-25-2019 at 06:56 AM.


  3. #3
    Moderator PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    248
    Downloads
    0
    Uploads
    0

    Default 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.



    Last edited by PlanetCNC; 07-25-2019 at 04:47 AM.


  4. #4
    Moderator PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    248
    Downloads
    0
    Uploads
    0

    Default 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.



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Remember loaded tool in ATC at startup / shutdown

Remember loaded tool in ATC at startup / shutdown