Leadshine CS3E-D1008 not running smoothly [SOLVED]

More
3 years 10 months ago #258913 by petervg
I'm using position control by linuxcnc (CSP). Looking at the screenshot below, you can see the screenshots I took in leadshine motion studio for the target position (CH1 - 0x607A, in the XML file and commanded by linuxcnc) is set properly, and the actual motor position (CH2 - 0x6064) is following this relatively accurate even though the speed (CH3 - 0x606C) is quite erratic after approx 200mS being stable.
 

I took the same plot including the target velocity, and this stays at 0 because linuxcnc is set to use CSP.
 

In linuxcnc I can see exactly the same in the HAL scope...
 

So what I think (and please do correct me if I'm wrong) is that this has to be a problem
 

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

More
3 years 10 months ago #258914 by petervg
Ok, just made an important discovery!

During the tests below, I was using the arrow keys to jog the motor. I now tested exactly the same using MDI commands, and with the MDI commands the motor runs as expected! I also tried running the axis demo file (the one "not intended for actual milling":-) and the motor behaved as expected.

I also notice the time it takes for the motor to start behaving weird is always the same when I press the arrow keys. It doesn't matter if I set the speed to 45mm/min or 3000mm/min.

On to finding what makes the jog keys behave differently from MDI commands...

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

More
3 years 10 months ago #258915 by mwc
What happens if you try a different speed?

Personally, I probably wouldn't be too concerned with the motor not attached to anything.
It could be some of the internal tuning causing an issue, or the speed you're commanding just so happens to be one of the resonant ones for that drive/motor/voltage selection (even although they're closed loop, they'll still have speeds where resonance needs handled, which digital drivers normally do quite well).
Having an actual load on the motor will act as a damper, so there's a good chance everything will run fine once installed on a machine.

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

More
More
3 years 10 months ago - 3 years 10 months ago #258918 by petervg
oh man, thanks!!!!!

For anybody following this: xset -r controls the auto-repeat of a key. From the manual: The r option controls the auto-repeat. Invoking with "-r", or "r off", disables auto-repeat, whereas "r", or "r on" enables auto-repeat.

Linux xset manpage

Issue solved!!
Last edit: 3 years 10 months ago by petervg. Reason: added solved tag to title
The following user(s) said Thank You: tommylight

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

Time to create page: 0.211 seconds
Powered by Kunena Forum