AC Servo Spindelantrieb kontrolliert abbremsen

More
26 Oct 2022 18:40 #255120 by Wusel
I tried now to reduce the Acceleration value in the ini file from 20 to 2. When starting the motor with M3 command it accellerates realy slowly as supposed. When i type M5 it stops abruptly again, no noticeable decelleration as if the acceleration value only work one way, although the manual states it is for decelleration too?
I am puzzled

Rainer

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

More
26 Oct 2022 20:13 #255128 by tommylight
Replied by tommylight on topic AC Servo Spindelantrieb kontrolliert abbremsen

I am puzzled

So am i!
I am sure the acceleration and deceleration works properly in LinuxCNC for any of the 9 axis, but spindle....
Wait...
Just occurred to me, spindle stop or M5 will disable the stepgen, so no more steps on the output regardless of deceleration, hmmm maybe try this
in the hal file, instead of this
net spindle-enable => [HMOT](CARD0).stepgen.03.enable
try this
net x-enable => [HMOT](CARD0).stepgen.03.enable
not sure if there is any other stuff that disable spindle on M5 for now.

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

More
26 Oct 2022 20:40 #255131 by chris@cnc
Replied by chris@cnc on topic AC Servo Spindelantrieb kontrolliert abbremsen
Yes, we have here two systems that want to control the servo motor. First, linuxcnc give with the acceleration time parameter the upper limit. In velocity mode should this value also deceleration time include for my experience. If you reduce this on X-Axis should acceleration and deceleration very smooth. Second is the P gain. That mean how strong/fast follow your servo, the lcnc value. Why doesn't work this on the spindle configuration? How did you wire the controller? I can not see in hal file how do you switch the spindle on? And you have already one low pass filter inside. This should be enough for smooth on and off. But this filter is linear. If you want some S-Curve, we need the drive included function or write our own. Last year i did something but not finish. Basically pretty simple. Similar to the low pass filter function, but i found no way to adjust the time. Maybe in wintertime i will finish this idea. Sometimes my mind work more analog and need more time. Third is the controller there are some parameters for this too. First what is see is Pn005-Pn007 and Pn146-Pn150

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

More
26 Oct 2022 21:03 #255132 by Wusel
@tommylight:
I don't quite see why but it works, smooth accelleration on M3 and decelleration on M5 when I link X-enable to stepgen.03. Does this mean I control the spindle acceleration with the maxvel value on the X-axis?
@chris:
the spindle motor is an AC drive with encoder and it is driven via step/direction signal. interesigly enough, the Servo controller has a smooth ramp up functionality with S-curve characteristic but somehow i seem to have the wrong running mode in order to activate it. But in pute velocity mode it doesn't run and in position mode it doesn't respond to the ramps ?
I guess I'll have to become 120 years old to understand only half of it

Rainer

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

More
26 Oct 2022 22:48 #255146 by tommylight
Replied by tommylight on topic AC Servo Spindelantrieb kontrolliert abbremsen

@tommylight:
I don't quite see why but it works, smooth accelleration on M3 and decelleration on M5 when I link X-enable to stepgen.03.

Oh good ! :)

@tommylight:
Does this mean I control the spindle acceleration with the maxvel value on the X-axis?

No, you still control everything regarding spindle from the spindle section, just the stepgen is enabled when X is enabled.
Also it does not have to be X-enable, it was just what i can recall easy, you can also use machine-is-enabled or Y-enable or Z-enable and other pins.
The important thing was to have stepgen stay active after spindle stop/M5 to give it time to decelerate.

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

More
26 Oct 2022 23:00 #255148 by JPL

...the spindle motor is an AC drive with encoder and it is driven via step/direction signal. interesigly enough, the Servo controller has a smooth ramp up functionality with S-curve characteristic but somehow i seem to have the wrong running mode in order to activate it. But in pute velocity mode it doesn't run and in position mode it doesn't respond to the ramps ?
I guess I'll have to become 120 years old to understand only half of it

Rainer
 

Have a look there: www.talla83.de/linuxcncspindel.html  There's a lot of interesting videos about spindle control.

Specifically, this video:
is explaining a possible solution to the immedite stop problem for the spindle.

 

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

More
27 Oct 2022 17:20 #255205 by Wusel
I'll look into this, thanks. I know a few of his videos but hadn't seen this one yet
Rainer

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

More
27 Oct 2022 19:07 #255223 by chris@cnc
Replied by chris@cnc on topic AC Servo Spindelantrieb kontrolliert abbremsen
The documentation is really low of this driver. I can guess only. It seems Is not only parameter adjust of step / dir or speed mode. For speed mode you have to wire pin 25 / 13 +-10V analog. Maybe with step / dir wiring is not possible to run in speed mode. Also different parameter are used. Did you try parameter Pn002? Pn002 select kind of control mode. 0-5 possible but no description Parameter example for speed mode: Pn146 select linear or S curve deceleration Pn147 is deceleration bell time Pn149 is complete curve time If complete curve time lower than bell time happen nothing. That mostly error of these settings. And next in speed mode curve time value is max 10s possible in position mode 1,2s max time possible. It seems we can only in linuxcnc adjust the acceleration ramp and keep the drive with enable signal alive, as Tommy said. Or you be able to wire analog +-10V .

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

More
27 Oct 2022 19:45 #255233 by Wusel
hi Chris,
for PN002 I tried all 5 options. Since I am using Step/dir it won't run in speed mode and in all other modes it ignores my settings of PN146, PN147, 149. So I guesst for the time being I stick to Tommy's solution but it still is a shame. On my other lathe I have a standyrd asynchronous motor and a variable frequency drive and I can use the speed ramps there

Rainer
The following user(s) said Thank You: tommylight

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

More
27 Oct 2022 19:56 #255234 by tommylight
Replied by tommylight on topic AC Servo Spindelantrieb kontrolliert abbremsen
1.there is nothing wrong with leaving a stepgen on all the time
2.stepgens are always on in LinuxCNC when machine is enabled
3.they are switched off ONLY if a joint errors out or machine is disabled
4.spindle enable can be wired to any other pin if needed, in hal and hardware

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

Time to create page: 0.241 seconds
Powered by Kunena Forum