Closed loop stepper cable questions...

More
4 years 7 months ago #236493 by harmo
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:
  1. 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.
  2. 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 :-D )

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.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #236495 by rodw
Are you using 15 pin VGA connectors or 9 pin DB9's? VGA seems to have too many signals for an encoder.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #236503 by tommylight
VGA cables are very good for encoders, but the pinout might be wrong so it will not work. Or maybe it will...?
Check online for pinouts, if the encoder A, B, and Z are on the R, G, B pins on the DB15 ports, that is good. Anything else will not work.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #236537 by harmo
Hi Rod,

I hope you're well, and thanks for getting back to me. It's the 15 Pin VGA plug. You're absolutely right that it has far more than the necessary 6 wires of the coder. According to StepperOnline documentation, it uses pins 1-3, and then pins 11-13 (inclusive on both ranges). The rest are completely unused.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #236539 by harmo
Hi Tommy,

As always, thanks for your response.

I guess my concern was that VGA signalling might be "lower voltage/current" than encoder signals...so the cables (or the cores, more specifically) would be too thin, or operate at some sort of odd EMI/RFI inducing frequency.

Interesting thought about the pinouts. I could possibly understand if they're male-to-male or female-to-female (mirror image of pinouts so the socket and plug pinouts match). However, I would have hoped (perhaps stupidly) that a VGA extension cord would keep the pinout consistent. That's an assumption I have to verify.

Thanks for the idea, I'll definitely check it out.

P.S. I have been instructed by the mini-matriarch of my household to convey a request:

"Please give your dog pat for me?". (Her words)

Anyway, thanks for the guidance, I'll report what I find.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #236542 by tommylight
You are welcomed, always.
And i can not pat that dog anymore, it ran away ! :) It was not mine, it just lived on the streets and we would feed it so he was around for several months, then one day he was gone, pretty sure it had something to do with a woman or a pack of cigarettes! :) I do have a white one at home and i think there is a picture in the build log thread/topic here from when she bit me and then ate a brand new Lenovo laptop power supply.
forum.linuxcnc.org/show-your-stuff/38547...ild?start=110#171915
Now that you are done with "aaahhhhh", bite marks! :)
forum.linuxcnc.org/show-your-stuff/38547...ild?start=110#172157

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum