Check here for mach3 setup
http://www.kelinginc.net/Mach3setup.pdf
check the sherline 1/2 pluse mode
Best Stepper Motor, Stepper Motor Driver,CNC Router, Stepper Motor Power Supply, Stepper Motor Kit,DC Servo Motor
I'm having some trouble getting my Keling 5056D drivers and C10 BOB to turn my Keling 570oz-in motors with Mach3.
I have them hooked up like the picture below, but left out the other 2 motors for clarity.
Mach3 Motor Outputs settings are as follows:
X-Axis Step Pin# = 2
X-Axis Dir Pin# = 3
X-Axis Step Port = 1
X-Axis Dir Port = 1
Neither have Dir LowActive or Step Low Active checked.
I've also got the Estop set to pin 10, and it works as expected.
In Motor Tuning, I have X-axis set up as follows:
Steps Per: 4000
Velocity: 100
Acceleration: 50
G's = .1295...
Step Pulse 1-5us: 3
Dir Pulse 1-5us: 3
I have the Step and Dir Pulse set to 3 because the 1-2us Mach3 uses wasn't quite up to the 2.5us the 5056D datasheets said to use.
I've got the DIP switches set as:
1-on
2-on
3-on
4-off
5-on
6-on
7-on
8-on
which, I believe, means 5.6A Peak Current, half standstill current and no microstepping.
When I turn on the 45VDC power supply, the motor locks up, and I get a green LED on the 5056D, but no motor motion.
I feel like it's something very simple, like Mach3 is in simulation mode, but if that were the case, would the Estop switch still work?
Any help would be greatly appreciated!
![]()
Check here for mach3 setup
http://www.kelinginc.net/Mach3setup.pdf
check the sherline 1/2 pluse mode
Best Stepper Motor, Stepper Motor Driver,CNC Router, Stepper Motor Power Supply, Stepper Motor Kit,DC Servo Motor
This is little misleading. The picture of the port setup page show's sherline 1/2 puls mode selected, but the following text says to "make sure that none of the options on the right side is enabled"
So, which is it? EDIT4: It says directly above the picture to "Remember to click Sherline ½ Pulse mode"
EDIT: Also, what are the jumper settings?
EDIT2: Are there any standard colors for the wires on the motor? EDIT3: Yes, on the diagram for the 5056 & C10 here
Last edited by DrewSmith007; 04-19-2011 at 01:42 AM.
Hi...
According to my drawing...the E Stop switch should be hooked between 10 and Ground
not to the +5 . Do you have the 5056 drawing from Kellinc? If Not give me an E-MaIL and I will send it to you. Mine Is Drgee133@aol.com.
I think you can do it both ways, but the way I have it works and is shown on
http://www.kelinginc.net/KL-5056WithC10.pdf
as connected through 5V. I think I had to set it as Active Low in order to work, which causes an external Estop if the BOB fails. I'll check the settings at lunch or after work.
Make sure the port address is correct.
Gerry
Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
1.) Am I correct in my thinking, that the BOB put's out 5v on the numbered output pins when the signal is sent from the parallel port?
2.) This 5v should go into either the PUL+ or DIR+ of the 5056D drivers?
3.) The PUL- and DIR- should be connected to GND, either of the 5V power supply or a COM pin on the BOB with the 5v/GND jumper set to GND?
4.) Nothing attached to the ENA+ or ENA-?
5.) Should the -V from the KL-600-48 power supply be tied to the GND from the 5v power supply?
6.) Can someone tell me what the 5056 DIP switches should be set at for these motors?
I'm going crazy guys! I've tried every diagram out there, followed the mach settings, and all I get is the motor holding in place!!
I do not have either the C10 or the 5056, so I can't give any guidance from direct experience, so my comments are based on my reading of the available documentation...
Do you have (access to) an oscilloscope? That will help you to narrow down whether you should be focusing on Mach or on the breakout board or the driver.
Is the C10 jumper X6 set for output?
>>1.) Am I correct in my thinking, that the BOB put's out 5v on the numbered output pins when the signal is sent from the parallel port?
My interpretation of the C10 manual is that with your Mach3 settings (step low active set to Red), the step pulse input from the PC should be normally low with a positive-going pulse (for each step), and likewise the step pulse output from the C10 on pin 2 should be low with a positive-going pulse (in other words, it does not look like the C10 performs an inversion on that signal). It would be best if you could use an oscilloscope to verify that on pin 2.
As for the direction signal (Dir low active set to red, but it wouldn't make a big difference if it were set to green because motor direction can always be changed easily by motor wiring), my interpretation is that you should be able to test pin 3 with a multimeter, because the direction pin should be a steady 5 volt "high" signal if you are jogging an axis in one direction, and a steady 0 volt "low" signal if you are jogging in the opposite direction.
>>2.) This 5v should go into either the PUL+ or DIR+ of the 5056D drivers?
>>3.) The PUL- and DIR- should be connected to GND, either of the 5V power supply or a COM pin on the BOB with the 5v/GND jumper set to GND?
My interpretation is that pin 2 from the C10 should go to PUL- of the 5056D, and pin 3 from the C10 should go to DIR- of the 5056D, just as you have shown in your diagram.
Also, steady 5 volts should go to PUL+ and DIR+ of the 5056D, just as you have shown in your diagram.
>>4.) Nothing attached to the ENA+ or ENA-?
According to the manual, Usually left UNCONNECTED (ENABLED)
>>5.) Should the -V from the KL-600-48 power supply be tied to the GND from the 5v power supply?
It appears to me that the 5056D uses optoisolated inputs, with the 5 volt connection to the PUL+ and DIR+ pins going to the input side of the optoisolators, and therefore to maintain that isolation, I would NOT tie the -V from the KL-600-48 to the GND of the 5v power supply.
>>6.) Can someone tell me what the 5056 DIP switches should be set at for these motors?
Pins 1, 2, 3, and 4 look OK to me.
I would try starting out with pin 5 set to OFF, and 6, 7, 8 set to ON (for initial testing with half stepping).
The configuration that you showed (with 5, 6, 7, and 8 set to ON) appears to be valid only for "software configuration", however it does not appear to me that you are using that.
I would also note that the KL-600-48 is rated for 48 volts output, while the KL-5056D ordering page states that it is only rated for Supply voltage up to +45 VDC. It may be that that rating is conservative and you will be OK, but it's something to be aware of.
I brought an Oscope home from work today, so I'll know what's going on soon enough!
I thought the same thing about step and dir low active, but at http://www.kelinginc.net/Mach3setup.pdf it says to have them set as low active, unless the picture is incorrect.
It shouldn't matter for the Direction pin, because the direction that the motor rotates (CW or CCW) depends on the motor wiring as well.
It probably does not matter for the Step signal, because whether the step is actuated by a positive-going transition or a negative-going transition, a single step pulse will have both a positive-going and a negative-going transition, regardless of whether the pin is defined as active high or active low.
You might want to check with the oscilloscope to see whether one of the pulse edges is sharper than the other, though, because it's probably better to have a sharp transition on that pulse than to have a soft transition.
Well, I got them working finally, but I think there's something wrong with my BOB, as the pin's on the silkscreen didn't correspond with the pins in mach. They are as follows:
Mach3 says / Output's on BOB
2/9
3/8
4/7
5/6
6/5
7/4
it looks to me that either:
a.) There is something wrong with my PC, Mach3, Mach3 parallel drivers, PC parallel port or parallel cable.
b.) One of the chips on my BOB is bad or flipped or something.
Anyway, now that that's over...
Doorknob, I think it does matter because these drives are opto-isolated and current will only activate the opto-isolator if it is going the right way.
With Mach3 setup as LowActive, you would want the common pins set to GND, run the control wire to the -PUL and run 5v to the +PUL. At least I think this is how you would do it. I didn't.
I have mine setup like this
Mach 3 is NOT LowActive, COM pin's are set to GND, and the control pins are pulled DOWN.
The control wires are connected to +pul, the -pul are connected to the COM (GND) pins. This means that when the signal comes in from Mach3 it is a low to high pulse, causing current to flow across the opto-isolator to GND and turning the motor.
Does this seem like a bad way of doing it to anyone?
Also, does anyone know why we're supposed to use the Sherline 1/2 pulse mode? I turned mine off and it seems to work fine.
WHEW!!
Last edited by DrewSmith007; 04-20-2011 at 07:45 PM. Reason: Small content error, and made it easier to read
Glad to hear that you got it working.
The documentation for the 5056D is remarkably poor. According to figure 10 of the manual, it looks like step might activate on a negative-going pulse edge. But does not specify that the negative-going edge must be the leading edge of the pulse. Each step pulse has both a positive-going edge and a negative-going edge.
The optoisolator can be hooked up in more than one way. The diagram in figure 9 shows the LED turning on when a steady positive voltage is applied to PUL+ and PUL- goes negative (in other words, if both PUL+ and PUL- are high, the internal LED is off, but pulling PUL- to ground turns it on). However it can also work the way that you have wired it, where the pulse going positive on PUL+ (and PUL- grounded) turns on the optoisolator.
It was useful for me to go through the exercise, though...