Seite 1 von 1

Output Port als Parameter an Unterprogramm übergeben

Verfasst: 31 Okt 2011, 15:09
von FrankDescher
Hallo,

ich habe mich in Robo Pro eingearbeitet und habe folgendes Problem, für das ich noch keine Lösung gefunden habe:

Gibt es eine Möglichkeit einen Ausgang (O1 - O8) als Parameter zu übergeben? Also z.B. ein Unterprogramm, das als Parameter <Lampe> und <Intensitaet> bekommt, und dann beim entsprechenden Ausgang 1 - 8 diese Intensitaet einstellt.

Außer 8 Abfragen Wenn Lampe=1 -> Output1, wenn Lampe=2 ->Output2, ... ist mir leider nicht eingefallen.

Viele Grüße,

Frank

Re: Output Port als Parameter an Unterprogramm übergeben

Verfasst: 31 Okt 2011, 16:43
von vleeuwen
By my knowledge it is not possible to query directly the state of the outputs in RoboPro.
(This is an old discussion from some years ago.)
However in RoboPro you are able to add variables, for example: StateOutput1.
With this variable your are able to keep track of the actual state of O1
Every time that you change the state of O1 in your program, you need also to update the StateOutput1 manually.
Although the state information is present in the Transfer Area, RoboPRo is not able to make this information accessible for the programmer.


In MS-RDS with the FtxxServices it is possible to query the state of the outputs.
It is not only possible to query the state but also to change relatively this state, for example: IncreaseOutputLevel, Decrease OutputLevel, ChangeDirection (of a motor).

Re: Output Port als Parameter an Unterprogramm übergeben

Verfasst: 31 Okt 2011, 17:49
von UMueller
Hallo,

das könnte z.B. so aussehen (Wechselblinker mit Pause) :

Bild

Gruß Ulrich Müller