Hello Guest it is June 01, 2020, 08:30:16 AM

### Author Topic: X & Y Driver/Configuration Issues  (Read 5171 times)

0 Members and 1 Guest are viewing this topic.

#### John Lovaasen

• 13
##### X & Y Driver/Configuration Issues
« on: April 19, 2012, 12:35:42 PM »
Hi, I'm having some problems getting my X-axis and Y-axis jogging properly. The 3 KL 4030 drivers will all work for the Z-axis, but not for the X or Y. I'm using KL 4030 driver, C10 BOB, and Mach3 software.

Here is what my machine is doing. When I jog the X or Y axis in one direction, the axis moves back and forth (side to side) only about 1mm.

I believe that I'm calculating the Mach3 steps per 1mm movement correct, but maybe someone could verify them for me. The X and Y axis are belt driven with 1 motor revolution per 44mm which equals 0.023 revs/mm. I have the drivers half-stepping so the Mach3 steps per motor revolution is 400 steps/motor rev. So the Mach3 steps per unit (1mm) is equal to the steps/motor rev times the motor revs/mm which is 0.023*400=9.52 Mach3 steps per 1mm movement (seems low??).

I also tried the corresponding steps/mm for 1/8 and 1/32 stepping, but still had the same back and forth movement. Do these seem like a low numbers for steps/mm? How much effect would changing the velocity or acceleration cause? Thanks for the help. John.

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: X & Y Driver/Configuration Issues
« Reply #1 on: April 19, 2012, 01:58:43 PM »
I make it 9.0909 steps per mm when on half stepping 400steps = 44mm so 400/44= 9.0909 steps per mm.

That in itself would not cause the issue although it is a very course step per mm.

Are you sure you have the Step and Dir pins assigned the right way round?

Hood

#### John Lovaasen

• 13
##### Re: X & Y Driver/Configuration Issues
« Reply #2 on: April 19, 2012, 02:12:11 PM »
I believe that I have the Step and Dir pins assigned correctly. From the x-axis driver, Dir - goes to pin2 on the C10, COM is 5V, Step - goes to pin3, and and so on for y and z axis'. In Mach3, I setup Step Pin# 3, Dir Pin# 2, enabled and both set at active low. In the wiring diagram I have for KL4030 with C10, the Step- goes to pin 2 and Dir- to pin 3 (reverse of what I have), but as long as I assign it to the right pin in Mach3 it shouldn't matter, correct?

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: X & Y Driver/Configuration Issues
« Reply #3 on: April 19, 2012, 02:30:17 PM »
As long as Mach is assigned to the pins you are using then its no problem as you say.
Other thing to check is you have the dip switch for Ste/Dir set the correct way as if its on CW/CCW then it may cause problems like you are seeing.
Hood

#### John Lovaasen

• 13
##### Re: X & Y Driver/Configuration Issues
« Reply #4 on: April 19, 2012, 02:49:59 PM »
For CW/CCW mode, I would set M1/M2/M3 to 0/0/0, correct? For step/dir mode (say 1/2 stepping), I would set M1/M2/M3 to 0/1/1, correct? I don't see a specific dip switch for switching between cw/ccw and step/dir modes.

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: X & Y Driver/Configuration Issues
« Reply #5 on: April 19, 2012, 03:08:22 PM »
I have not looked at the manual for the drives so dont really know which dips are which but I just know the leadshine drives do have the option.
Hood

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: X & Y Driver/Configuration Issues
« Reply #6 on: April 19, 2012, 03:18:49 PM »
Can only find a data sheet for it and dont see any dips for choosing between Step/Dir and CW/CCW so maybe it is auto on these model of drives?
M1 to M3 are for setting the stepping according to the sheet.

When you say they all work for the Z I am assuming you physically swapped the drives around? What happens if you connect to the same pins on the Breakout board that the Z uses and set them as X or Y. What I am wondering is if its a breakout board problem.

Hood

#### John Lovaasen

• 13
##### Re: X & Y Driver/Configuration Issues
« Reply #7 on: April 19, 2012, 03:41:05 PM »
For the Z-axis, I power down everything, unplug all motors, and plug the Z-axis motor into the X or Y driver and change the steps/mm to match the Z-axis. Once powered back on, using the X or Y jog works for the Z-axis. I've tried running each axis by itself on each driver, but Z-axis is the only one jogging. I just tried swapping the pin assignments for the Z and Y in Ports and Pins, but still only have the Z-axis jogging while the Y-axis doesn't.

I did notice in the manual that the Dir pulse needs to be 5us ahead of the Step pulse, but I'm unsure where to set that. Is that the Step Pulse 1-5us and Dir Pulse 0-5us in the Motor Tuning and Setup configuration window? Right now, both are set at 0.

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: X & Y Driver/Configuration Issues
« Reply #8 on: April 19, 2012, 04:20:44 PM »
That would suggest either you have the X and Y motors wired incorrectly or they are faulty.
Hood

#### John Lovaasen

• 13
##### Re: X & Y Driver/Configuration Issues
« Reply #9 on: April 19, 2012, 05:58:02 PM »
I hooked up my other CNC table to the drivers and miraculously they worked. It should be just a matter of tuning the motors to get smooth operation.