Hi All,
I hope you're all well. It's been quite some time, but I'm back where Internet isn't just a dream, and cows aren't part of my daily routine.
So here's the situation:
When I get a few spare moments, I keep tinkering on my CNC control box. The box is nearing completion... well.. the end is in sight at least... but I have a few testing problems...
- I have some Stepper Online CL86Y closed-loop drivers and matching 12NM steppers. When using the usual 1.7m Stepper Online power/encoder cables, connected directly to both motor and driver, everything works fine.
- I need to have detachable wiring between the control box and the machine for storage purposes. So my intent is to have the encoder and power cables running between the driver and stepper go through sockets mounted to the chassis of the box. The theory is.... I'll use the usual 1.7m Stepper Online cables to go from the driver to a socket on the chassis, then from there, use the 4.7m cable to connect the machine.... although I'll have to solder the requisite aviation/VGA plugs to the bare wire end so it connects to the box.
- I've tested the aviation sockets (they run motor power) mounted to my chassis, and when I plug the motor into them, it works. However, until today, I just ran the encoder cable direct from the driver to the motor. (No socket or chassis mount yet).
It all seemed simple enough.... so I mounted the first encoder cable to the chassis, and decided to do a test before I got much further.... this proved helpful, as I ran into problems straight away.
So some more facts:
- I put the stepper power sockets on one side of my CNC control box, and the encoder cables are mounted on the other side of the box. Just trying to distance the power circuitry from the lower voltage signalling stuff.
- Noting that the distance between the sockets is quite large, and that I haven't terminated the 4.7 cables (encoder/power) with their respective male plugs, I plugged the motor directly into the power socket on the left side of my control box, and ran a standard VGA extension cord to bridge the gap for the encoder cable socket (right of the control box) back to the motor.
This had some unexpected results:
- The motor moved a tiny bit (a fraction of one turn) when jogged in LinuxCNC, then never moved again, until the whole system (control card, drivers, et al) was shut down and restarted. Same thing happens every time.
- The driver did not show any indication of alarms, (no flashing red LED) and LinuxCNC kept sending signals as though nothing was wrong.
Hypothesis One: The ferrite beads on the VGA extension cable may interfere with the pulsed voltages of the encoder.
.... so I removed them from the cable, just to see what happened....
Result:
The motor turned momentarily like before.. maybe for twice as long (roughly half a second to a second), but instead of simply stopping, it started to hum (but no rotation) as though it were fighting against itself. Again no alarms or errors on the driver, it just hummed there until I either disconnected the encoder cable, then the alarm LED started flashing... or the whole system was powered down and restarted.
Hypothesis Two: Maybe I made a mistake when wiring the chassis mounted socket?
I took a known-good cable, mounted it to the chassis, then plugged the extension cord to the motor and tested.
Result:
No change. This cable worked perfectly when directly connected to motor, but mounted and used with the VGA extension cord, the same thing happened. So hopefully it means my first mounted cable is good.
Hypothesis Three: VGA extension cable defective?
Swapped it out with a new, ferrite covered cable....
Result:
Back to silent stopping. So no change.
This is where I'm up to... but I've been thinking (always dangerous

)
Hypothesis Four: VGA cables simply aren't good for encoder signals....
Intended procedure: I'll try soldering a male VGA plug to the 4.7m StepperOnline cable and see if that helps. Don't have a spare VGA plug... so that's on my shopping list.
Hypothesis Five: Chassis mounting a bad idea?
This is where I humbly ask if anyone else is mounting motor cable sockets to their control boxes? Am I missing something else here? Some common sense knowledge that has somehow eluded me to this point? Am I deluding myself into thinking that I can have detachable connections on my control box?
I'm actually building the control circuitry into a mobile trolley/cabinet of sorts, computer on top, but all the sensitive/dangerous electrical stuff locked away.
Any thoughts would be welcome. I know I am always asking for advice whenever I'm able to reach the kitten-mangled ball of yarn known as the Internet, and I hope one day to provide it to others here.. but that might have to wait until my skills are up to that task.
As always, thank you for reading and I hope this helps someone else in the future.
Have fun and enjoy CNC'ing weird and wonderful stuff!
Hamish.