Drehrichtung Motor mit TX Controler abfragen

Hier habt Ihr die Möglichkeit direkt mit dem fischertechnik Team in Kontakt zu treten
Here you have the Possibility to get in direct contact with the fischertechnik-Team

Moderator: fischertechnik Mitarbeiter

Forumsregeln
Bitte beachte die Forumsregeln!

In dieser Unterkategorie können nur fischertechnik-Mitarbeiter und Moderatoren antworten!
Gesperrt
andi1965
Beiträge: 32
Registriert: 02 Jun 2014, 09:06
Wohnort: 77749 Hohberg

Drehrichtung Motor mit TX Controler abfragen

Beitrag von andi1965 » 05 Dez 2014, 09:24

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

Benutzeravatar
Dirk Haizmann ft
fischertechnik Mitarbeiter
Beiträge: 1126
Registriert: 09 Nov 2010, 08:48

Re: Drehrichtung Motor mit TX Controler abfragen

Beitrag von Dirk Haizmann ft » 05 Dez 2014, 17:33

????

@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

vleeuwen
Beiträge: 1564
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: Drehrichtung Motor mit TX Controler abfragen

Beitrag von vleeuwen » 05 Dez 2014, 21:37

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

andi1965
Beiträge: 32
Registriert: 02 Jun 2014, 09:06
Wohnort: 77749 Hohberg

Re: Drehrichtung Motor mit TX Controler abfragen

Beitrag von andi1965 » 06 Dez 2014, 09:04

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#

Benutzeravatar
Dirk Haizmann ft
fischertechnik Mitarbeiter
Beiträge: 1126
Registriert: 09 Nov 2010, 08:48

Re: Drehrichtung Motor mit TX Controler abfragen

Beitrag von Dirk Haizmann ft » 18 Dez 2014, 15:07

.. na dann ist das Thema ja auch geklärt.

ft

Gesperrt