I can't get spindle speed feedback

More
4 years 10 months ago #229897 by Servimet
cmorley

attach multiple configuration files
Thank you

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

More
4 years 10 months ago #229909 by Clive S
Ok 
I see from the ini file that you are using DISPLAY = gmoccapy  ie a different gui to what I use.

So I am sorry I cannot help.
Just for your info the config files that have a .bak ext. do not get used so the ini file that is in use is sabre_1000.ini

I believe that Chris  cmorley is the go to guy for this.
 

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

More
4 years 10 months ago - 4 years 10 months ago #229914 by Michael
This may need to be added to your custom_postgui.hal file since some of the pins may not be there till after the GUI loads.
You need to connect the spindle speed to the GUI pin. You already have this:
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs

and need to add this
net spindle-vel-cmd-rpm-abs => gmoccapy.spindle_feedback_bar

To get the spindle at speed light to work correctly you will need to connect the spindle at speed signal correctly. Currently it is set to always assume the spindle is at speed. You will need to confirm these are the correct pins for your system, don't copy and paste.

# ---Setup spindle at speed signals---

#sets spindle-at-speed true

loadrt near count=1
addf near.0 servo-thread

net spindle-vel-cmd-rpm => near.0.in1
net spindle-fb-rpm-abs-filtered => near.0.in2
net spindle-at-speed <= near.0.out
net spindle-at-speed => gmoccapy.spindle_at_speed_led

setp near.0.scale 1.01
Last edit: 4 years 10 months ago by Michael.

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

More
4 years 10 months ago - 4 years 10 months ago #229919 by Servimet
  Thanks MichaeI,,, i just modify the files you tell me,hal and custon_postgui.hal have the following debug
Last edit: 4 years 10 months ago by Servimet.

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

More
4 years 10 months ago - 4 years 10 months ago #229920 by Servimet
maybe this information on halshow can help.
Last edit: 4 years 10 months ago by Servimet.

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

More
4 years 10 months ago #229923 by Clive S

maybe this information on halshow can help.
Ok another shot
Does the encoder count the correct way.

If not change the scale by putting a negative sign in front of scale

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

Time to create page: 0.106 seconds
Powered by Kunena Forum