Glade Hal Meter Spindle Speed -> postgui

More
14 Oct 2025 15:30 - 14 Oct 2025 18:36 #336426 by DerKlotz
Hello,
iḿ still a beginner with glade and today i wanted to add a Hal Meter in Glade that shows the spindle speed. 
Things i did so far:
- I found out that i minimum require a float signal (maybe that on the picture attached?)
- i created a Hal Meter in Glade -> see attached file

I tried to add the call for gladevcp.Spindel in my machine.ini but didn't realize that Glade starts after the machine.ini

My next step was the postgui.hal
net Spindelrpm =>  gladevcp.Spindel <= spindle.0.speed-out
Error --> custom_postgui.hal:9: Pin 'spindle.0.speed-out' was already linked to signal 'spindle-vel-cmd-rpm'

Yesterday i learned that if a signal is linked i can´t use it.... but from here i don´t know further

Please help
 
Last edit: 14 Oct 2025 18:36 by DerKlotz.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
14 Oct 2025 16:09 #336427 by tommylight
Replied by tommylight on topic Glade Hal Meter Spindle Speed -> postgui
linuxcnc.org/docs/html/gui/gladevcp.html
You can assign names to signal pins and can use those names multiple times.
forum.linuxcnc.org/25-classicladder/5398...ignals-pins-together

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

More
14 Oct 2025 19:13 #336443 by DerKlotz
Replied by DerKlotz on topic Glade Hal Meter Spindle Speed -> postgui
Unfortunately, I'm still stuck, even with the additional link.
My thoughts:
Where can I get the spindle speed (float)? Would that be the value “spindle.0.speed-out,” for example, which can be seen in the attachment?
How do I transfer the float value to gladevcp.Spindel?

My favorite code doesn't work. 
net Spindelrpm =>  gladevcp.Spindel <= spindle.0.speed-out
Error "custom_postgui.hal:9: Pin 'spindle.0.speed-out' was already linked to signal 'spindle.0.speed-out'"
 

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

More
15 Oct 2025 05:10 #336474 by Aciera
Replied by Aciera on topic Glade Hal Meter Spindle Speed -> postgui
try changing
net Spindelrpm =>  gladevcp.Spindel <= spindle.0.speed-out

to
net Spindelrpm =>  gladevcp.Spindel 

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

More
15 Oct 2025 08:13 #336478 by DerKlotz
Replied by DerKlotz on topic Glade Hal Meter Spindle Speed -> postgui
net Spindelrpm => gladevcp.Spindel
Got that... i just created the signal.name Spindel.rpm which is linked to gladevcp.Spindel.
There is still my problem where to get the float.out(?) from and link it to Spindel.rpm. My "favorite" spindle.0.speed-out is already linked -> Error "custom_postgui.hal:9: Pin 'spindle.0.speed-out' was already linked to signal 'spindle.0.speed-out'"

Sorry... German beginner

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

More
15 Oct 2025 11:26 #336495 by cmorley
Replied by cmorley on topic Glade Hal Meter Spindle Speed -> postgui
An output pin can only be connected to one signal, but a signal can be connected to many input pins.

You didn;t post your postgui file so can't see the actual problem to comment more.

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

More
15 Oct 2025 11:47 #336497 by JT
In your hal file you have
net spindle-vel-cmd-rpm        <=  spindle.0.speed-out

So the signal spindle-vel-cmd-rpm can be connected to your rpm meter or you can comment out the line that pncconf made.

JT

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

More
15 Oct 2025 12:18 #336498 by Aciera
Replied by Aciera on topic Glade Hal Meter Spindle Speed -> postgui
Difficult without seeing all your hal files so we really don't know what halpins is connected to what signal name but this:

nked -> Error "custom_postgui.hal:9: Pin 'spindle.0.speed-out' was already linked to signal 'spindle.0.speed-out'"


tells you that you have a line somewhere like this:
net spindle.0.speed-out .... spindle.0.speed-out ...
this will create a SIGNAL named 'spindle.0.speed-out ' to which you have connected the HALPIN named 'spindle.0.speed-out'

So you would need to change this:
net Spindelrpm =>  gladevcp.Spindel 
to this
net spindle.0.speed-out =>  gladevcp.Spindel 


Note though that using halpin names for signal names is likely to create confusion.

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

Moderators: HansU
Time to create page: 0.141 seconds
Powered by Kunena Forum