Welcome to Our Community

Some features disabled for guests. Register Today.

Product/feature request- tool length sensor/ function

Discussion in 'General Talk' started by Michael Yeomans, Jan 2, 2021.

  1. Michael Yeomans

    Builder

    Joined:
    Jul 18, 2019
    Messages:
    10
    Likes Received:
    1
    After seeing the touch control interface come out it made me realize you guys are always working on new stufff quietly behind the scenes.

    So I thought I would try to plant an idea in your collective heads.

    How about a tool length sensor? Not something to set the initial z height but something to help with tool changes. Much like the bitsetter made by shapeoko.

    Is it necessary? No. But it automates something that takes quite a bit of time when you have many tool changes. And in a high work environment I can be elsewhere doing other things in the shop during that time.

    Just a suggestion.
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    :) machine a pocket in your spoilboard where you can park your XYZ Probe Plus in when not in use. Store XY position above it as a G28/G30 or machine coordinates coded into the macro. Create a macro to move to above the probe plate, and do the tool probe :)

    No need for anything new product, just some time to set it up. :)
     
    #2 Peter Van Der Walt, Jan 2, 2021
    Last edited: Jan 2, 2021
    Apeli likes this.
  3. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    oooooo and the macro can pop up the z probe wizard too, right? Or can you not mix gcode and javacript in a single macro?
     
    Peter Van Der Walt likes this.
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    You can certainly add some sendGcode("G***") action inside the js macro :)

    It may be a while before I have time to create the macro, but I am certainly around to assist if anyone wants to take a knack at it.
    How is TLO supposed to work in GRBL? · Issue #402 · gnea/grbl would be helpful (using TLO instead of rezeroing Z - zero stock once with first tool, rest of tools set with TLO instead)
     
    #4 Peter Van Der Walt, Jan 2, 2021
    Last edited: Jan 2, 2021
    sharmstr and Rick 2.0 like this.
  5. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    I'll have a crack at it. I know you're busy with Interface and other top secret stuff :)
     
    rscamp and Peter Van Der Walt like this.
  6. Michael Yeomans

    Builder

    Joined:
    Jul 18, 2019
    Messages:
    10
    Likes Received:
    1
    Peter, thanks for the reply but... :p you could say the same about most functionality within the Openbuilds control software. But, for some reason you include buttons to do certain things and not others. I assume economic reasons dictate a large part of what you include and what you don’t. I was hoping by asking in a public forum I could entice other’s to voice their desire for such functionality and therefore give you an economic reason to include. By your answer I assume you have had this conversation amongst yourselves and decided this feature would have little to no positive effect on sales.

    Ah, well :( One can dream.
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    Contrary. The whole point behind all the scriptable macro work was to provide a platform to make feature development more open and easier - with the hard, experimental work done, so much easier to make a case for implementing it for everyone. In particular as tool length setting has long been on the todo: Toolchanges · Issue #26 · OpenBuilds/OpenBuilds-CONTROL
    Building out the feature in Macros first gets it polished up, gets valuable input like David's below, etc - before rolling it out to everyone.

    If we didnt want to develop the feature, i certainty wouldnt be posting advice above on how to make it happen (;

    Adding software features is FREE so yeah, no need for a new product, just adding another routine to use with your existing XYZ probe. Sure we could sell everyone a switch (of dubious repeatability) in a box, but this way everyone gets the new features for free in a future update. Much better if you ask us
     
    #7 Peter Van Der Walt, Jan 3, 2021
    Last edited: Jan 3, 2021
    David the swarfer likes this.
  8. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,275
    Likes Received:
    1,833
    The problem with tool length offsets is that they can be quite dangerous.
    The first tool could be the 'standard', and all future tools are either shorter or longer.
    If they are shorter and the offset gets set incorrectly you are unlikely to have a crash, but if they are longer a crash becomes quite likely at the slightest hint of a stuffed offset.

    A possibly better way to do it is to have a "tool 0" which is longer than all tools, and Z0 is set with this tool, no offset.
    Now all the real tools are shorter and the offset is always negative, giving a margin of safety and resilience.

    You also have to consider your part zero settings, if you are using a tool sensor that is not on top of the material, then you do need to remember to set the correct origin in the CAM, ALWAYS.
    Mixing 'Z0 on top' and 'Z0 on bottom' will inevitably lead to a crash. Professionals, especially on 5 axis machines, use a fixed 0,0,0 that is at the center of the vice rotation for all jobs, to prevent crashes that can get expensive.

    All that to point out that the software cannot solve the entire chain of command, the humans involved need to follow the correct procedures as well, for such a system to work properly.
    (I get quite excited when someone finds a genuine bug in software I develop, as opposed to a run-of-the-mill 'garbage in = garbage out' user error.)
     
  9. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Would setting Z0 right after homing solve this issue?
     
  10. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,275
    Likes Received:
    1,833
    yes and no. yes in that it will work (except for limit crashes), no in that you now have the maximum travel to probe for every tool, every time. This will probably take more time than you are happy with, leading to shortcuts, leading to crashes.
     
  11. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    I dont understand.
     
  12. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    Remember we can add GUIs - so we can guide a user step-by-step through the toolchange

    Use loads file with toolchanges and clicks Play. First tool runs, no TLO active. Just zeroed as we always have

    - Come to first toolchange: CONTROL takes charge again:
    We go to saved XY probe location in machine coordinates.
    Probe the Z axis & store the information (T1)
    - Go to a tool change location and wait for tool change & confirmation via UI
    - Return to probe location. Probe the Z axis again (T2) & calculate the difference from the previous tool (T1) Apply a tool length offset using G43 or even calculate difference and adjust Z-Zero directly with G10s
    - Prompt user to remove magnet, continue job on resume

    We can add a DRO field while a TLO is active too
     
    #12 Peter Van Der Walt, Jan 4, 2021
    Last edited: Jan 4, 2021
    David the swarfer and sharmstr like this.
  13. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,275
    Likes Received:
    1,833
    do a tool change with Z all the way up.
    go to probe position, Z all the way up.
    probe from tool0 Z, long way down, takes time.

    if we can rapid to a lower Z height from which to probe, it will take less time.

    also keep in mind that probe speed makes a difference to the probe length found.
    probe at high speed will find a 'shorter tool' because of the overshoot during deceleration.
     
    sharmstr likes this.
  14. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    2,915
    Likes Received:
    1,619
    I have often wondered why a tool length sensor is necessary with grbl since we have to manually change tools anyways. A tool length sensor is in a fixed location which is fine if everything is automated and you are not around. If I an cutting something large with my CNC, I may be 1000mm away from that fixed position when Estlcam tells me to change tools. Estlcam just raises to a safe height and pauses at that spot. I turn the router off (that is important), change the tool, and if I am smart I remember to re-zero the Z for that tool as David suggested - jog down close to the z probe then probe and reset my Z. I was going to install one, and then realized it would make tool changes take a lot longer.

    I could see it being valuable for 3D carving, but I could just zero on the spoil board for everything with the z probe and avoid the long travel distances. On my lathe, I have it in a set position which is on the tailstock because it is flat and I know the height of that surface above the rotational axis.
     
    David the swarfer and sharmstr like this.
  15. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    ahahaha
     
  16. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Can you explain what you mean by this? Are you saying the current DRO doesnt account for an TLO set?
     
  17. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    I was saying maybe adding another field below XYZ, for TL so you can see by how much the tool is set.
     
    sharmstr likes this.
  18. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Would it be possible to wire in a 5v proximity sensor to the probe input on the blackbox? I'm trying to sort out a way to make TLO setting quicker and safer. My thinking is that I could write a probing routing that would rapid the tool down to a proximity sensor, move back up a few mm to clear it, then move over to the actual probe (a push button in this case). I like the idea of setting tool 0 to Z after homing, but with my recent machine upgrade, I have 150mm of Z travel. As David mentioned above, probing speed would take forever.
     
  19. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    Yes, you can use a NPN type. Doesn't need to be 5v one either (harder to find) you can use the easier to find 6-36v ones with the Limits-V jumper on 24v
     
  20. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    But then do I need to change the limit switches?

    I found a 5v IR break beam that may work better than the proximity sensor.

    My idea here is to have the IR sensor, xyz probe and a momentary push button all wired together into the probe port.
     
  21. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    Oir switches are fine on 24v too

    Yes, the varying endmill diameters would not be as repeatable on inductive sensors as the varying frontal area affects the sensitivity

    All together should work if they are all effectively "normally open"
     
    Woodsmith likes this.
  22. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Cool. I'll order a IR break beam sensor and do some testing.
     
    Peter Van Der Walt likes this.
  23. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,275
    Likes Received:
    1,833
    my Z probe uses a break beam from a laser printer. but instead of relying on the tool to break the beam (a 30deg Vbit will miss it more often than not, so will a 1mm single flute endmill) I build a mechanism, the tool presses on a bit of icecream stick which has a flange that breaks the beam. The longer the lever arm the more accurate it becomes, or less sensitive to exact bit placement.
    Optoisolated Z probe
     
  24. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Ahhh, right. I remember seeing that before. I was thinking of using this approach. I didnt think about smaller bits though.

     
  25. Christian James

    Christian James Journeyman
    Builder

    Joined:
    Jun 8, 2018
    Messages:
    438
    Likes Received:
    213
    I don't see a lot of need for it myself, the lions share of the time is taken up just changing the tool - it only takes about three seconds to probe it.
     
  26. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    I agree that it doesnt take a ton of time. But its all part of a bigger project and at the very least, not having to attach the magnet and manually moving the bit down into an acceptable probing position is worth the effort for me.
     
    JohnOCFII and David the swarfer like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice