Ausgabe von motion.current-vel

More
14 Sep 2016 12:20 #80434 by Tchefter
Hallo Zusammen,
ich spiele der Zeit etwas mit den custom-panel. (meine ersten Versuche)
Ich habe es hinbekommen das sich in Axis, auf der rechten Seite die XYZ Achse anzeigen.
Auch habe ich verschiedene Buttons eingerichtet.
Nun würde ich noch gerne unter den Achsen die Geschwindigkeit anzeigen lassen.
Nach einem Tag googeln, bin ich auf motion.current-vel gestoßen, das denke ich würde auch passen.
Nur wird eben nicht die tatsächliche Geschwindigkeit angezeigt, sondern eine viel kleinere.
Anzeigen lasse ich den Wert in der custom_panel.xml über <number></number>
In der custom_postgui.hal verbinde ich wie folgt:
net remote-mmmin motion.current-vel <=mmmin
Die Ausgabe funktioniert nur eben nicht der Wert.
Bei der axis.ngc müsste z.B. die 400 von Vel: da stehen.
Bin über jede Hilfe dankbar :)
Gruß Fritz
****************************************************************************************************************
Hello everybody,
Playing something with the custom panel. (My first attempts)
I've got it display in Axis, on the right, the XYZ axis.
I have also set up various buttons.
Now I'd still like to Display the Velocity below the axis.
After googling day, I came across motion.current-vel, which I think would fit.
Just not the actual speed is shown, but a much smaller.
Ads I let the value in the custom_panel.xml on <number> </ number>
In the custom_postgui.hal I connect as follows:
net remote mmmin motion.current-vel <= mmmin
The output works, just not the value.
When axis.ngc should as 400 of Vel: standing there.
Am grateful for any help :)
Greetings Fritz

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 12:56 #80436 by Todd Zuercher
The pin "motion.current-vel" is scaled in machine units per second. to display it in units/min you will need to multiply it by 60.

Do you need help with that?
The following user(s) said Thank You: Tchefter

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 13:05 #80438 by tommylight
Hallo Fritz,
Es gibt ein paar beispiele an diese seiten, hoffe das hilft
linuxcnc.org/docs/html/gui/pyvcp.html
linuxcnc.org/docs/2.4/html/hal_pyvcp_examples.html
und das ist die gance uber die Pyvcp
www.linuxcnc.org/docs/html/gui/gladevcp.html
Schau mal an die "spindle" und vie das geht, es zoll sehr einfach sein fur was du brauhst cu bearbeiten.
Gruss,
Tom

P.S.
Hab ich gearde das gefunden, es ist im Deutch und sehr informativ uber Linuxcnc.
The following user(s) said Thank You: Tchefter

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 13:39 #80441 by Tchefter
Hi Todd, hi Tommy,
thanks a lot for the fast reply.
I found all this links, but as a beginner with to much wishes he have :), its hard to understand those.
Well i think, my problem is the scaling / multiplying from sec to min. i know a minute has 60 seconds :)
I also found a Post from BigJohnT an tried this out but still not works.

Well, short written, i don't know the command in the custom_postgui.hal to multiply the seconds.
(Sorry, for my english :) )

Greetings Fritz

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 13:51 - 14 Sep 2016 13:55 #80442 by Todd Zuercher
You would need to use a mult2 hal component to multiply the value by 60
linuxcnc.org/docs/html/man/man9/mult2.9.html
In your post gui hal something like this:
loadrt mult2
addf mult2.0 servo-thread
setp mult2.0.in1 60
net vel-sec <= motion.current-vel => mult2.0.in0 
net vel-min  <= mult2.0.out => pyvcp.mmmin

There is another example at the bottom of the this page.
linuxcnc.org/docs/2.7/html/gui/pyvcp-examples.html
Last edit: 14 Sep 2016 13:55 by Todd Zuercher.
The following user(s) said Thank You: tommylight, Tchefter

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 14:01 #80443 by Tchefter
hi todd, i test it and get this error:

custom_postgui.hal:19: Pin 'mmmin' does not exists

i declared in custom_panel as follows:
<number>
<halpin>"mmmin"</halpin>
<font>('fixed',12)</font>
<format>"4.0f"</format>
<bg>"#FFFFFF"</bg>
</number>

is there an error?

Fritz

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 14:05 #80444 by Tchefter
huaaahhh:) i found the error, forgot the: pyvcp.mmmin...

thank you both very much!!! ;) :cheer: ;)

greetings Fritz

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 16:53 #80447 by Tchefter
Yes, works great! :) Thanks again!

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 17:02 #80448 by tommylight
Nice.
Here are some of mine
Attachments:
The following user(s) said Thank You: Tchefter

Please Log in or Create an account to join the conversation.

More
14 Sep 2016 17:26 #80451 by Tchefter

Nice.
Here are some of mine


Hmm...welll... they are nicer B) Pic4/4 can give a Winter-Challenge for me. :woohoo:

Cool Jobs Tommy B)

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum