PDA

View Full Version : Issues with stepper motors losing power



Steven W
12-07-2021, 06:59 PM
Hi Guys

I have an issue that has left me tearing out my hair out...well what's left of it.

To give a bit of background. Bought a Chinese cnc router about 10 years ago. The cnc controller connects to a Dell 5150 Inspiron pc (running Windows XP) which has a Moschip MCS9835CV PCI Parallel Port Card. The cnc router has worked very well with regular use - no issues, until I left my Dell 5150 pc out in the workshop over winter - the pc no longer works.

I have a spare pc (Dell Optiplex 780) that runs on Win XP, which I hooked up and fitted the PCI card and driver to. Here is the issue:

Switch on the pc and the controller. The pc starts to boot up. Fan comes on the controller and you can hear the stepper motors getting power to them and they lock rather than being able to move by hand. This is what I would expect to happen. As soon as the Windows XP window appears on the monitor the power to the stepper motors goes off although the controller is still switched on and the fan is still running. I don't know why. As soon as the pc starts booting down the stepper motors come alive again. I can't get to the bottom of it. I've tried taking the power pack from the Dell 5150 (which I know works) and fitted it to the Dell 780 as I read that since the controller takes power from the pc the Dell 780 has a less powerful battery than the 5150 and maybe not be able to supply enough power to the controller. The issue is still the same with the 5150 power pack

I also have another old Dell pc that runs Win 7 but again the issue is still the same

Has anyone else experienced anything like this or can point me in the direction that will fix this and help my sanity

cheers Steve

JAZZCNC
12-07-2021, 08:22 PM
This could something like a Charge pump issue but without knowing more about the controller and software then it's hard to say.

If you don't know what a charge pump is, It's a feature on the controller or breakout board that watches for a signal from the PC software which it monitors 1000's times per second and if it doesn't see this then it will shut down all it's outputs because it thinks the PC as gone AWOL.

However, it usually works in reverse to what you are seeing, it shouldn't allow the steppers to power up without the PC and its control software running. So it could be that the polarity of the new parallel port is different and the output needs inverting in the software.? What software is it. ?

Another feature that could stop the motors from turning is the enable signal on the drives, if this is connected then it would shut down the drives' motor outputs, however, it wouldn't power them down only stop them from spinning.

My first place to look would be going into the control software and look in the outputs for the charge pump signal, then change the active state to the opposite to whatever it's set to know ie: if set to HIGH set it LOW or vise versa.

Other than this can't think of anything else which would cause it to do what you are experiencing without knowing more about the software and controller etc.

dazp1976
13-07-2021, 12:27 AM
iWhen you say they go off, do you mean the main power to the drivers or that they disable?.
If just disable.... Do you have the enable pins wired up to the drivers?.
Worth a check. Might just be working backwards (low/high) enabled when idle/disabled when wanted. Or on wrong output.

JAZZCNC
13-07-2021, 01:14 AM
iWhen you say they go off, do you mean the main power to the drivers or that they disable?.
If just disable.... Do you have the enable pins wired up to the drivers?.
Worth a check. Might just be working backwards (low/high) enabled when idle/disabled when wanted. Or on wrong output.

The enable won't drop the holding torque, it will only disable the drive outputs so they don't spin, they will still be locked and he says they drop holding torque and spin when the controller starts up so won't be the enable pins.

ZASto
13-07-2021, 08:36 AM
Many drives (read TBxxxx and similar), when Enable is asserted, switch off their output stage and motors are unlocked, i.e. you can spin them by hand - no holding torque.
It is quite common that motors act "weird" while PC is booting, unless charge pump is enabled in Mach3.
Many years ago I made an interface between Mach3 and RZNC breakout board and added charge pump circuitry to be sure that machine will not play silly while booting.

dazp1976
13-07-2021, 09:09 AM
he says they drop holding torque and spin when the controller starts up .

Where does he say that?.
The op has no mention of getting any movement at all. Only controller fan. All he gets is power to them and motor locking, then power going off when booted.

A_Camera
13-07-2021, 11:37 AM
The enable won't drop the holding torque, it will only disable the drive outputs so they don't spin, they will still be locked and he says they drop holding torque and spin when the controller starts up so won't be the enable pins.

That is not the way my CNC works. When the driver is enabled there is a holding torque. When it is disabled the holding torque is lost and I can rotate the motors with my hand. This is the way I want it to work.

JAZZCNC
13-07-2021, 07:40 PM
Where does he say that?.
The op has no mention of getting any movement at all. Only controller fan. All he gets is power to them and motor locking, then power going off when booted.

Slip of the keyboard, it should have read " he says they drop holding torque and WON'T spin when the controller starts up" I wasn't quoting him either.!


That is not the way my CNC works. When the driver is enabled there is a holding torque. When it is disabled the holding torque is lost and I can rotate the motors with my hand. This is the way I want it to work.

Depends on the drives, some do, some don't, some can be configured via software to work either way.
The most common config is the opposite of yours where the motors instantly powered up when power is applied to the drives and drop the holding torque when the enable pin is set. Again this can be inverted on the drive or thru software depending on the drive. This is why the enable pin can be left unwired on most drives.

A_Camera
16-07-2021, 11:39 AM
Depends on the drives, some do, some don't, some can be configured via software to work either way.
The most common config is the opposite of yours where the motors instantly powered up when power is applied to the drives and drop the holding torque when the enable pin is set. Again this can be inverted on the drive or thru software depending on the drive. This is why the enable pin can be left unwired on most drives.

