cancel
Showing results for 
Search instead for 
Did you mean: 

MCWB 5.4.3 Encoder Position Problem

LSHEN.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4
Laurent Ca...
Lead II

Dear LSHEN.1

Do you have still this problem to solve?

Best regards

Laurent Ca...

LSHEN.1
Associate II

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

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.

Problems solved