Glade Hal Meter Spindle Speed -> postgui

  • DerKlotz
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 2 weeks ago - 1 year 2 weeks ago #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: 1 year 2 weeks ago by DerKlotz.

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

More
1 year 2 weeks ago #336427 by tommylight

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

  • DerKlotz
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
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. 
Code:
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
1 year 2 weeks ago #336474 by Aciera
Replied by Aciera on topic Glade Hal Meter Spindle Speed -> postgui
try changing
Code:
net Spindelrpm => gladevcp.Spindel <= spindle.0.speed-out

to
Code:
net Spindelrpm => gladevcp.Spindel

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

  • DerKlotz
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
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

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

More
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.

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

More
1 year 2 weeks ago #336497 by JT
In your hal file you have
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 or Create an account to join the conversation.

More
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:

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 ...
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:
Code:
net Spindelrpm => gladevcp.Spindel
to this
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 or Create an account to join the conversation.

  • DerKlotz
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 2 weeks ago - 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.
Last edit: 1 year 2 weeks ago by DerKlotz.

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

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