Power Electronics Development Center

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use uadrature encoder dx model to get absolute postion

Hey everyone

Im using the quadrature encoder dx model given by NI examples to calculate my motor speed and posion. The way I used it is just same as in the example except that my encoder has different number of pulses each revolution. Now  I have a problem is that this model I used everytime I stop my prgram and run it again the postion resart from 0 or from +-1/(CPR*4). However I need to know the absulote postion of my rotor to algin my rotor with stator. Any one knows how I can do this?

encoder.png

after some testing i feel like in the RIO quadrature core model there is a logic that making the postion reset only occurs when the first Z pulse comes in. I assume if  I changed that to making the reset occurs every time the Z comes in, then making the Z signal as my reference 0 postion , this way i can get my rotor postion regaring to my 0 postion.

I hope someone can disscuss it with me

Thank you very much

Looking forward reply

0 Kudos
Message 1 of 1
(2,980 Views)