Submitted by murthyakella on Fri, 05/04/2012 - 16:58
Hi,
I am not getting correct results using 'eQEP' and 'QEP Speed Calculator' blocks.
Firstly, I am not to able to obtain the 'QE (electrical angle theta)' viz. the input of 'QEP Speed Calculator' from 'QPosCnt' output of the 'eQEP' block. To do, I tried using the example block 'encoder to electrical angle' from the example 'pmsm32sim.vsm' which is located under 'Embedded-->Examples-->Digital Motor Control--> PMSM'. However, during the simulation, I get conversion error/warnings. And during the debug mode, I get 'theta' value always as zero.
Could anyone tell me where I am making the mistake? I am including the encoder diagram along with its implementation in a motor control. Note that QPSCNT does work. Also change in QPoscnt of my encoder for one revolution is 256.
Finally, I have a quick question about low pass cut-off frequency uses for 'QEP Speed Calculator' block. What are the guidelines in chosing this value (or is it just by trail-and-error)? How do I define this parameter such that I get correct values for all posible speeds?
I appreciate any help with this. Thanks in advance.
Regards, Murthy
Unable to find an attachment - read this blog