Skip to main content
msingh
Senior
August 22, 2022
Solved

Profile of the trapezoidal move - position control using FOC

  • August 22, 2022
  • 3 replies
  • 4540 views

Can someone help me understand the profile of the trapezoidal move? for example if I would like to make a movement of 10 radiance in 10 seconds using the MC_ProgramPositionCommandMotor1 how much of the 10 seconds will be acceleration, constant velocity and deceleration? and can this profile be changed? Ideally i would like to achieve 1/6 accelleration 4/6 constant velocity and 1/6 deceleration, is this even possible? is there somewhere in the code where I can specify this?

This topic has been closed for replies.
Best answer by jartim

The code you need to modify is the function TC_MoveCommand in trajectory_ctrl.c. This function currently divides the movement into 9 steps, 3 acceleration, 3 cruise and 3 deceleration. It shouldn't be too difficult to change this to meet your 1-4-1 requirement.

3 replies

GMA
Technical Moderator
August 26, 2022
If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
msingh
msinghAuthor
Senior
August 26, 2022

Dear @GMA​,

Thanks for your reply, I've had a look at this document however I am struggling to find the answer to my question. I have based my question considering the attached graph, if time at D is 10 seconds what would be the time at B and C?

Thanks in advance

Kind Regards

Manpreet Singh

jartim
jartimBest answer
Associate III
November 17, 2022

The code you need to modify is the function TC_MoveCommand in trajectory_ctrl.c. This function currently divides the movement into 9 steps, 3 acceleration, 3 cruise and 3 deceleration. It shouldn't be too difficult to change this to meet your 1-4-1 requirement.

msingh
msinghAuthor
Senior
November 17, 2022

Thanks for your reply this is definitely helpful.

GMA
Technical Moderator
August 26, 2022

Hello,

Page 7/22:

  • total duration DeltaT =  fDuration parameter = 9A then A=fDuration/9 with B=3A
  • cruise= l =Deltat/3

Best regards.

GMA

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA