New to this site needing some help. I'm using an arduino uno with grbl controller (just managed to set it up) but my Y and Z axis' are reversed. I'm no good with wiring so not sure about that aspect. Is there a parameter in grbl that I can switch the signal to the stepper motors?
Switch one pair of wires of the four for each stepper and they will go the right direction, or refer to the grbl wiki. It will help answer most questions regarding grbl. gnea/grbl
Sorry, bad explanation on my part. I changed the $3 and that worked to fix the direction of the axis. In my case the Y and Z are switched around as in when I jog the Y axis my Z axis moves. This machine was purchased from SVP Laser in India using Multicnc software. The software was buggy to begin with but has now stopped working altogether so I did some research and decided to go with the grbl panel since I'm using an arduino uno. Guess what I'm looking for is a quick fix in a parameter to change the axis signal since rewiring my micro step drives is way out of my element. I worked as a journeyman machinist a decade ago but mostly ran manual machines so even a hobby style cnc has my work cutout for me. Appreciate all the help I can get.
It shouldn't be difficult to swap the wiring between your Z and Y axes @RandyK. Post a pic of the wiring at controller end and stepper motors so we can see what the problem would be. Alex.
A picture of the controller would definitely help. All controllers I am familiar with would have the solution if unplugging both motors at the board an swapping them around.
Well, I actually managed to figure out the wiring (using your advice on swapping them) of the micro step drivers and now have all axis' working as they should so thank you for that! Now, finding my steps/mm is halting progress. Everything is gear driven, no lead screw or belts which all online calculations I've found seem to show. I know i have 200 steps/rev but no idea what any specs are for the microstep drivers are as this machine came with zero schematics for anything. I believe i need to play with my $0 setting correct? Currently it's set to $0=10
Is it rack and pinion? If so count the teeth on the motor gear then count the same amount of teeth on the rack. Measure that distance and that will get you in the ball park for mm/rotation of the motor. Then the formulas will work. The machine has no clue if it is using a gear, belt, or screw.
Yeah. and if the gears/whatever are hard to see, you can make a first guess and then see how far an axis moves and adjust from there. Example: set up for 200 steps/mm. Move axis 100mm (20,000 steps). if it only moves 50mm then you know the number should be 400 steps/mm. If it moves 200mm, then it's 50 steps/mm. I'd repeat until acceptable precision is met. Formula is New_steps_mm = (expected_distance/actual_distance) * Old_steps_mm. The longer your test movements, the more accuracy you'll get. By the way, even with known data for the drive mechanics, you would need to do this. For example, on the acme screws a lot of machines are using, you still have to measure and tweak. iirc, my cbeam machine is about 0.2% long on x and y so I have to use slightly lower steps/mm than you get by using the specs. With belt machines, you probably should recalibrate every so often due to belt stretching. A screw based machine in a cold shop will need adjustment because of thermal expansion (uh, contraction).