A general G-Coding question in regards to a ballscrew


Results 1 to 18 of 18

Thread: A general G-Coding question in regards to a ballscrew

  1. #1
    Member
    Join Date
    Mar 2017
    Location
    United Kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    Default A general G-Coding question in regards to a ballscrew

    So I bought a cheapie ballscrew ; one axis.

    I G-Coded a simple program so that ball nut goes either direction for 10 seconds continuously.

    The reset point is to the far left.

    My question is; if a problem such as a jam occurs and the stepper motor loses it's positioning increment, how does one now caliberate the whole setup on a "reset" before a fresh "START"

    Because by pressing reset the ballnut will hit end stops due to the motor losing it's positioning during the jam.

    Is there a way to put limit switch at either end and a "homing sequence" taking place before the fresh "START"

    Similar Threads:


  2. #2
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    You could jog to the start position, and zero the controller at that point. The other option would be to install a limit switch, as you suggested, and use a homing routine to rezero the machine.

    Jim Dawson
    Sandy, Oregon, USA


  3. #3
    Member
    Join Date
    Mar 2017
    Location
    United Kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by Jim Dawson View Post
    You could jog to the start position, and zero the controller at that point. The other option would be to install a limit switch, as you suggested, and use a homing routine to rezero the machine.
    1) the jog position wont work because the spindle of the stepper motor spun in the housing due to jam; so we cannot have members of staff moving physically moving parts to get them where they are supposed to be.

    2) can g-code do homing sequence with two limit switch at either side and reset itself?



  4. #4
    Member
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1528
    Downloads
    2
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    What controller?

    You need a controller.

    A controller interprets G Code and generates the steps or pulses for the motor(s).

    You need to go look at some basic guides on CNC.



  5. #5
    Member
    Join Date
    Mar 2017
    Location
    United Kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by pippin88 View Post
    What controller?

    You need a controller.

    A controller interprets G Code and generates the steps or pulses for the motor(s).

    You need to go look at some basic guides on CNC.
    pippi yes I have the grbl controller.



  6. #6
    Member CitizenOfDreams's Avatar
    Join Date
    Nov 2012
    Location
    USA
    Posts
    1267
    Downloads
    4
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    There is one "hack" method to recalibrate a stepper motor without a homing switch. Run it all the way to the physical stop and let it skip steps.

    This method is used in places where a homing switch would be an overkill: car dashboard gauges, air conditioner deflectors...



  7. #7
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by damunk View Post
    1) the jog position wont work because the spindle of the stepper motor spun in the housing due to jam; so we cannot have members of staff moving physically moving parts to get them where they are supposed to be.
    I don't understand

    2) can g-code do homing sequence with two limit switch at either side and reset itself?
    A homing routine can be called from G-code. Normally the homing routine is a macro or function call in the controller.

    Jim Dawson
    Sandy, Oregon, USA


  8. #8
    Member
    Join Date
    Mar 2017
    Location
    United Kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Jim Dawson View Post
    I don't understand



    A homing routine can be called from G-code. Normally the homing routine is a macro or function call in the controller.

    Okay so I plan to have a limit switch on either side but I don’t want the limit switch to stop the motor. I would like the ball nut to reverse direction when it hits a limit switch after a 5 second delay.

    Is it possible to program this g-code using a standard grbll controller. ?



  9. #9
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    To start with I know nothing about a grbll controller, so not much help there. But what you describe does not seem like a good fit for G code at all. There are inexpensive stepper controllers available that I think would do what you want. An example: https://www.ebay.com/itm/11495128796...gAAOSwU-ZhJIon As I recall these do have limit switch inputs.

    I bought one of these and played with it a bit. Seemed to work OK. But I have heard stories that some of them were defective out of the box.

    Jim Dawson
    Sandy, Oregon, USA


  10. #10
    Member
    Join Date
    Mar 2017
    Location
    United Kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Jim Dawson View Post
    To start with I know nothing about a grbll controller, so not much help there. But what you describe does not seem like a good fit for G code at all. There are inexpensive stepper controllers available that I think would do what you want. An example: https://www.ebay.com/itm/11495128796...gAAOSwU-ZhJIon As I recall these do have limit switch inputs.




    I bought one of these and played with it a bit. Seemed to work OK. But I have heard stories that some of them were defective out of the box.
    Jim
    Those look a lot more user friendly than the gbrll controller which you need laptop trigged to it.

    So basically on the controller you shown for single axis when it hits limit switch it activates input? Which Would send ballnut in other direction . Then when it hits other limit switch it then also sends in opposite direction so basically I just want it going left to right all day long and that’s all I need APART from I want a time delay of my CHoosing. Do you reckon it will allow the time delay?



  11. #11
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    It looks like using the ''Limit A'' and ''Limit B'' functions will do exactly what you want. The time delay is a good question, and I'm not sure. The seller has a lot of information on the page, but I see no mention of any kind of delay timer. But the programming commands are not listed so there may be a timer hiding in there. Worst case a couple of external timer relays could be used.

    Jim Dawson
    Sandy, Oregon, USA


  12. #12
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    I had another thought, since your application is apparently industrial, maybe a more industrial controller would be helpful.

    https://www.ebay.com/itm/32505455297...oAAOSwJfdiDbto

    That particular one would do exactly what you want, including adjustable timers. It is a fully programmable industrial motion controller. Also has a built in stepper motor drive, so it will drive the motor directly up to 6 amps with 20 to 80 volt input.

    Jim Dawson
    Sandy, Oregon, USA


  13. #13
    Member
    Join Date
    Mar 2017
    Location
    United Kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by Jim Dawson View Post
    I had another thought, since your application is apparently industrial, maybe a more industrial controller would be helpful.

    https://www.ebay.com/itm/32505455297...oAAOSwJfdiDbto

    That particular one would do exactly what you want, including adjustable timers. It is a fully programmable industrial motion controller. Also has a built in stepper motor drive, so it will drive the motor directly up to 6 amps with 20 to 80 volt input.

    Would this one do itl its alot cheaper it says on it. time delay.
    what about those limit a and limit B input switching.

    https://www.ebay.com/itm/15470347287...8AAOSw--Bhk6u0

    EDIT: NAah; it doesnt even mention anything about limit switches.



  14. #14
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by damunk View Post
    Would this one do itl its alot cheaper it says on it. time delay.
    what about those limit a and limit B input switching.

    https://www.ebay.com/itm/15470347287...8AAOSw--Bhk6u0

    EDIT: NAah; it doesnt even mention anything about limit switches.

    Maybe that could be made to work with some external relay logic.

    Jim Dawson
    Sandy, Oregon, USA


  15. #15
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by Jim Dawson View Post
    Maybe that could be made to work with some external relay logic.
    If he can't get grbl programed to do this, he is never going to get a Galil to work, he just needs someone to do a program for the grbl which can do this simple operation very easy

    Mactec54


  16. #16
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by mactec54 View Post
    If he can't get grbl programed to do this, he is never going to get a Galil to work, he just needs someone to do a program for the grbl which can do this simple operation very easy
    Perhaps you are correct. I know nothing about a grbl, but I could write the Galil program for him in about 10 minutes or less.

    Jim Dawson
    Sandy, Oregon, USA


  17. #17
    Member
    Join Date
    Mar 2017
    Location
    United Kingdom
    Posts
    116
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by Jim Dawson View Post
    Perhaps you are correct. I know nothing about a grbl, but I could write the Galil program for him in about 10 minutes or less.
    lol i managed to program g-code to make it go left to right and home, reset zero , time delay, that stuff is easy.

    and on the gbrl controller it allows connection to limit switches.

    i just wanted to know if you can program g-code to use limit switch as a input thats all.

    im having fun guys!!!! im learning g-code; ballscrew designs, welding, electronics.

    they say little knowledge is dangerous but i have little knowledge about everything so i must be the most dangerous man in the world so please be assured that I am being as safe as possible i can be.



  18. #18
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: A general G-Coding question in regards to a ballscrew

    Quote Originally Posted by damunk View Post
    lol i managed to program g-code to make it go left to right and home, reset zero , time delay, that stuff is easy.

    and on the gbrl controller it allows connection to limit switches.

    i just wanted to know if you can program g-code to use limit switch as a input thats all.

    im having fun guys!!!! im learning g-code; ballscrew designs, welding, electronics.

    they say little knowledge is dangerous but i have little knowledge about everything so i must be the most dangerous man in the world so please be assured that I am being as safe as possible i can be.

    I'm not sure how to implement that in G code alone. Possibly using a M1 (optional stop) would work? I believe that function waits for a user (switch) input. There may be many other programming options available in a grbl system.

    Jim Dawson
    Sandy, Oregon, USA


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

A general G-Coding question in regards to a ballscrew

A general G-Coding question in regards to a ballscrew