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
Output Port als Parameter an Unterprogramm übergeben
Forumsregeln
Bitte beachte die Forumsregeln!
Bitte beachte die Forumsregeln!
-
- Beiträge: 5
- Registriert: 24 Okt 2011, 09:36
Output Port als Parameter an Unterprogramm übergeben
Zuletzt geändert von FrankDescher am 31 Okt 2011, 20:55, insgesamt 1-mal geändert.
Re: Output Port als Parameter an Unterprogramm übergeben
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).
(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
Hallo,
das könnte z.B. so aussehen (Wechselblinker mit Pause) :

Gruß Ulrich Müller
das könnte z.B. so aussehen (Wechselblinker mit Pause) :

Gruß Ulrich Müller