This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to change the gMotorVars.MaxVel_krpm while servo motor is running motion profile

Other Parts Discussed in Thread: TMDXIDDK379D, MOTORWARE, CONTROLSUITE

Hi every one!

Good Day.

I am using MotorWare18  proj_lab13b , (for servo motor).

I need to change the gMotorVars.MaxVel_krpm while servo motor is running motion profile. how to do that ?

what I have done is ...

step1:gMotorVars.PosStepInt_MRev=100;

step2. gMotorVars.PosStepFrac_MRev=_IQ(0.0); 

step3:gMotorVars.MaxVel_krpm = 0.010;

step4:gMotorVars.RunPositionProfile =1;

then motor start to spin.so what I need is to change the speed of it whenever I like   

for example:

step6:gMotorVars.MaxVel_krpm = 0.200;

then 

step7:step6:gMotorVars.MaxVel_krpm = 0.070;

but sadly the speed  does not change when motor is running motion profile .

would you please tell me what to do?

thanks for attention

Regards.

  • The spinTAC can't support changing this, you can't change the gMotorVars.MaxVel_krpm where the motor is running. Because the position profile is generated according to the gMotorVars.MaxVel_krpm.
  • that is too bad...
    I want my drive to work with pulse and direction (like all of servo drives),so I have to have dynamic speed ,how to do that ?
  • Dear Yanming,
    I want to change feed rate of cnc machine (Speed of servo motor) any time..
    I want to have real solution for my problem.
    question 1: I saw TMDXIDDK379D which is for ServoDrives (for CNC machine,robotics etc..),so do you think it have dynamic speed or any thing like that (pulse and direction)?if so would you please tell me which reference code should I use (I need some thing like Motorware).
    question 2 :I am using F28069M do you have any example code (sort of like proj_lab13b) for ServoDrives applications dynamic speed or any thing like that (pulse and direction)?

    I would be happy if you solve my issue.

    Regards.

    Dave.

  • 1. You could find an example project in the controlSUITE that's an open source project, it's just a motor drive algorithm, you might design yourself motion plan based on your requirement.
    2. We didn't have such an example project to support the requirement you wanted since the profile must be calculated according to the target speed.