Welcome to Our Community

Some features disabled for guests. Register Today.

Macro to Change Z Position?

Discussion in 'General Talk' started by brrian, Jan 27, 2021.

  1. brrian

    brrian Well-Known
    Builder

    Joined:
    Dec 6, 2019
    Messages:
    118
    Likes Received:
    51
    Woud a JS macro expert be willing to make me a macro? Here's a bunch of info to explain & support:

    I need to be able to change the z position through CONTROL. Reason: I zero to the wasteboard and usually cut full sheets of acrylic that cover the entire wasteboard. Often I'll find that Z0 isn't ideal... it's either not cutting quite deep enough & leaving a thin skin of material, or it's cutting a little too deep & cutting off my tabs. If I can change Z0 I can recut the sheet & save the parts. But I can't zero to the wasteboard with my touch plate because the material is in the way.

    My current solution is a line of code entered in the serial console. I move to a known Z height (for example, 40mm) and enter this:

    G21 G10 L20 P0 Z40.2

    This tells the machine that the current position is actually 40.2mm away from zero, .2mm farther than it had been so it'll cut .2mm deeper. It works, but I have a helper who runs my machine on large jobs when I'm at real work. I don't want him entering code or anywhere near the serial console. I'd like him to have an easy & intuitive way of doing this though.

    What I'd like is a macro that presents a dialog box asking how much to adjust Z0. It can be in mm. It could have two choices... "cut deeper" or "cut less deep" and a field to enter the value. Or if having two choices is too complicated, it could simply be two macros. One to cut deeper, one to cut less deep.

    A simple example of the dialog is below. Fingers crossed... thank you.

    [​IMG]
     
  2. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Doable, but in the meantime, just create a macro that sends the command and edit the Z value before you run it.

    Also another reason why I miss the ability to type the new value in the dro :(
     
    Peter Van Der Walt likes this.
  3. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,000
    Likes Received:
    4,112
    I wonder how many people actually use it as a jog-to.

    Open an issue when you have a sec, maybe we can add a button to pick
     
  4. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
    Done. I have some big jobs right now, but I can look into coding it for you if you want. Unless of course dealing with someoneelses code is more hassle than its worth.
     
  5. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,000
    Likes Received:
    4,112
    (; Pull requests are accepted
     
    sharmstr likes this.
  6. brrian

    brrian Well-Known
    Builder

    Joined:
    Dec 6, 2019
    Messages:
    118
    Likes Received:
    51
    I use it as a jog-to occasionally, usually to mark registration locations for jigs. A button or toggle to pick how it functions? Yes please!!!!!
     
    Peter Van Der Walt and sharmstr like this.
  7. brrian

    brrian Well-Known
    Builder

    Joined:
    Dec 6, 2019
    Messages:
    118
    Likes Received:
    51
    I finally got my help back (covid!) and this actually happened today. Even after zeroing, the first cut of the morning left a skin of acrylic in two places on a large part. It must be that moisture is causing my wasteboard to 'cup' ever so slightly. He pulled the part off and re-zeroed at a low spot, cut again, and it still left a skin. I don't know why yet. Anyway, it was easier / safer to just tell him to go home & that we'd deal with it tomorrow than to have him touch the serial console. If he could change Z zero, he could 'adjust and test' with the part on the machine until he got a cut that worked.
     

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