- Posts: 104
- Thank you received: 0
Glade Hal Meter Spindle Speed -> postgui
1 year 2 weeks ago #336426
by DerKlotz
Glade Hal Meter Spindle Speed -> postgui was created 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
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
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
1 year 2 weeks ago #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
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 to join the conversation.
1 year 2 weeks ago #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.
Error "custom_postgui.hal:9: Pin 'spindle.0.speed-out' was already linked to signal 'spindle.0.speed-out'"
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.
Code:
net Spindelrpm => gladevcp.Spindel <= spindle.0.speed-out
Please Log in to join the conversation.
1 year 2 weeks ago #336474
by Aciera
Replied by Aciera on topic Glade Hal Meter Spindle Speed -> postgui
try changing
to
Code:
net Spindelrpm => gladevcp.Spindel <= spindle.0.speed-out
to
Code:
net Spindelrpm => gladevcp.Spindel
Please Log in to join the conversation.
1 year 2 weeks ago #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
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 to join the conversation.
1 year 2 weeks ago #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.
You didn;t post your postgui file so can't see the actual problem to comment more.
Please Log in to join the conversation.
1 year 2 weeks ago #336497
by JT
Replied by JT on topic Glade Hal Meter Spindle Speed -> postgui
In your hal file you have
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
Code:
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 to join the conversation.
1 year 2 weeks ago #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:
tells you that you have a line somewhere like this:
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:
to this
Note though that using halpin names for signal names is likely to create confusion.
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:
Code:
net spindle.0.speed-out .... spindle.0.speed-out ...
So you would need to change this:
Code:
net Spindelrpm => gladevcp.Spindel
Code:
net spindle.0.speed-out => gladevcp.Spindel
Note though that using halpin names for signal names is likely to create confusion.
Please Log in to join the conversation.
1 year 2 weeks ago #336544
by DerKlotz
Replied by DerKlotz on topic Glade Hal Meter Spindle Speed -> postgui
Thatś it. Thanks
My custum_postgui.hat is now correct
#[Spindel]
net spindle-vel-cmd-rpm => gladevcp.Spindel1
I guess i really have some problems with reading signals in the machine.hal. I thought in my case "spindle.0.speed-out" give me directly my float value. Have to write a small manual for me.
My custum_postgui.hat is now correct
#[Spindel]
net spindle-vel-cmd-rpm => gladevcp.Spindel1
I guess i really have some problems with reading signals in the machine.hal. I thought in my case "spindle.0.speed-out" give me directly my float value. Have to write a small manual for me.
Please Log in to join the conversation.
Time to create page: 0.160 seconds
