Seite 1 von 1

Robo Programme mit Online-Connection steuern

Verfasst: 20 Mai 2011, 12:27
von samtin
Hallo

Ich möchte ein grösseres Regal(Ablage)-System bauen, das ich im Rahmen meines PuzzelRoboter-Projektes verwenden kann. D.h ich brauche viele Positionen zum Ablegen (~500-1000)
Die Ansteuerung erfólgt über die PC-Applikation (vermutlich JAVA).
Nun kann ich alles aus Java heraus ansteuern. D.h Ich weiß welche Position ich anfahren möchte und kann die gesamte Steuerung im PC programmieren. Soweit, sogut.

Aber wenn ich die ganze Bewegungssteuerung durch das Robo-Interface ausführen lassen möchte, kann ich ja das Programm vorher in das Interface laden. Wo ich jetzt mein Denkproblem habe ist: wie kann ich mit meiner JAVA-Online-Applikation einem im Interface laufenden Programm PArameter (Positionen) übergeben?
All die lib's können Motor ein/aus, Interface abfragen. Aber wie kann ich einen Parameter an ein laufendes (Unter)Programm übergeben.

Herzlichen Dank für jede Info
Martin

Re: Robo Programme mit Online-Connection steuern

Verfasst: 20 Mai 2011, 12:51
von Ad2
Das geht eigentlich nur mit messages. Für das RoboInterface gibt es keine Probleme aber für das TX ist die .h Datei zu ftmsclib.dll noch nicht freigegeben.

Re: Robo Programme mit Online-Connection steuern

Verfasst: 20 Mai 2011, 14:08
von UMueller
Hallo,

vielleicht hilft auch ein C++ / Renesas C Beispiel weiter :
http://www.ftcomputing.de/robofunk.htm. Hier wird ein Explorer-Modell in dessen Robo Interface ein einfaches Betriebsprogramm läuft (Renesas C) über ein zweites zweites Robo Interface, das über das R/F Datalink betrieben wird, über Taster am zweiten Robo Interface gesteuert (C++ Programm).

allerdings sehe ich nicht so recht ein, wozu das ganze in Deinem Fall gut sein soll. Dein Modell ist doch statisch und könnte direkt an USB angeschlossen werden. Das eigentliche Betriebsprogramm für den Robot kann dann auch im PC laufen.

Bei Funkbetrieb ist in jedem Fall ein RF Datalink erforderlich, das kompliziert die Sache in meinen Augen.

Gruß Ulrich Müller

PS : Beispiel für die Steuerung des Hochregallagers http://www.ftcomputing.de/hochregal.htm

Re: Robo Programme mit Online-Connection steuern

Verfasst: 20 Mai 2011, 15:45
von vleeuwen
There are more possibilities to communicate between a PC and an Robo Interface in the offline mode.
(Offline mode = A program that has been downloaded on the Robo Interface)

1)
Using the RS232 connection and the Radio Call (messages).
The downloaded program on the Robo Interface can be developed in RoBoPro.
On the PC (or microcontroller) you will need a program that is able to read and send the Radio Call messages over RS232.

There are some major advantages:
-) On the Robo Interface you are able to use in RoboPro developed program.
-) Every device that has a RS232 port is usable. (Windows, LINUX, microcontrollers).
This is also a nice way to connect the Robo Interface with a microcontroller base web server.
For this direct approach you don't need a second interface.

There exist also small RS232 to internet (wired or WIFI) converters.
So this option is offering a lot of possibilities.

2)
In the FtLib API are 2 functions that can be used for data exchange with a program that is running in the offline mode.
function 4.4.8 GetFtMemoryData and 4.4.9 WriteFtMemoryData.
However to use this you need to write a downloadable program in C.
But you are able to make use of the PC-RoboInterface connection over RF.
RoboPro does not offer support for this functionality.
These two function makes it possible to create your personal Transfer Area and is also very powerful.

For this approach you don't need a second interface.


Remarks:
These two functions are regrettably missing in the FtMscLib.
Despite of some complaines about it , the FtMscLib is still not upwards compatible with the FtLib concerning this functionality.

3)
For the TX-C in the near futur:
Using the I2C connectivity.
Althought this will be limited one BYTE or one WORD of data, it will be a alternative for the BT-messages.
At the PC side your only need a USB to I2C-slave converter.
On the Robo Interface you are able to use in RoboPro developed program.

Re: Robo Programme mit Online-Connection steuern

Verfasst: 20 Mai 2011, 16:36
von UMueller
Hallo, @vleeuwen,

natürlich braucht man zum Betrieb des Hochregallagers bestenfalls EIN Robo Interface.
Das angeführte Beispiel demonstriert den Einsatz eines zweiten - mobobilen - Interfaces als Fernbedienung

Gruß Ulrich Müller

Re: Robo Programme mit Online-Connection steuern

Verfasst: 20 Mai 2011, 21:42
von vleeuwen
That why I wrote "more possibilities".