PDA

View Full Version : Stepper wiring/colour coding



rwb97
16-04-2014, 04:57 PM
Hi guys, I'm new here so apologies in advance for any textbook errors!

I'm looking for some help with some steppers I've just received. The wires coming out of the motor are colour coded as usual, so you can look up on the data sheet which coil they're hooked up to... However on mine, (all three are the same) none of them have the colours in the same order, so if I were to follow the data sheet by colour, then surely they would be wired differently and probably incorrectly!?!

Take a look at what I mean:

Motor number 1:
12079

Number 2:
12080

And number 3:
12081


The motors are Zapp Automation SY60STH86-3008BF (SY60STH88-3008BF (http://www.zappautomation.co.uk/en/nema-23-stepper-motors/380-sy60sth88-3008bf-nema-24-stepper-motor.html)) (this link is for a single axle variant, but the datasheet for mine are on the same page. - You may notice I asked my question on their site already, but I don't think it was understood, I probably didn't explain it well enough!

Here's the data sheet:http://www.zappautomation.co.uk/en/attachment.php?id_attachment=140

Lastly, I'm assuming I'm going to have to re-order these wires so that I can follow the data sheet, and there looks like where the wires go into the motor body, the plastic connector bit might be removable... There are what I think are small plastic release clips, but I can't get it to budge and would rather not break it... Any ideas?

Thanks very much in advance to anyone who can help me out here!

Web Goblin
16-04-2014, 09:23 PM
I would go with the colour coding from the correct data sheet. Check the data sheet and check the wiring of the motor against it with a multi meter to ensure that the winding correspond with the correct colours. If you want a double check then email Gary at Zapp. He is normally very helpful.

Clive S
16-04-2014, 10:29 PM
A quick way to test each coil is to get a pair of cables to a coil say coil AA yel/wh + yel. and short them together and try and turn the motor by hand and then try the next pair ie CC red + red/wh.

With no cables shorted the motor should turn very easy by hand and a shorted pair will make the motor stiff to turn. Also welcome to the forum ..Clive

m_c
17-04-2014, 12:24 AM
What order the wires come out the motor is irrelevant. All that matters is the wire colours.

The fact they're in different orders, is just to do with the wires being fed out randomly. Where they come out through the case/grommets, has little bearing on what they're actually connected to internally.

Gary
17-04-2014, 06:52 AM
The order they come out makes no difference, use the wire colors as in the datasheet and you will have no problems.

rwb97
26-04-2014, 03:05 PM
Thanks very much to everyone for your help!

EddyCurrent
26-04-2014, 07:49 PM
One of the most important points for quality production is repeatability, clearly they are unaware of such things where these motors are produced.

rwb97
22-06-2014, 11:23 AM
Righty... So I've finally got round to getting a PCIe-parallel card, and have been playing around for most of yesterday trying to get this to work.

I started by checking that my power supply was outputting actually 24v, not 30v which if the potentiometer has been moved it can do, then wired the steppers up to my driver board (I'm using a 4 axis TB 6560, but currently only 3 motors)(I don't yet have any E-stops or limit switches or spindles, I'm just trying to get the steppers to work) like so:

12609


Is this right? I've tried to show how I've set my DIP switches too, if it helps I can attach the entire data sheet for the driver board.

I then installed the drivers for my PCIe-parallel card, then Mach 3, and then plugged the power, steppers and parallel into the board and turned it all on. I launched Mach 3 mill, went to ports and pins and set it up how the driver boards manual says to, loaded some g-code and hit start cycle. None of the motors did anything, so I tried using the jog hotkeys. still nothing.

I then tried browsing some youtube vids, forum posts etc, (one of the reasons I chose this board was that it seemed popular and so would be easy to find other people with it) and found some different ports & pins settings which I tried. Still nothing.

The only things I have noticed are that the fan comes on on the driver board, it doesn't get at all hot (slightly warm) after 15 mins, the two LED's that I have highlighted in red boxes on my diagram come on (I think they are the 5v and 12v regulator LED's), the motors are no easier/harder to turn than when they aren't plugged in, and lastly I think there is a very faint rice crispies sort of crackle noise, which I think is coming from the steppers, but is very hard to say as its so quiet. All of these observations are the same whenever it is plugged in to the power, regardless of whether it is plugged in to the PC or Mach 3 is doing something.

So I'm kinda hoping that someone has some ideas for me... what are the correct ports pins settings for my setup? have I wired my steppers correctly? Are my DIP switches set right? Is there something I've missed?

Thanks very much to anyone who can help me out here!

rwb97
22-06-2014, 12:01 PM
Just found another set of pins and ports settings on the internet, tried them and this time the two left hand of the axis work LED's light up, but everything else is the same.

rwb97
22-06-2014, 01:44 PM
Would it be something to do with me running windows 8? From the Artsoft site: "Originally, Mach-series software only worked with the parallel port (via the parallel port driver), which was a standard port on every PC. Technologies have advanced over time, and not only is the parallel port becoming obsolete, but the Windows codebase has changed to the point where it is technically impossible for the parallel port driver to work. An external motion device is a piece of hardware that is a replacement for the parallel port. It enables a PC running Mach3/Mach4 to control outputs and read inputs. They typically communicate with the PC via an Ethernet or USB connection (but are not limited to those two means of communication). In order to control a machine using an external motion device, the developer of the hardware must write a plugin for that specific device, so no standard USB-to-parallel port adapters will work. There are many devices listed on our Plugins page in the software and download section of our website."

cropwell
22-06-2014, 02:40 PM
I do not use win 8, on my CNC computer I have XP, so my comments may be qualified by ignorance, however :-
If such a concept still exists in win 8, you need to go into Control Panel, System, Hardware Devices and where the printer port is installed, check the address of the port. This should be set the same in Mach3 ports and pins setup. If these are different, you haven't a hope. The parallel port I/O cards sometimes install with non-legacy port addresses and assuming it is 278 or 378 is not necessarily correct.
The pinout I have for this board is X step 16 dir 1, Y step14, dir 7, Z step 3 dir 6

rwb97
22-06-2014, 04:13 PM
Thanks very much for your help, I shall try this and let you know if I have any luck!

JAZZCNC
22-06-2014, 04:43 PM
Mach3 parallel port driver doesn't work with Win8 or Xp/Win7 64Bit. You'll need 32bit XP or 32bit Win7 to use parallel port.

rwb97
22-06-2014, 05:36 PM
Yeah... I guess so. The other thing is that when I go to the address of the LPT port, its E010, which when I put it into Mach 3 as 0x010, Mach changes it to 0x10 Is this something to do with it being hex? Anyway, I'm only asking as I've just plugged it all into an old XP system (XP to the rescue again :p ) and have another odd base address (CCF8) and I'm hoping that when Mach3 has finished installing its not going to do the same. Also, what's the deal with having to have an e-stop to run code in mach? can I emulate it as being off by ticking the Active Low box? Mach 3 is installed now, so I'll report my findings. Again, thanks for all your help!

rwb97
22-06-2014, 06:01 PM
Okay, so I've got a bit further... I think.
I've tried all the ports/pins settings I've tried before, including the ones cropwell gave me. This time, the motors make quite a bit of noise, and I did get one to vibrate when I was using the jog tool. My parallel port says it's base address is CCF8, I tried putting this into Mach as 0xcf8 and 0xccf8 what is the correct format? Beyond this is it just a case of trying to get the right ports/pins, or have I wired the motors wrongly, or have I got the wrong step settings on the DIP switches? Thanks again.

rwb97
22-06-2014, 06:09 PM
Ahhh this must be good news, I've noticed the axis work indicator LED's come on on the driver board (VERY faintly) when I press the corresponding axes jog buttons in mach 3... I guess this means the ports/pins settings must be right, and it is either the stepper wiring or the DIP switches I have wrong?

gorbo
22-06-2014, 06:40 PM
I had this same problem, I built a PC (xp) with a PCIe Card parallel port , it was a 3 axis machine but only 2 would run, in this case it was X, swapped wires around and no joy, in desperation I tried a PC with a built on parallel port and it worked fine, so I purchased a Intel board with a built on parallel port and problem was solved, hope this helps

rwb97
22-06-2014, 07:03 PM
Okey Dokey, now we're getting somewhere! The X and Y axes are working, all be it rather noisily at low speeds, but I'm sure that's something that can be fixed in motor tuning later. The problem was that in the motor tuning page there were no values in the for step pulse or direction pulse, so I set them both to 5 and workey workey! Anyone got any tips to make things run smoother? (I am aware that this driver board isn't the best example of good quality, but I'm sure theres a fair deal I can do by playing with motor tuning etc... the problems are that its very noisy and rough at slow speeds, but quieter when at high speeds (It actually sounds like I expect it to!) however there is then a regular clicking. Is this step skipping? Thanks very much for the help, I really appreciate it and now have something I can work with!

JAZZCNC
22-06-2014, 07:56 PM
I guess you are running these motors on the bench.? If so then they can run rough sometimes when off the machine, it's resonance try clamping them down.! . . . BUT Still there are things you need to set in mach to get them to run something like smooth and not stall(miss steps).

Set the steps Per to match the setup you will run the machine at SO say for instance your going to run 5mm pitch ballscrew then Divide the micro stepping you set the drives to by the pitch. IE 800MS/5mm= 160 in Steps per. This will give you the correct amount of movement and dial the motors in something like correct. Then set the Velocity and Acceleration to sensible figure of 1000 & 300 respectively.

This should give you some thing like smooth movement from motors. Don't set the drive micro stepping to 200 which is the amount of steps of the motors, this will be classed as full stepping which can make motors run rough. Set it higher and you will get smoother running motors. 800 & 1600 are good figures but be aware the higher you go the more pulses required and slower the machine unless you up the Kernal speed in Mach3. Don't set Kernal higher than 45Khz otherwise mach3 can become unstable and could crash machine.

With only 24V you won't get much more than 2000mm/min velocity and 600S/S acceleration.

rwb97
22-06-2014, 08:41 PM
Yeah, just on the bench currently, but stuck them on some bubble wrap, made a whole load of difference. I had to leave the XP machine as it just couldn't cope, even with the kernels set at 25Khz, but I'll install it on my main PC tonight and look forward to trying your suggestions! Thanks very much.

JAZZCNC
22-06-2014, 09:19 PM
I had to leave the XP machine as it just couldn't cope, even with the kernels set at 25Khz, but I'll install it on my main PC tonight and look forward to trying your suggestions! Thanks very much.

Don't set the Kernal speed higher than 25Khz if it does everything you want which it will with just 24V. The Kernal speed isn't directly related to how fast your PC is but more how good your parallel port is. I've seen some high spec PC's that just can't touch some much lower spec PC's because they have fast clean pulses coming from the Parallel port.
The further away from 25Khz you set the Kernal the more chance you will have for trouble.!

rwb97
22-06-2014, 09:40 PM
Ahhh that's interesting, thanks for clearing that up!

JAZZCNC
22-06-2014, 09:59 PM
If you want to test how good your parallel port is then run the Driver test in Mach3 folder.! . . . Look for file called Driver test.!! . . . This will show better if your PP is up to speed.?

cropwell
23-06-2014, 04:17 AM
Just another thought about pins :- the enable pins for the axes might be better set high, even though the TB6560 has internal pull-up resistors, a floating pin could cause problems. X=4, Y-17 and Z = 5.

rwb97
23-06-2014, 11:34 AM
Yeah, found the driver test when I was trying to get it to work when I was trying on windows 8, Will try it on 7 when I get home, thanks for your suggestion! I will also try those enable pin settings.