CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

How to use Jerk input and Velocity ramp type in MC_MoveAbsolute
https://forum.codesys.com/viewtopic.php?f=6&t=8962
Page 1 of 1

Author:  vmphuc [ Thu Jul 05, 2018 1:53 pm ]
Post subject:  How to use Jerk input and Velocity ramp type in MC_MoveAbsolute

Hi all,

I need to control point to point a servo driver with MC_MoveAbsolute function block. When I use velocity ramp type is trapezoid, motor is vibrated in acceleration and deceleration phase (acceleration value is just 1000 mm/s2). In my opinion, in this case jerk value is infinitive (velocity is trapezoid type). However I put some jerk value, this result doesn't change.
And, there are four velocity ramp type: trapezoid, sin2, quadratic, quadratic smooth. Is there anybody who can help me how to use these type with input parameters (position, velocity, acceleration, deceleration, jerk) in MC_MoveAbsolute?

Thank you,
Mr. Phuc

Author:  alwoso [ Fri Jul 06, 2018 2:43 pm ]
Post subject:  Re: How to use Jerk input and Velocity ramp type in MC_MoveAbsolute

Dear Mr. Phuc,

to me it looks more like a hardware problem than a software issue.
Which type of fieldbus do you use? Does the bus support distributed clocks (like Ethercat), and if so, are the settings correct in the drive and in the fieldbus master?
MC_MoveAbsolute creates a new position setpoint every cycle, so the drive must be able to follow these setpoints. Did you check the limits for torque, current in the drive? If the drive cannot follow, the following error should increase....

I did not check the different settings of "eRampType" in the Axis_Ref_SM3, but it may be that you have to send a "ReInitDrive" command after changing the values.... You should see the behaviour of the different settings when you do a Trace of the value "fSetVelocity" of your axis.

Good luck!

Alfred

Author:  vmphuc [ Sat Jul 07, 2018 5:24 pm ]
Post subject:  Re: How to use Jerk input and Velocity ramp type in MC_MoveAbsolute

Dear Mr. Alfred,

I use EtherCAT slave drivers with Distributed clock capability. I tested these drivers with TwinCAT3, and it worked well. In my opinion, I should change velocity ramp type of axes to "quadratic type", however I don't know how to use the other types "sin2, quadratic smooth" . If velocity is quadratic then acceleration is linear, jerk is a constant value. Thus, these servo motors may be not vibrated in acceleration, deceleration phases. If velocity ramp type is "trapezoid type", jerk will be infinitive, making dangerous change for mechanical parts.

Anyway, I cannot find any document about SoftMotion manual for setup and programming. Do you know where I can get it?

Thank you very much!
Mr. Phuc

Author:  Josep M. Rams [ Mon Jul 09, 2018 5:29 am ]
Post subject:  Re: How to use Jerk input and Velocity ramp type in MC_MoveAbsolute

Hi.

With sin2, velocity has, accelerating, the form:

Vel:=Vmax x sin2(w)
w goes from 0 to 90°


In this case acc and jerk are allways continuous.

With smoothing ramp, te jerk has trapezoidal form. In this case, an displacement has 15 tracks, in 8 of them velocity has an qubic form.

Sent from my Moto G (5S) Plus using Tapatalk

Author:  vmphuc [ Mon Jul 09, 2018 8:01 am ]
Post subject:  Re: How to use Jerk input and Velocity ramp type in MC_MoveAbsolute

Hi Mr. Josep,

Thank you for your outstanding explanation. I understood these settings.

Regards,
Mr. Phuc

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/