Skip to main content
LSHEN.1
Associate
August 24, 2020
Solved

MCWB 5.4.3 Encoder Position Problem

  • August 24, 2020
  • 2 replies
  • 1408 views

I use 2048 PPR encoder for speed control. It work well.

But if I change the motor mode from speed to position control,something goes wrong.

If we select Z signal for shaft zero alignment,the code after reset below

MC_StartMotor1();

while (MC_GetAlignmentStatusMotor1() !=TC_ALIGNMENT_COMPLETED);

it will get the motor speed to max

Anyone knows the reason why.

Thanks0693W000003Q5fcQAC.jpg

Best answer by msingh

I had a similar issue today, I assume you are trying to use the "follow mode" setting the duration to 0. If this is the case, most probably you are requesting a big change in position inside a while(1) loop which basically updates the new position at the cycle rate of the processor. Solution: decrease the position to 1/1000 or even more depending on the speed you need.

2 replies

Laurent Ca...
Senior III
September 14, 2020

Dear LSHEN.1

Do you have still this problem to solve?

Best regards

Laurent Ca...

LSHEN.1
LSHEN.1Author
Associate
May 30, 2024

Problems solved

 

LSHEN.1
LSHEN.1Author
Associate
September 14, 2020

Dear Laurent:

We found the problem on Motor Workbench V5.4.3 and V5.4.4 .

And the problem still un-solve. It seems the torque command is

a little bit too large to start up the motor.

Best Regards,

Lin Shen Mao

msingh
msinghBest answer
Senior
September 16, 2020

I had a similar issue today, I assume you are trying to use the "follow mode" setting the duration to 0. If this is the case, most probably you are requesting a big change in position inside a while(1) loop which basically updates the new position at the cycle rate of the processor. Solution: decrease the position to 1/1000 or even more depending on the speed you need.