Seite 1 von 1

Problem beim Programmieren!!!

Verfasst: 20 Jan 2011, 19:12
von tobs9578
Hallo!
Ich baue derzeit an meinem Plotter wieder weiter und habe mich entschlossen 2 verschiedene Namen einzugeben die er drucken soll.Dieser soll jeweils mit einem Taster ausgewählt werden.Ich möchte aber,das wenn ich einen Namen ausgewält habe der andere Taster gesperrt wird bis das Programm fertig ist und dann erst wieder beide freischaltet.Um so die Verwirrung zu verhindern ( Beide Taster gleichzeitig oder kurz hintereinander= Was soll ich drucken???).

So jetzt die Preisfrage:
Wie kann ich das mit Robo Pro programmieren???
Sitze jetz schon einige Stunden hier und komme auf keine Lösung

Wäre net wenn mir jemand diese Frage beantworten könnte. :D

Ps.: Viel Spaß beim knobeln.

Re: Problem beim Programmieren!!!

Verfasst: 20 Jan 2011, 19:42
von vleeuwen
If I understand your problem well, you ask how to bye pass a "taster" if the state of an other part of your program was changed.


Suggestion:
Bild

Define a Variable with the name "Sper". This represents that state.
and a Branch element (Y=0?) with the Taster in the "Y" of the two outgoing workflow continuations (outputs).

Initialize "Sper" with an assign command element to 0.

As long as "Sper"=0, the workflow will pass through the "taster".
When "einen Namen ausgewält ist" you program must set the variable "Sper" with an assign command element to 1.

When the workflow pass the Branch element, it will continue via the other exit.

How the continuations of the workflow are used in your program is up to you.

Re: Problem beim Programmieren!!!

Verfasst: 20 Jan 2011, 21:01
von tobs9578
Hello!
Thank you for the programm.I have understand your desciption.
I think that the programm is very complicated.
I would like to say thank you on this way.

Your sincerley

tobs9578

Hallo!
Danke für Programm.Ich habe ihre Beschreibung verstanden.
Ich finde, dass das Programm sehr kompliziert ist.
Ich möchte Ihnen auf diesem Weg gerne danken.

Re: Problem beim Programmieren!!!

Verfasst: 20 Jan 2011, 21:49
von Ad2
Hi Tobs,

I don't know if it does what you want it to do but in comparison to your plot program it is not complicated.

Ad

Re: Problem beim Programmieren!!!

Verfasst: 20 Jan 2011, 21:54
von tobs9578
Hello Ad!
I have programmed it.
But it does not work, like that what i would.
I must look again and try to program a new programm.
If you have some tips for me,let me hear it.

Your Sincerley

tobs9578

Re: Problem beim Programmieren!!!

Verfasst: 20 Jan 2011, 22:26
von vleeuwen
I changed the example a little bit.
Less complicated.

Re: Problem beim Programmieren!!!

Verfasst: 21 Jan 2011, 01:27
von han
Hello tobs9578,

If I understood your problem well, this may be a solution for you:

Bild

The gray blocks represent of course your parts of the program to print different names.

Regards, Han