585,556 active members*
3,660 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > Tool Life Management, recording tool runtime in tooltable, feature request
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2020
    Posts
    131

    Tool Life Management, recording tool runtime in tooltable, feature request

    Hello Planet CNC Team,

    I'm currently looking into a way to record the runtime of my tools to get a better understanding about the tool life.
    With some extensions to the M3, M4 and M5 scripts it was quiet easy to calculate the spindle on time for the current tool.
    Now I'm seeking a way to store this runtime and to accumulate it with previous runtimes.
    The Tooltable offers Custom Parameters that seem to be perfect for this task. Unfortunately they are read only.
    Would it be possible to implement an enhancement to make those custom parameters writable?

    Best Regards,
    Klaus

  2. #2
    Join Date
    Mar 2009
    Posts
    1982

    Re: Tool Life Management, recording tool runtime in tooltable, feature request

    what is your control system once again?

  3. #3
    Join Date
    Aug 2020
    Posts
    131

    Re: Tool Life Management, recording tool runtime in tooltable, feature request

    I'm using Planet CNC TNG Version 2020.11.24 with a CNC USB controller Mk3 (9 axis)

  4. #4
    Join Date
    Aug 2020
    Posts
    131

    Re: Tool Life Management, recording tool runtime in tooltable, feature request

    Big Thanks to PlanetCNC for making the custom Variables of the Tool Table writable. This enabled me to implement a basic tool life recording.

    The attached M3, M4 and M5 scripts will record the spindle runtime of a tool into custom variable 1 in the tool table.
    M3 and M4 records the timestamp of the spindle start time into a global variable.
    M5 calculates the runtime in minutes since the last M3/4 command and adds the result to the value of custom variable 1 in the tool table.

    If the spindle is not Stop with M5 (E-Stop for example) the runtime will not be recorded. If the Buttons in the GUI should record the runtime the setting
    Settings/User Interface/Command/Spindle Command
    must be Set to "Use M-Code"
    Keep in mind that this setting will prevent you from turning the spindle on or off while a Programm is running!!!

    Best Regards,
    Klaus

  5. #5
    Join Date
    Aug 2020
    Posts
    131

    Re: Tool Life Management, recording tool runtime in tooltable, feature request

    Seems I had some bug in the previous scripts. I used _selected_tool where _current_tool would be needed. Fixed in attached version
    Attached Files Attached Files

Similar Threads

  1. Replies: 3
    Last Post: 03-14-2024, 03:56 PM
  2. Tool Life Management
    By pp-TG in forum Fanuc
    Replies: 6
    Last Post: 03-15-2016, 01:15 AM
  3. Tool Life Management on MSG-500
    By fordav11 in forum Fanuc
    Replies: 1
    Last Post: 09-14-2011, 09:01 AM
  4. Renishaw tool offset / break probe and tool life management
    By mcash3000 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 02-21-2010, 04:14 AM
  5. Tool Life Management
    By Jake E. in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 6
    Last Post: 11-05-2009, 08:13 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
  •