584,837 active members*
5,519 visitors online*
Register for free
Login
Results 1 to 12 of 12
  1. #1
    Join Date
    Jan 2005
    Posts
    67

    Unable to edit tool.tbl

    I tried editing tool.tbl using Axis. I clicked on file and then on Edit Tool Table but nothing happened.

    I can't edit it with gedit either.

  2. #2
    Join Date
    Oct 2010
    Posts
    156

    Re: Unable to edit tool.tbl

    What happens when you try to edit the tool table using gedit? Do you get an error message of some type?

    In your ini file, do you have a line similar to "TOOL_EDITOR = gedit" in the display section? That should let you edit the tool table from within axis, but if you can't edit the file directly with gedit, I wonder if there is some other issue.

    Can you attach your tool table file here?

    HTH
    Paul

  3. #3
    Join Date
    Jan 2005
    Posts
    67

    Re: Unable to edit tool.tbl

    When I try to edit the file with gedit, it won't let me type in that file. It doesn't give an error message though.

    I looked at the ini file and there is no line having to do with an editor.

    The guy that was helping me told me to zero out the file, which I did using a Windows editor. It is attached. I renamed the extension to .txt.
    Attached Files Attached Files

  4. #4
    Join Date
    Oct 2010
    Posts
    156

    Re: Unable to edit tool.tbl

    It looks like the format of your attachment might not be right (or the first line was added only to show, here, of the contents). I wouldn't use a Windows editor to edit the tool file, but I can't say that would keep the file from being used. My small tool file, which I don't use too much looks like this:

    T1 P1 D3.000000 Z+0.000000 ;comment 1
    T2 P2 D4.000000 Z+0.000000 ;comment 2
    T3 P3 D5.000000 Z+0.000000 ;comment 3
    T4 P4 D6.000000 Z+0.000000 ;comment 4
    T5 P5 D6.000000 Z+0.000000 ;comment 5

    ...No header and I believe the letters are mandatory to let LinuxCNC know what the values are referring to as not all values are required. Now, from the manual, they show the format as:

    In general, the new tool table line format is:

    • T - tool number, 0-99999 (tool numbers must be unique)
    • P - pocket number, 1-99999 (pocket numbers must be unique)
    • X..W - tool offset on specified axis - floating-point
    • D - tool diameter - floating-point, absolute value
    • I - front angle (lathe only) - floating-point
    • J - back angle (lathe only) - floating-point
    • Q - tool orientation (lathe only) - integer, 0-9
    • ; - beginning of comment or remark - text


    See attached two pages from the manual. I would start with a new file originated with gedit and go from there.

    HTH
    Paul

  5. #5
    Join Date
    Jan 2005
    Posts
    1943

    Re: Unable to edit tool.tbl

    The OP's file is a tool table, but it is for an older version of LinuxCNC. That style tool table was used in versions prior to 2.4. What version of LinuxCnc are you using? Might be time to upgrade as many changes have been made since 2.3.

  6. #6
    Join Date
    Jan 2005
    Posts
    67

    Re: Unable to edit tool.tbl

    I have 2.5.0, but you want to know something funny?

    It started working on its own. The only thing I can figure is that I rebooted Axis, did a home and another zero.

    Apparently that file can be edited in Windows without problems.

  7. #7
    Join Date
    Oct 2010
    Posts
    1189

    Re: Unable to edit tool.tbl

    Maybe an right issue Look at chmod ..

    Gesendet von meinem SM-N9005 mit Tapatalk

  8. #8
    Join Date
    Dec 2005
    Posts
    591

    Re: Unable to edit tool.tbl

    While in this instance you may have gotten away with it, it's usually not a good idea to edit Unix/Linux files with a Windows based editor. The Windows based editors typically add a CR/LF to each line, and that can mess up a Unix/Linux text file to the point it's unusable. If you do use a Windows editor on a Unix/Linux file, it's usually a good idea to run that file through the dos2unix utility before you use it on the Unix/Linux machine.

    Mark

  9. #9
    Join Date
    Oct 2010
    Posts
    156

    Re: Unable to edit tool.tbl

    Quote Originally Posted by wendtmk View Post
    .... If you do use a Windows editor on a Unix/Linux file, it's usually a good idea to run that file through the dos2unix utility before you use it on the Unix/Linux machine.

    Mark
    Another way if transferring the file from Windows to Linux is to use FTP in ACSII mode to "clean" up the file.
    PK

  10. #10
    Join Date
    Jan 2005
    Posts
    67

    Re: Unable to edit tool.tbl

    Something else that happened: I had added the tool table editor line to the ini file. The next time I used Axis pulldown to edit the table file, it didn't edit the existing file, it created a new one with the new features.

  11. #11
    Join Date
    Oct 2010
    Posts
    156

    Re: Unable to edit tool.tbl

    Does the original file still exist (different name [now]) or did it get wiped and replaced with the newly created tool.tbl file? I think LinuxCNC uses tool.tbl in the config directory unless specified with the TOOL_TABLE = tooltable.tbl entry in the EMCIO section.

  12. #12
    Join Date
    Jan 2009
    Posts
    7

    Re: Unable to edit tool.tbl

    On my lathe I have to open the tool table just after starting Axis. I believe before doing a touch off. Anyway if Open Tool Table is the first thing I do, it will stay open after that. I suggest you try it.

Similar Threads

  1. Edit tool lenght by PGM
    By Tommie in forum Fanuc
    Replies: 4
    Last Post: 12-10-2012, 02:11 PM
  2. Unable to access tool library V24
    By mgbgt89 in forum BobCad-Cam
    Replies: 1
    Last Post: 11-23-2011, 03:05 PM
  3. Tool File edit
    By Payhoe in forum Mazak, Mitsubishi, Mazatrol
    Replies: 2
    Last Post: 05-15-2011, 02:42 PM
  4. Edit Tool Change Macro Oi-MC
    By dtmtim in forum Fanuc
    Replies: 4
    Last Post: 09-21-2007, 01:34 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
  •