I am not sure what you mean by "The most common config is the opposite of yours"... My system works just like are describing. Perhaps you misunderstood what I wrote. Disable = no holding torque Enable = Holding torque the way I see it. The signal can be active low or active high, depending on some other things, but that's a different thing.

You were saying earlier: "The enable won't drop the holding torque, it will only disable the drive outputs so they don't spin, they will still be locked"

The Enable signal controls the holding torque. If the Enable changes state (goes from low to high or high to low) it will enable or disable the driver which will apply or drop the holding torque. On most drivers, if the Enable is not connected (floating) the holding torque is applied and the driver is enabled. The motor is locked only when there is a holding torque (driver enabled). If the driver is disabled and there is no holding torque, the motor can't spin, not even if you apply step pulses. When the driver is enabled the motor is on holding torque but starts spinning as soon as step pulses are applied.

dazp1976
16-07-2021, 02:56 PM
I am not sure what you mean by "The most common config is the opposite of yours"... My system works just like are describing. Perhaps you misunderstood what I wrote. Disable = no holding torque Enable = Holding torque the way I see it. The signal can be active low or active high, depending on some other things, but that's a different thing.

You were saying earlier: "The enable won't drop the holding torque, it will only disable the drive outputs so they don't spin, they will still be locked"

The Enable signal controls the holding torque. If the Enable changes state (goes from low to high or high to low) it will enable or disable the driver which will apply or drop the holding torque. On most drivers, if the Enable is not connected (floating) the holding torque is applied and the driver is enabled. The motor is locked only when there is a holding torque (driver enabled). If the driver is disabled and there is no holding torque, the motor can't spin, not even if you apply step pulses. When the driver is enabled the motor is on holding torque but starts spinning as soon as step pulses are applied.

This is why I suggested to check he didn't have settings or the wiring backwards - high/low (if actually wired in that is).
Enabling during pc booting, disabling when it comes to life.

JAZZCNC
16-07-2021, 08:57 PM
I am not sure what you mean by "The most common config is the opposite of yours"... My system works just like are describing. Perhaps you misunderstood what I wrote. Disable = no holding torque Enable = Holding torque the way I see it. The signal can be active low or active high, depending on some other things, but that's a different thing.

Excuse the pun, I think we are getting our wires crossed here.! What I meant was that the standard setup is that the drives have holding torque if the enable is NOT used and if the enable is used then holding torque is dropped when the state changes. The way you described it your drives are set so they need the enable signal to engage the torque, this is opposite to standard setup is what I meant.




You were saying earlier: "The enable won't drop the holding torque, it will only disable the drive outputs so they don't spin, they will still be locked"

The Enable signal controls the holding torque. If the Enable changes state (goes from low to high or high to low) it will enable or disable the driver which will apply or drop the holding torque. On most drivers, if the Enable is not connected (floating) the holding torque is applied and the driver is enabled. The motor is locked only when there is a holding torque (driver enabled). If the driver is disabled and there is no holding torque, the motor can't spin, not even if you apply step pulses. When the driver is enabled the motor is on holding torque but starts spinning as soon as step pulses are applied.

Yes that is the common way it works but it's not exclusive and some drives have the ability to maintain the holding torque when the enable changes it states, they just stop movement, this helps in applications like Z-axis, etc where don't want it to drop when an E-stop occurs, etc. Many servos and some closed-loop stepper drives offer this option with a parameter change.

Steven W
21-07-2021, 07:04 PM
Hi Guys

Sorry I haven't replied sooner but I've been away for a few days and have also been working on a solution. Thanks for all the responses and debates that ensued!

I am now glad to report that everything is working well. It's a bit of a saga but there were a few things wrong. The other two Dell pcs I was using already had a printer ports installed (by Dell). I don't know if by putting the Moschip pci board in was causing a conflict? I also noticed that even with the cnc controller unplugged from the pc, Mach 3 was not working properly. Somehow it is corrupt. It was a version I got with the Chinese machine. Can't remember if it came as a download or a disc but I didn't have either to hand.

I decided to buy a new motherboard for the old original pc that I knew worked prior to buggering it up last winter. Once I had it configured and reinstalled the PCI board and downloaded the demo version of Mach 3 everything started working perfectly. Don't know why but the address for the Moschip PCI board had changed with the new motherboard but once I figured this out - bingo!

The only issue I have now is Mach 3 in demo mode only which only gives me 500 lines of movement. I could spring a few quid for a proper UK version of Mach 3 but I've been reading up on LinuxCNC and wondered how this stacks up against Mach 3 and how similar is it? Will download a copy and give it a whirl

cheers again for everyone's input

Steve

dazp1976
21-07-2021, 09:13 PM
Steve

Did you keep all the old Mach files / hdd from the pc or did you wipe it?.
There'll be a file in the old mach folder called Lic.
This is the license file. You just copy it to the new mach folder.

ZASto
22-07-2021, 07:25 AM
If your old HDD is alive copy from c:\Mach3 folder the following:
Mach1lic.dat
<yourmachineprofile>.xml
whole folder:
C\Mach3\macros\<yourmachineprofile>
C:\Mach3\Brains

OR

whole C:\Mach3 folder and rewrite it on new machine (if Mach version is tha same)

Steven W
22-07-2021, 07:48 AM
Thanks for that info. I still had the old copy of Mach 3 on my pc. Downloaded the new Mach 3 dragged the lic file over and all working good again

Cheers Steve