Autom. Zähler Reset
Forumsregeln
Bitte beachte die Forumsregeln!
Bitte beachte die Forumsregeln!
Autom. Zähler Reset
Hallo,
wie kann ich einen oder mehere Zählereingänge (C1-C4) im Robo Pro Programm automatisch zurücksetzen.
wie kann ich einen oder mehere Zählereingänge (C1-C4) im Robo Pro Programm automatisch zurücksetzen.
Re: Autom. Zähler Reset
Hallo simmi,
du bringst das "Zähleergenis" des Motors in eine Variable und setzt dann die Variable mit einem "="- Befehl gleich. Den "="- Befehl setzt du dann auf Null und schon müsste dann dein "Zählergenis" auf Null stehen.
Ich hoffe, ich konnte dir helfen
du bringst das "Zähleergenis" des Motors in eine Variable und setzt dann die Variable mit einem "="- Befehl gleich. Den "="- Befehl setzt du dann auf Null und schon müsste dann dein "Zählergenis" auf Null stehen.
Ich hoffe, ich konnte dir helfen
Re: Autom. Zähler Reset
Use a "command" and select as command "reset" and send this command to the encoder motor control.
Ich noch einmal. Zähler Reset
Hallo, danke erst mal an Endlich und vleeuwen für die schnelle Antwort, aber es geht noch nicht. Ich benutze den Encoderausgang als C1Digital der den Zähler C1 hochzählt, kann man ja im Interface-Fenster sehen. Diesen Zählwert möchte ich im Programm auf Null setzen wenn ein kompletter Zyklus zu Ende ist. Im Interfacefenster kann ich ihn mit der Resettaste zurücksetzen, was ich aber wenn es geht automatisch machen möchte. Momentan wird er nur nach Abschalten des Robo TX Controller auf Null gesetzt.
Zuletzt geändert von Gast am 16 Feb 2011, 19:05, insgesamt 1-mal geändert.
Grund: Thema zusammengeführt
Grund: Thema zusammengeführt
Re: Autom. Zähler Reset
The functionality that you try to obtain is not clear to me.
Can you publish a image of the workflow?
If you took a look into the API/TA decription you will see (chapter 7.5 TA_OUTPUT) that there is only one byte involved for resetting a counter (cnt_reset[]).
The reset command is using these bytes.
However in case the input frequency of the counter pulses in higher than +/- 50 hz, the fast counters are out of the (semi) real time range of the interface. The counter is acting as a fast counter.
In that case it is possible that you don't see the 0 (null is not the right idication because that means not defined).
Advice: test your program with a counter input frequncy much lower than 50Hz.
50Hz is the maximum (semi) real time counter frequency under condition that the sample rate is 10 ms (USB and not BT) and the count puls is 100% symetrical. 100% symetrical is not the case with a puls switch.
For BT a rule of the thumd is a refresh rate of 20-40 ms => a max counter frequency 25 to 10 Hz.
Can you publish a image of the workflow?
If you took a look into the API/TA decription you will see (chapter 7.5 TA_OUTPUT) that there is only one byte involved for resetting a counter (cnt_reset[]).
The reset command is using these bytes.
However in case the input frequency of the counter pulses in higher than +/- 50 hz, the fast counters are out of the (semi) real time range of the interface. The counter is acting as a fast counter.
In that case it is possible that you don't see the 0 (null is not the right idication because that means not defined).
Advice: test your program with a counter input frequncy much lower than 50Hz.
50Hz is the maximum (semi) real time counter frequency under condition that the sample rate is 10 ms (USB and not BT) and the count puls is 100% symetrical. 100% symetrical is not the case with a puls switch.
For BT a rule of the thumd is a refresh rate of 20-40 ms => a max counter frequency 25 to 10 Hz.
Zuletzt geändert von vleeuwen am 21 Feb 2011, 11:07, insgesamt 1-mal geändert.
Re: Autom. Zähler Reset
Es gibt einen Allgemeinen Resetbefehl den du an alle Zähler senden kannst
Heute bauen wir Roboter... und was in 20 Jahren?!
Re: Autom. Zähler Reset
Hallo Kai P,
und wie und wo wird er hereingeschrieben ??
und wie und wo wird er hereingeschrieben ??
Re: Autom. Zähler Reset
There is one API function available for manipulating the Transfer Area (7.5 cnt_reset):
This functionis obsolate because since RoboPro beta 3.04 the FtMscLib has been changed, no documentaion available yet.
function 3.6 SetOutCounterReset
However with this function you can only reset one of the 4 counters.
In RoboPro you have the Reset Command element
You could create your own function that reset the whole BOOL8 cnt_reset[N_CNT} (boolean array)
This functionis obsolate because since RoboPro beta 3.04 the FtMscLib has been changed, no documentaion available yet.
function 3.6 SetOutCounterReset
However with this function you can only reset one of the 4 counters.
In RoboPro you have the Reset Command element
You could create your own function that reset the whole BOOL8 cnt_reset[N_CNT} (boolean array)
Re: Autom. Zähler Reset
Hallo,
Mini-Motor an M2 mit Impulstaster an C2.
Alle 5 sec wird der zugehörende Counter (heißt hier C2Z) zurückgesetzt.
Der Counterstand wird laufend in Var angezeigt.
Gruß Ulrich Müller
Nachtrag : http://www.ftcomputing.de/robodreh.htm unten eine Variante zur Drehzahlmessung mit dem Counter.
Mini-Motor an M2 mit Impulstaster an C2.
Alle 5 sec wird der zugehörende Counter (heißt hier C2Z) zurückgesetzt.
Der Counterstand wird laufend in Var angezeigt.
Gruß Ulrich Müller
Nachtrag : http://www.ftcomputing.de/robodreh.htm unten eine Variante zur Drehzahlmessung mit dem Counter.