CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Dec 18, 2018 4:20 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jul 05, 2018 1:53 pm 
Offline

Joined: Tue Mar 13, 2018 8:26 am
Posts: 14
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


Top
   
PostPosted: Fri Jul 06, 2018 2:43 pm 
Offline

Joined: Mon Nov 03, 2014 7:15 am
Posts: 42
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


Top
   
PostPosted: Sat Jul 07, 2018 5:24 pm 
Offline

Joined: Tue Mar 13, 2018 8:26 am
Posts: 14
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


Top
   
PostPosted: Mon Jul 09, 2018 5:29 am 
Offline
Frequent User
Frequent User

Joined: Wed May 04, 2016 6:00 pm
Posts: 259
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


Top
   
PostPosted: Mon Jul 09, 2018 8:01 am 
Offline

Joined: Tue Mar 13, 2018 8:26 am
Posts: 14
Hi Mr. Josep,

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

Regards,
Mr. Phuc


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited