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.
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:
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
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?
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.
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...
Jim Dawson
Sandy, Oregon, USA
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. ?
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
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?
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
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
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.
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.
Jim Dawson
Sandy, Oregon, USA