Welcome to Our Community

Unlock hidden features. Sign Up for Free Today!

Have a movable limit switch trigger the next line of code?

Discussion in 'Control Software' started by Thomas Miller, Sep 27, 2016.

  1. Thomas Miller

    Builder

    Joined:
    Sep 13, 2016
    Messages:
    1
    Likes Received:
    0
    Using PlanetCNC MK3/4 controller, 'CNC USB Controller' software.

    So I've got a tool that has to extend a measurement probe out to a cotton bale to take a reading, then retract, then raise, then take another reading, ... Here's an earlier prototype video to give you a better idea if that makes no sense You can see I have that measurement probe and a limit switch mocked up that would trigger when it comes in contact with the bale.

    So,what I need is extend X til you hit a limit switch, wait a second for the probe to take the measurement, move to the next line/layer (retract X, raise Y), rinse/repeat 4x then return home and await next start command.

    Right now the closest I can get to that is pauses, but after the pause ends it would just keep extending forward instead of moving to the next line (retract), I suppose obviously pauses aren't what I'm looking for

    Thank you for helping with this.
     

Share This Page

  • About Us

    The OpenBuilds Team is dedicated helping you to Dream it - Build it - Share it! Collaborate on our forums and be sure to visit the Part Store for all your Building needs!
  • Like us on Facebook

  • Support Open Source FairShare Program!

    OpenBuilds FairShare Give Back Program provide resources to Open Source projects, developers and schools around the world. Invest in your future by helping others develop theirs!

    Donate to FairShare!