PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Encoderauswertung mit C-Control M2.0 über interrupt > 1kh



Amiwerewolf
11.05.2007, 23:25
Hallo,
ich versuche einen encoder eines motors auszuwerten.
es funktioniert recht gut über den interrupt,
aber ab ca. 1khz kommt er mit dem zählen nicht mehr mit!
hat jemand eine idee! CW und CCW sollen berücksichtigt werden!

danke

Drifter2006
13.05.2007, 16:26
Hello,
Could you not use FREQ1 and FREQ2 to count the motor rotations?
FREQ1 and FREQ2 can be configured to work as high to low active counters.
Maybe this will work for signals above 1kHz.
Greetings,
Drifter2006

Amiwerewolf
13.05.2007, 16:58
hello,
yes sure, but how can i detect the rotation direction?
with the interrupt ports its's easy

Drifter2006
13.05.2007, 17:53
Hello,
Is your c-control only being used to monitor the motor or is it also being used to control the motor?

If the C-Control is being used to control the motor then the motor direction could be set in the software and motor direction detection does not have to be used if you know what I mean.

If the C-Control is only being used to monitor the motor and not used to directly control the motor then I don’t have a solution for this.

Greetings,
Drifter2006

P.S. Ja klar, Honda was sonst ;-)

Amiwerewolf
13.05.2007, 18:13
the the apication is to positioning a carriage.
the counts of the glass yardstick are small
100µ Pitches, 5 counts per millimeter
and if you shift the carriage by hand
the c-control have no signal for dirrection

Drifter2006
13.05.2007, 18:57
Hello,
Because the C-Control is slow you may need an electronic solution for your problem.
I can’t think of a solution but you could try posting a message here -> https://www.roboternetz.de/phpBB2/viewforum.php?f=10
Greetings,
Drifter2006