Seite 1 von 1

Drehrichtung Motor mit TX Controler abfragen

Verfasst: 05 Dez 2014, 09:24
von andi1965
Hallo,
ich muss für ein Programm die Drehrichtung der Encodermotoren abfragen.
Beim Paralellinterface mit LLwin ging das mit E31-E38

Aber wie kann ich das mit dem TX Controler umsetzen?
Nachricht gerne auch an kdu@gmx.de

Gruß Andreas

Re: Drehrichtung Motor mit TX Controler abfragen

Verfasst: 05 Dez 2014, 17:33
von Dirk Haizmann ft
????

@Andreas
Der aktuelle ft-Encodermotor ist kein Quardratur-Encoder. Damit ist es schwierig die Drehrichtung abzufragen.

Schick uns doch einfach mal dein Programm an info@fischertechnik.de

ft

Re: Drehrichtung Motor mit TX Controler abfragen

Verfasst: 05 Dez 2014, 21:37
von vleeuwen
You need to memories the actual direction of an actuator (motor) in a variable.
This is the state of the full bridge motor output.
Also in the API there is no method available to retrieve state information of the actuators.

An Quardratur-Encoder will give only information about the last sense of rotation.
This can difference from the direction.

Example:
Image a motor with less power and direction CW, which is turning into the opposite direction because of the load.
In this case the direction (CW) (of the full bridge power supply) difference from the real sense of rotation (CCW).

You will see this issue back with steppers: a stepper control has very often a Ihold and an Irun.
The Ihold has as function to maintain the position of the actuator when it is under load.
A stepper without Ihold can turn freely.
For this reason you will see in the FtTxService (MS-RDS drivers for the TX-C) a more complex definition of an motor.

Maintaining a position in robot application/models is very often an underestimated problem.
For this reason I always hope that at least a software implementation of a rotary-encoder or Quardratur-Encoder will be added to the TX-C and TXT.
This will cost two Fast Counter inputs for one encoder.
Creating/buying the sensor himself it not too difficult however without the software implementation these encoder systems could even not used.
See also:
http://forum.ftcommunity.de/viewtopic.php?f=15&t=2599

Re: Drehrichtung Motor mit TX Controler abfragen

Verfasst: 06 Dez 2014, 09:04
von andi1965
Hallo,
ich bin über einen Trick zu einem Lösungsansatz gekommen:
Ich leite den Motorausgang auf einen Analogeingang mit 10V.
Beim Rechtsdreh ist der Wert am Analogeingang ca. 8100 und beim Linksdreh ca. 300. Bei Stop ca. 110

Nun kann ich im Programm den Analogeingang abfragen und Rückschluss auf die Drehrichtung erhalten.

Gruß Andreashttp://forum.ftcommunity.de/posting.php?mode=reply&f=21&t=2639#

Re: Drehrichtung Motor mit TX Controler abfragen

Verfasst: 18 Dez 2014, 15:07
von Dirk Haizmann ft
.. na dann ist das Thema ja auch geklärt.

ft