585,902 active members*
4,548 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Benchtop Machines > motor wire color in cnc conversion
Results 1 to 14 of 14
  1. #1
    Join Date
    Apr 2009
    Posts
    12

    motor wire color in cnc conversion

    I have 3 stepper motors I bought on ebay. The seller thought they were Nema 23 motors. They have the identical dimensions of a Nema 23 280 ounce*inch motor. They have 4 wires that are Red, black, green, and white. The red and black are electrically connected, and white and green are electrically connected.

    The Nema 23 documentation says the 4 colors should be red, black, orange, and yellow. Does anyone know which of my four motor wires are A+, A-, B+, and B-?

    I finished mounting the 3 motors, and I have a Gecko g540, and a Keling 48v 7.3amp power supply. I'm ready to start connecting wires! ya! If I guess wrong, is it bad to connect the wires like:

    B-, B+, A+, A-. will anything break? or will the motor just run backwards or something?

  2. #2
    Join Date
    Feb 2006
    Posts
    7063
    Quote Originally Posted by MPaulHolmes View Post
    I have 3 stepper motors I bought on ebay. The seller thought they were Nema 23 motors. They have the identical dimensions of a Nema 23 280 ounce*inch motor. They have 4 wires that are Red, black, green, and white. The red and black are electrically connected, and white and green are electrically connected.

    The Nema 23 documentation says the 4 colors should be red, black, orange, and yellow. Does anyone know which of my four motor wires are A+, A-, B+, and B-?

    I finished mounting the 3 motors, and I have a Gecko g540, and a Keling 48v 7.3amp power supply. I'm ready to start connecting wires! ya! If I guess wrong, is it bad to connect the wires like:

    B-, B+, A+, A-. will anything break? or will the motor just run backwards or something?
    There is no hard standard for wire color codes, and it's largely irrelevent anyway. Use an ohmeter to determine which wires are connected to each coil, then connect them up to the drive accordingly. If it spins the wrong direction, either swap the wires for any *one* coil, or configure the controller software (Mach/EMC) to invert the polarity of the direction line to your drive.

    Regards,
    Ray L.

  3. #3
    Join Date
    Oct 2008
    Posts
    121
    You should be able to swap A with B and nothing bad will happen. So just wire up red & black to the A outputs, green and white to the B outputs. If the motor runs backwards you can easily swap over any 2 wires from the same output pair - e.g. red and black.

  4. #4
    Join Date
    Apr 2009
    Posts
    12

    can't get the Gecko G540 out of fault mode.

    OK, I finished wiring everything. I tried it out and the G540 won't come out of fault mode. I followed the directions here:

    http://www.geckodrive.com/product.aspx?i=14469&sb=1

    I was pretty meticulous. Are there any suggestions on how to get it out of fault mode?

    This version of the Gecko drive has a charge pump switch, and I have it turned ON. When I turn the charge pump switch off, the fault mode shuts off, and then there is just the green POWER LED is on.

    Mach3 says that there is an emergency switch issue.

  5. #5
    Join Date
    Oct 2008
    Posts
    121
    Sounds like you need to enable the charge pump feature of mach3. Don't ask me how, I haven't got around to running it yet!

    Edit: does mach3 think you have an e-stop switch fitted? If so, I think this might need to be disabled, it might be preventing mach3 from generating the charge pump signal. I think the e-stop should be directly connected to the G540, mach3 doesn't need to know about it. Can you connect something to pin 16 of the DB25 and see if you are getting a charge pump signal (> 10 KHz)?

  6. #6
    Join Date
    Apr 2009
    Posts
    12
    OK, I got it working, but I think the motors are too small for my table. I don't really know the torque rating, because I don' tknow much about them, but now the problem is that it stalls and goes in and out of moving sort of. it turns very smoothly when I hold the motor in my hand. I'm able to make it behave like it does on the table when I try to keep it from turning. Here's what I have right now:

    Gecko G540, Keling 48v 7.3 amp power supply (I think it's 7.3). I'm going to buy new motors on Monday. I might even buy a bigger power supply if I have to, but the Gecko can only handle motor coil amps up to 3.5 I think.

    What's the biggest possible Nema 23 motor I can get that the Gecko can handle?

    Numb Nut, that was it exactly! Thank you!

  7. #7
    Join Date
    Dec 2008
    Posts
    445
    Quote Originally Posted by MPaulHolmes View Post
    OK, I got it working, but I think the motors are too small for my table. I don't really know the torque rating, because I don' tknow much about them, but now the problem is that it stalls and goes in and out of moving sort of. it turns very smoothly when I hold the motor in my hand. I'm able to make it behave like it does on the table when I try to keep it from turning. Here's what I have right now:

    Gecko G540, Keling 48v 7.3 amp power supply (I think it's 7.3). I'm going to buy new motors on Monday. I might even buy a bigger power supply if I have to, but the Gecko can only handle motor coil amps up to 3.5 I think.

    What's the biggest possible Nema 23 motor I can get that the Gecko can handle?

    Numb Nut, that was it exactly! Thank you!
    Not to say you don't have bad motors, but slow down a bit. Stalling can be a matter of not setting your motor tunings correctly.
    Try lowering the acceleration and velocity for a particular axis, and see if that helps the problem. You may just be trying to push the motors harder than they are able to cope with.
    You don't say what kind of mill you are hooking this all to, what kind of screws, reductions, or other data that may be relevant.

  8. #8
    Join Date
    Apr 2009
    Posts
    12
    Good point. OK it's a Harbor Freight geared head mill:


    I'm doing no reduction:


    All I know is that 1 revolution of the cranks corresponds to 0.1 inch of movement.

  9. #9
    Join Date
    Oct 2008
    Posts
    121
    Perhaps another thing to check might be your current set resistors...?

    Assume you have tried spinning the ballscrews by hand to check that they aren't binding and that the gibs are neatly adjusted (and aren't locked!)...

    I'd try it like how escott76 has suggested - try running the motor at a very slow speed (low velocity and low acceleration) - forward it a few turns (e.g. a multiple of 2000 steps) and measure the rotor movement. To measure rotor movement you could just eye ball it (missed steps will be multiples of 1.8 degrees***) or use a small piece of mirror, some hot glue, a laser and a surface at few feet away. Checking rotor movement rather than table travel might seem elaborate but eliminates the effects of table backlash.

    Repeat this while increasing the max speed setting until it starts to lose steps. Then back off the maximum speed to a safe amount and start working on the acceleration setting in the same way.

    Disclaimer - if I had a CNC mill then that is how I'd do it...

    ***Edit: this is wrong - missed steps would cause a rotor position error that is multiples of 4x step angle, thus 7.2 degrees. You can eyeball that, no need for laser and mirror! See accuracy and resolution section of http://www.geckodrive.com/upload/Step_motor_basics.pdf.

  10. #10
    Join Date
    Dec 2008
    Posts
    445
    Quote Originally Posted by MPaulHolmes View Post
    Good point. OK it's a Harbor Freight geared head mill:


    I'm doing no reduction:


    All I know is that 1 revolution of the cranks corresponds to 0.1 inch of movement.
    That's a good start, are the screws stock screws or ball screws? Have you checked to make sure your axis aren't binding without the steppers? You have to look at the total package here, the motors are only one piece.
    Again, I'm not saying your motors aren't up to the task. They may well not be, but simply bolting on a "bigger" one may not solve the problem. You want to match stepper voltage to the power supply as closely as possible. 32 times the square root of the inductance will give you the correct operating voltage for a motor. You want to stay as close to that as you can for best operation.
    Buying motors from Ebay with no idea what their specs are can be problematic, as you have no information to go by and you can't make informed choices about the correct thing to do. Don't mean to pick on you, but for others reading, it's not always cheap to buy cheap there.

  11. #11
    Join Date
    Apr 2009
    Posts
    12
    you are right, escott. Is the optimal voltage related to the torque at all or just speed? One motor I was looking at is 495 ounce*inch but It's optimal voltage is 84. The gecko can go to 50v. Would torque suffer at 50v, or only speed? Maybe the current wouldn't be able to get all the way up since the inductance would make the voltage change so slowly, and then it would already be to the next step?

    The motor posts I have are like 0.31" in diameter, which isn't even an option for the Nema23 motors that I have seen. I wonder of they are a cheap knockoff.

    I'm using the stock screws on the mill.

  12. #12
    Join Date
    Feb 2006
    Posts
    7063
    Quote Originally Posted by MPaulHolmes View Post
    you are right, escott. Is the optimal voltage related to the torque at all or just speed? One motor I was looking at is 495 ounce*inch but It's optimal voltage is 84. The gecko can go to 50v. Would torque suffer at 50v, or only speed? Maybe the current wouldn't be able to get all the way up since the inductance would make the voltage change so slowly, and then it would already be to the next step?

    The motor posts I have are like 0.31" in diameter, which isn't even an option for the Nema23 motors that I have seen. I wonder of they are a cheap knockoff.

    I'm using the stock screws on the mill.
    Current is what creates torque. Voltage gives you speed. Voltage also helps the current ramp up more quickly, so reduced voltage will have an adverse impact on torque that gets worse as speed increases. BOTH need to be right to get the best overall performance.

    Regards,
    Ray L.

  13. #13
    Join Date
    Apr 2009
    Posts
    12
    OK, so I can't return the Gecko and power supply that I got last week since they have been opened and tested, so getting a new power supply, motors, and 3 drivers is sort of out. I'll have to limit myself to 3 new motors, the old (3 days old hehe) Gecko, and power supply.

    The G540 is limited to 3.5 amps per axis. High speed is not important to me. Will a higher inductance motor be completely acceptable at low speed? Here's an extreme made-up example:

    A 2000 ounce*inch motor that has an inductance of 100 mH per coil, and rated for 3.5amp.

    Could I get the full torque out of it at low speed at say, 50 volts, even though the optimal voltage would be more like 320v? How low of a speed would I need to keep it at max torque (if that would even work at all)?

  14. #14
    Join Date
    Dec 2008
    Posts
    445
    Quote Originally Posted by MPaulHolmes View Post
    OK, so I can't return the Gecko and power supply that I got last week since they have been opened and tested, so getting a new power supply, motors, and 3 drivers is sort of out. I'll have to limit myself to 3 new motors, the old (3 days old hehe) Gecko, and power supply.

    The G540 is limited to 3.5 amps per axis. High speed is not important to me. Will a higher inductance motor be completely acceptable at low speed? Here's an extreme made-up example:

    A 2000 ounce*inch motor that has an inductance of 100 mH per coil, and rated for 3.5amp.

    Could I get the full torque out of it at low speed at say, 50 volts, even though the optimal voltage would be more like 320v? How low of a speed would I need to keep it at max torque (if that would even work at all)?
    With all due respect STOP. Unless you want to buy a bunch of stuff, have it be wrong, buy some more stuff, never get things working right, and then get frustrated and give up.
    You need to research what you need to get the job done right. Look at similar builds with similar mills and what they used. Motors, screws etc. It's very possible your controller and power supply will be fine, but you won't KNOW this unless you take the time to work out what you need. There's a lot of info on these forums, and a lot of people willing to offer advice.

Similar Threads

  1. How to wire an 8 wire stepper motor
    By technosteve in forum DIY CNC Router Table Machines
    Replies: 1
    Last Post: 01-17-2009, 12:01 AM
  2. stepper motor color coding
    By MacControls in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 02-23-2007, 10:12 PM
  3. Wire color code HP laserjet II steppers
    By rustranch in forum Stepper Motors / Drives
    Replies: 3
    Last Post: 02-14-2005, 05:40 AM
  4. Minebea Lm23 Motor Lead Color Code
    By A. Shuford in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 09-05-2004, 04:17 PM
  5. Wire Color
    By HillBilly in forum CNC Machine Related Electronics
    Replies: 1
    Last Post: 07-26-2004, 06:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •