tool detection
Close
Login to Your Account
Results 1 to 20 of 20

Thread: tool detection

  1. #1
    Join Date
    Nov 2015
    Country
    BELGIUM
    Posts
    62
    Post Thanks / Like
    Likes (Given)
    2
    Likes (Received)
    4

    Default tool detection

    Hi
    any suggestions on "cheap" tool setters?
    only thing to do is detect if tool is not broken at end of operation. things like renishaw are way to expansive to do what i need now.
    just looking for the "switch" that we will connect to the skip signal.

    gr

  2. #2
    Join Date
    Mar 2013
    Country
    UNITED STATES
    State/Province
    Oregon
    Posts
    1,364
    Post Thanks / Like
    Likes (Given)
    605
    Likes (Received)
    1490

    Default

    I bought this switch off of eBay, wired it into my Robodrill and wrote my own macros:

    KGS Tool Setter Presetter for FANUC Mitsubishi Siemens Heidenhain Made In Japan | eBay


    It was a weekend project and a pretty fantastic learning experience. Check out Tonytn36's Macro sticky, and the Peter Smid Fanuc Macro book.

    The switch itself looks to be a copy of a Metrol switch, which you can buy direct from them for about US$1000. I am sure the Metrol is a nicer bit of hardware, but I decided that going into a 2006 Robodrill, the 3x price for the Metrol wouldn't really gain me much. This has proven to be correct- the eBay KSG switch has been 100% reliable, accurate, and a game changing convenience to add to the machine.

    You will have to make a mount for it, but hey... you're a machinist.

  3. Likes PROBE, cwtoyota liked this post
  4. #3
    Join Date
    Jan 2010
    Location
    Gilroy CA
    Posts
    4,245
    Post Thanks / Like
    Likes (Given)
    3061
    Likes (Received)
    2263

    Default

    Quote Originally Posted by gkoenig View Post
    I bought this switch off of eBay, wired it into my Robodrill and wrote my own macros:

    KGS Tool Setter Presetter for FANUC Mitsubishi Siemens Heidenhain Made In Japan | eBay


    It was a weekend project and a pretty fantastic learning experience. Check out Tonytn36's Macro sticky, and the Peter Smid Fanuc Macro book.

    The switch itself looks to be a copy of a Metrol switch, which you can buy direct from them for about US$1000. I am sure the Metrol is a nicer bit of hardware, but I decided that going into a 2006 Robodrill, the 3x price for the Metrol wouldn't really gain me much. This has proven to be correct- the eBay KSG switch has been 100% reliable, accurate, and a game changing convenience to add to the machine.

    You will have to make a mount for it, but hey... you're a machinist.
    Can you share your macro? I'd like to do this on my Doosan

  5. #4
    Join Date
    Nov 2015
    Country
    BELGIUM
    Posts
    62
    Post Thanks / Like
    Likes (Given)
    2
    Likes (Received)
    4

    Default

    is this coolantproof?

  6. Likes gkoenig liked this post
  7. #5
    Join Date
    Aug 2011
    Location
    Toledo, Ohio
    Posts
    1,675
    Post Thanks / Like
    Likes (Given)
    39
    Likes (Received)
    580

    Default

    Quote Originally Posted by gkoenig View Post
    I bought this switch off of eBay, wired it into my Robodrill and wrote my own macros:

    KGS Tool Setter Presetter for FANUC Mitsubishi Siemens Heidenhain Made In Japan | eBay


    It was a weekend project and a pretty fantastic learning experience. Check out Tonytn36's Macro sticky, and the Peter Smid Fanuc Macro book.

    The switch itself looks to be a copy of a Metrol switch, which you can buy direct from them for about US$1000. I am sure the Metrol is a nicer bit of hardware, but I decided that going into a 2006 Robodrill, the 3x price for the Metrol wouldn't really gain me much. This has proven to be correct- the eBay KSG switch has been 100% reliable, accurate, and a game changing convenience to add to the machine.

    You will have to make a mount for it, but hey... you're a machinist.
    Teach me your wiring skills.

    Edit looking at it closer actually looks pretty straight forward on the wiring.

  8. #6
    Join Date
    Mar 2013
    Country
    UNITED STATES
    State/Province
    Oregon
    Posts
    1,364
    Post Thanks / Like
    Likes (Given)
    605
    Likes (Received)
    1490

    Default

    Quote Originally Posted by civicske2 View Post
    is this coolantproof?
    Very. Otherwise, what would be the point?

  9. #7
    Join Date
    Mar 2013
    Country
    UNITED STATES
    State/Province
    Oregon
    Posts
    1,364
    Post Thanks / Like
    Likes (Given)
    605
    Likes (Received)
    1490

    Default

    Quote Originally Posted by dstryr View Post
    Can you share your macro? I'd like to do this on my Doosan

    Sure sure, let me go pull it off the machine later on tonight.

  10. Likes civicske2 liked this post
  11. #8
    Join Date
    Mar 2013
    Country
    UNITED STATES
    State/Province
    Oregon
    Posts
    1,364
    Post Thanks / Like
    Likes (Given)
    605
    Likes (Received)
    1490

    Default

    Quote Originally Posted by m98custom1212 View Post
    Teach me your wiring skills.

    Edit looking at it closer actually looks pretty straight forward on the wiring.
    The wiring is really easy, even for someone like me who is scared of electricity.

    Now, I've been talking with Metrol about getting a spindle probe (which is only $3200 from them for everything), and that looks a lot more complicated (though unlike Rennishaw, Metrol's probe does not require an interface box inside the control). Spindle probes need the skip signal, plus power, plus wiring into some sort of M code relay so the machine can command the receiver to turn the probe on/off.

  12. #9
    Join Date
    Apr 2009
    Country
    UNITED STATES
    State/Province
    Ohio
    Posts
    181
    Post Thanks / Like
    Likes (Given)
    17
    Likes (Received)
    55

    Default

    If you wanted to try a non contact spot sensor the Keyence LR-Z series are dirt cheap and have IP69K rating. I think brand new with cable they are like 200 bucks. Have a tiny red laser dot and probably will work with the spindle on or off.

    Durable & Long Life : LR-Z series | KEYENCE America

  13. #10
    Join Date
    Nov 2015
    Country
    BELGIUM
    Posts
    62
    Post Thanks / Like
    Likes (Given)
    2
    Likes (Received)
    4

    Default

    ok thanks all for the input. as i contacted our electric guy today there was already a touch sensor on his shelf
    so thas beeing done he is now spitting out the manuals for connecting to the skip signal.
    for me its time for the next step...the macro.
    hope to find some help here as i am new to macro programming.
    i would like to put the macro in a sub program and call this before every tool call, so the tool that will be put back in the magazine is detected.


    O0001(DETECT TOOL)
    (toolsetter is at X0Y0 in G53)
    (#150-149 RESERVED FOR THIS MACRO)
    #150= (variable tool in spindle maybe someone know what this is for brother tcs2a)
    #151=150. (hight table to tool setter)
    #152=10. (safty dist)
    #153=#151+#151
    #150= (variable tool in spindle maybe someone know what this is for brother tcs2a)
    G28 Z0.
    G53G0X0.Y0.
    G43Z200.H#150 (hope this works)
    G31 Z#151 (touch toolsetter maybe this must be -0.1mm to exualy trigger the setter)
    From here i dont really know what to do...
    first idea was to put avariable from 1 to 0 if tool was broken. so here ends the macro. in main program i can chose to program a stop of whatever to handle with broken tools.
    any help/ideas or examples more than welcome.

  14. #11
    Join Date
    Dec 2013
    Country
    UNITED STATES
    State/Province
    California
    Posts
    409
    Post Thanks / Like
    Likes (Given)
    145
    Likes (Received)
    212

    Default

    For tool detection only, no macros needed on Brother. Brother has an Mcode, M120, that looks for the touch sensor input and gives an alarm "Tool Broken Error" if it's not on. So if you set your tool offsets as gage length, you just make the sensor position a work offset. X,Y is center and Z is the height when triggered. When you want to check a tool, the current tool length ,G43, must be active, make sure you are high enough to clear the probe and any obstacles in between, call up the sensor work offset, move to XY 0, then Z.1,feed down past the trigger point, Z-.010 or however sensitive you want it, and then give M120. If you want to use the sensor for auto tool length setting, then you need the macros.

    Brother Speedio R65 / Blum Z-Nano broken tool detection - YouTube

  15. #12
    Join Date
    Nov 2015
    Country
    BELGIUM
    Posts
    62
    Post Thanks / Like
    Likes (Given)
    2
    Likes (Received)
    4

    Default

    Have you any info on wiring for that? Can we still use the g31 with same wiring?

  16. #13
    Join Date
    Dec 2013
    Country
    UNITED STATES
    State/Province
    California
    Posts
    409
    Post Thanks / Like
    Likes (Given)
    145
    Likes (Received)
    212

    Default

    Which tool probe do you have? Do you have a schematic for it? Yes G31 can be used as well. That is the skip feed move used in the macros for tool setting and spindle probing.

  17. #14
    Join Date
    Feb 2010
    Location
    Washington State
    Posts
    410
    Post Thanks / Like
    Likes (Given)
    559
    Likes (Received)
    149

    Default

    Quote Originally Posted by civicske2 View Post
    is this coolantproof?
    If it's not, at the very least when you machine your mounting bracket, add a few screw holes on the side so you can attach a vertical splash shield.

    It can be as simple as a piece of PVC DWV pipe that your tools can fit down into, but it blocks the horizontal sprayed coolant.
    Of course, a piece of transparent acrylic or similar would be a lot better than opaque PVC pipe.

    If you're really-really worried about it, wire an extra M-code to a simple motor-operated splash cover.

  18. #15
    Join Date
    Mar 2013
    Country
    UNITED STATES
    State/Province
    Oregon
    Posts
    1,364
    Post Thanks / Like
    Likes (Given)
    605
    Likes (Received)
    1490

    Default

    Quote Originally Posted by dstryr View Post
    Can you share your macro? I'd like to do this on my Doosan
    Be gentle, it was the 2nd macro I ever wrote!

    Also, I forgot exactly how I did this, but I set the program to run under a G-code, (G106). By calling it with variables, it's absurdly easy to set tools. In MDI, I can call G106T1; G106T2; G106T3;... etc and hit up to 10 tools at once.

    You DO need to be there when touching off face mills- since this macro doesn't spin the tools in reverse, you need to catch the tool during the initial G31 for the initial touch off and rotate it a bit so an insert hits the setter. It would be cool if I could touch off a reverse spinning tool to eliminate this, but I don't know if the KSG sensor is kosher with doing that.


    %
    O9016

    (NOTES- THIS PROGRAM SETS TOOL HEIGHT IN RELATION TO A HAIMER 3D SENSOR TIP)
    (FANUC MACRO B, WRITTEN FOR ROBODRILL 0iMC CONTROL)

    (CALIBRATION: )
    (1: DOWEL PIN IN TOOL HOLDER, USE G31 MOVE AT SLOW FEED TO STOP AT TOOL SETTER TRIP POINT)
    (2: JOG PIN OFF OF SETTER, BUILD UP 123 BLOCK + ADJUSTABLE PARALLEL UNDER DOWEL)
    (3: TOUCH 3D PROBE OFF OF ADJUSTABLE PARALLEL, USE G53 Z VALUE FOR VAR 503)
    (TOOL HEIGHTS WILL BE +/- VALUES IN RELATION TO 3D PROBE TIP LENGTH)
    (RECALIBRATE/RETOUCH TOOLS IF 3D PROBE TIP REPLACED)

    (SAFETY LINE)
    G90G94G17G49G40G80G20G54
    G90G53Z0

    (CALIBRATED NUMBERS)
    #501=0.0(G53 TOOL SETTER X)
    #502=-1.5(G53 TOOL SETTER Y)
    #503=-9.0205(3D SENSOR ZERO AT TOOL SETTER)
    #504=12.99(Z AXIS TRAVEL)
    #505=-5.0(RAPID DOWN DISTANCE)

    (OPTIONAL ARGUMENTS WHEN CALLED)
    (#20= T, DESIRED TOOL NUMBER)
    (#13= M, MANUAL TOUCH OFF)
    (#26= Z, LONG TOOL TOUCH OFF)
    (#7= D, LARGE DIAMETER TOOL)
    (#3= C, IF =1, TOOL BREAK DETECTION, !NOT IMPLEMENTED!)

    (SYSTEM VARIABLES WE USE)
    (#16001 IS CURRENT TOOL LENGTH, INCREMENT BY T)
    (#5023 IS CURRENT MACHINE CORD. Z)
    (#4120 IS CURRENT TOOL IN SPINDLE)
    (G10 L10 P_TOOL_ R_VALUE_ SETS TOOL HEIGHT)

    (VARIABLES WE USE)
    (#510= TOOL WE ARE SETTING)
    (#511= HEIGHT TO SENSOR TOP)


    (OFFSET FOR LARGE DIAMETER TOOLS)
    IF[#7EQ#0]GOTO5
    #502=[#7*.5]+#502

    (MODIFIES RAPID HEIGHT FOR LONG TOOLS)
    N5
    IF[#26EQ1]THEN#505=-2.0
    (CHANGES TOOL IF NECESSARY)
    IF[#20EQ#0]GOTO10
    M6T#20
    N10#510=#4120

    (TRIPS MANUAL MODE)
    IF[#13EQ1]GOTO40


    G53G90X#501Y#502 (RAPID TO XY SETTER POSITION)
    G91G00Z#505 (RAPID DOWN Z A BIT)
    G91G31F50.0Z-[#504+#505] (INITIAL FAST FEED TOUCH)
    G00G91Z0.1 (UP A BIT)
    G91G31F5.0Z-0.5 (SLOW FEED RATE MEASURE TOUCH)
    #511=#5023-#503 (DO SOME MATHS)
    G90G10L10P#510R#511 (SET THE OFFSET)
    G00G90G53Z-1.0 (RAPID 1" ABOVE SETTER)
    M99

    N40(MANUAL MODE- DRIVE TOOL TIP TO .5" ABOVE SETTER)
    G90G53Z0
    G53X#501Y#502
    M00
    G91G31F5.0Z-0.5
    #511=#5023-#503
    G90G10L10P#510R#511
    G00G90G53Z-1.0
    M99
    %

  19. #16
    Join Date
    Nov 2015
    Country
    BELGIUM
    Posts
    62
    Post Thanks / Like
    Likes (Given)
    2
    Likes (Received)
    4

    Default

    here is my first macro start...
    i need some help on how to fill in the statement, calculating the position of the skip+tool lengt+tool tolerance.
    anyone can help?


    (DETECTMACRO)

    (150-159)
    #150=0. (XPOS MEASURE)
    #151=0. (YPOS MEASURE)
    #152=150.(ZPOS SKIP SIGNAL)
    #153=100.(SAFETY APPROACH Z)
    #154=#4120(PICKUP TOOL IN SPINDEL TE TESTEN***)
    #155=0.2 (UPPTOL)
    #156=0.2 (LOWTOL)




    M9
    M5
    G0
    G28 Z0. (SAFETY)
    G53 X0.Y0. (MOVE TO POS)
    G43 Z[#152+#153] H#154 F5000 (MOVE DOWN BUID TOOL LENGTHCOMP)
    G31 Z[#152+10]F2000 (Z- WITH SKIP ON SAFETY)
    G31 Z[#152-0.5] (TOUCH)
    IF[#5023]LT[#152+ACTUAL TOOLLENGTH-#156] (HERE WANT TO CHECK IF TOOL IS SHORTER) (5023=mach pos z)
    GOTO N10
    N10M0 (TOOL TO SHORT)
    N20M99 (TOLERANCE OK)

  20. #17
    Join Date
    Dec 2013
    Country
    UNITED STATES
    State/Province
    California
    Posts
    409
    Post Thanks / Like
    Likes (Given)
    145
    Likes (Received)
    212

    Default

    You may want to add a check to see if the tool is longer too. This may be helpful for end mills that could possibly pull out of collets. If you only want to check for broken tools on your brother machine the code can look like this :

    G0 Z+(a safe amount to get above probe, work, jigs);
    G54.1 P48 X0 Y0 M5 (I set this work offset with probe XY position, Z trigger point);
    Z.1 (rapid down to .1" above probe);
    G1 Z-.003 F150. (IPM) (Feeds down past switch point, can be tailored for sensitivity);
    M120 (BROTHER CODE FOR TOOL CHECK);
    G0 G90 G28 Z0;

    The brother will get alarm 'tool broken error' if the signal/tool are not there. We usually make this a sub and call it whenever we want to check tools.

  21. #18
    Join Date
    Nov 2015
    Country
    BELGIUM
    Posts
    62
    Post Thanks / Like
    Likes (Given)
    2
    Likes (Received)
    4

    Default

    Hy thx for the reply. Plan is to check on the wear and replace tools before breking. Herefor i would use the upper and lower tol parameters. Any id on how i can pickup the actual tool lenth to do the math i need to pickup the machine z,and add the tool length and tol to do the check
    No id on how i pick it up

    i could ad #157=#4120+2000 so #157 becomes the variable to read the toollengte
    but how can i call this? #[#157] ????

  22. #19
    Join Date
    Jun 2006
    Country
    UNITED STATES
    State/Province
    Texas
    Posts
    608
    Post Thanks / Like
    Likes (Given)
    20
    Likes (Received)
    72

    Default

    GKoenig,

    To pick your brain on hooking up G31 on your robodrill I believe you mentioned that you found the wiring schematic in one of the robodrill manuals. May I ask which manual? I have an operators manual for my machine but would purchase the manual that contained the helpful data regarding setting up a probing system on the robodrill. Thanks for your explanation and macros. I can't wait to get freed up enough to install all the things I have collected.
    Thanks again
    Greg

  23. #20
    Join Date
    Nov 2015
    Country
    BELGIUM
    Posts
    62
    Post Thanks / Like
    Likes (Given)
    2
    Likes (Received)
    4

    Default

    hy,
    been studying on the macro and i want to do it a little different.
    i want to measure the length, store it in a variable, than compaire this with the tool length.
    still i head up with the issue i dont know how to link the variable to the tool holding right now


    (DETECTMACRO)

    (150-159)
    #150=0. (XPOS MEASURE)
    #151=0. (YPOS MEASURE)
    #152=150.(ZPOS SKIP SIGNAL)
    #153=100.(SAFETY APPROACH Z)
    #154=#4120(PICKUP TOOL IN SPINDEL TE TESTEN***)
    #155=0.2 (UPPTOL)
    #156=0.2 (LOWTOL)
    #157=0 (STORE TOOLLENGTH)
    //#158=#4120+2000 (herewith i can store the nr of the variable where tooloffset is but how can i call this?)



    M9
    M5
    M19
    G0G90
    G28 Z0. (SAFETY)
    G53 X0.Y0. (MOVE TO POS)
    /HERE LATERON INC OPTIONAL XY OFFSET FOR INSERT MILLS OF BIGGER TOOLS LATER WITH G65)
    G43 Z[#152+#153] H#154 F5000 (MOVE DOWN BUID TOOL LENGTHCOMP)(ZPOSSKIP+SAFETY APP WITH TOOLCOMP)
    G31 Z[#152+10]F2000 (Z- WITH SKIP ON SAFETY)
    G31 Z[#152-0.5] (RAW TOUCH)
    G0G91Z0.5 (INC UP)
    G31 Z[#152-0.5] (MEASURE)
    #157=[#5023-#152] (STORE TOOLLENGTH IN #157)
    ***PLS HELP ME TO COMPARE HERE THE MEASURED TOOL LENGTH WITH THE STORED OFFSET***
    GOTO N10
    N10M0 (TOOL TO SHORT)
    N20M99 (TOLLERANCE OK)


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
2