CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

qei motion control

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ertansuluagac



Joined: 13 Jul 2017
Posts: 135
Location: IZMIR

View user's profile Send private message Send e-mail

qei motion control
PostPosted: Tue Apr 30, 2019 12:31 am     Reply with quote

How do I reset the position in qei? Does anyone know the Commune?
_________________
Es
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Tue Apr 30, 2019 1:29 am     Reply with quote

qei_set_count

If you are using the index, then if this is to 'zero' the qei completely, the
the index_count will also need to be reset.
ertansuluagac



Joined: 13 Jul 2017
Posts: 135
Location: IZMIR

View user's profile Send private message Send e-mail

PostPosted: Tue Apr 30, 2019 1:42 am     Reply with quote

how so;
qei_get_count (0);
will I write this?
_________________
Es
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Tue Apr 30, 2019 2:11 am     Reply with quote

qei_get_count(0), returns the current count from qei module 0.

qei_set_count, allows you to _set_ the count on a qei module.

So:

qei_set_count(0,0);

Will set module 0, to a zero count.

So if you did:

qei_set_count(0,0);
val=qei_get_count(0);

Bar any fast pulses coming in between the two instructions, you should
find you get back a count of '0'.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group