spindle encoder question gmoccapy/Orac/7i96 ***Solved***
21 Jun 2021 18:59 #212582
by Boris
Replied by Boris on topic Another spindle encoder question Orac/7i96
This one came back blank so I'm guessing this is the issue you were working towards.
cnclathe@CNCLathe:~$ halcmd show pin spindle-vel-fb-rps
Component Pins:
Owner Type Dir Value Name
cnclathe@CNCLathe:~$ halcmd show pin spindle-vel-fb-rps
Component Pins:
Owner Type Dir Value Name
Please Log in or Create an account to join the conversation.
21 Jun 2021 19:27 #212583
by PCW
Replied by PCW on topic Another spindle encoder question Orac/7i96
sorry
halcmd show signal spindle-vel-fb-rps
halcmd show signal spindle-vel-fb-rps
Please Log in or Create an account to join the conversation.
21 Jun 2021 19:40 #212585
by Boris
Replied by Boris on topic Another spindle encoder question Orac/7i96
Attachments:
Please Log in or Create an account to join the conversation.
21 Jun 2021 19:41 #212586
by Boris
Replied by Boris on topic Another spindle encoder question Orac/7i96
cnclathe@CNCLathe:~$ halcmd show signal spindle-vel-fb-rps
Signals:
Type Value Name (linked to)
float 0 spindle-vel-fb-rps
<== hm2_7i96.0.encoder.00.velocity
==> scale.spindle.in
==> spindle.0.speed-in
the file in the reply above is the same, just in the terminal format
Signals:
Type Value Name (linked to)
float 0 spindle-vel-fb-rps
<== hm2_7i96.0.encoder.00.velocity
==> scale.spindle.in
==> spindle.0.speed-in
the file in the reply above is the same, just in the terminal format
Please Log in or Create an account to join the conversation.
21 Jun 2021 19:54 #212588
by PCW
Replied by PCW on topic Another spindle encoder question Orac/7i96
So does halshow have reasonable values for hm2_7i96.0.encoder.00.velocity
(that should be spindle speed in RPS)
(that should be spindle speed in RPS)
Please Log in or Create an account to join the conversation.
21 Jun 2021 20:16 #212591
by Boris
Replied by Boris on topic Another spindle encoder question Orac/7i96
Yes both the following values appear to be correct.
hm2_7i96.0.encoder.00.velocity
hm2_7i96.0.encoder.00.velocity-rpm
I tried to update the custom.hal file with the following;
net spindle-rpm gmoccapy.spindle_feedback_bar
net spindle-at-speed gmoccapy.spindle_at_speed_led
but it has created the attached error message.
I've attached the custom.hal file and the error message. Have I missed anything there perhaps (I've literally only just tried this)
hm2_7i96.0.encoder.00.velocity
hm2_7i96.0.encoder.00.velocity-rpm
I tried to update the custom.hal file with the following;
net spindle-rpm gmoccapy.spindle_feedback_bar
net spindle-at-speed gmoccapy.spindle_at_speed_led
but it has created the attached error message.
I've attached the custom.hal file and the error message. Have I missed anything there perhaps (I've literally only just tried this)
Please Log in or Create an account to join the conversation.
21 Jun 2021 20:59 - 21 Jun 2021 21:02 #212596
by PCW
Replied by PCW on topic Another spindle encoder question Orac/7i96
I think that needs to be in the post GUI hal file
(because gmoccapy's pins wont be present when the main hal file is parsed)
Also its likely you want:
net spindle-rpm gmoccapy.spindle_feedback_bar spindle-fb-rpm-abs-filtered
Since this has been made absolute, scaled to RPM, and filtered
(because gmoccapy's pins wont be present when the main hal file is parsed)
Also its likely you want:
net spindle-rpm gmoccapy.spindle_feedback_bar spindle-fb-rpm-abs-filtered
Since this has been made absolute, scaled to RPM, and filtered
Last edit: 21 Jun 2021 21:02 by PCW.
Please Log in or Create an account to join the conversation.
22 Jun 2021 19:29 #212694
by Boris
Replied by Boris on topic Another spindle encoder question Orac/7i96
Thank you for your perseverance with this!!!
So I now understand why it needs to be in a postgui hal file. I tried your pin but got a failure message on startup. I have updated the postgui hal file and gmoccapy now starts which is progress. The spindle feedback bar doesn't work and the spindle at speed led is lit permanently (incorrect). This is backed up in halshow.
I have attached the relevant ini and hal files. Also a screenshot showing the pins in case someone can see an issue i can't.
So I now understand why it needs to be in a postgui hal file. I tried your pin but got a failure message on startup. I have updated the postgui hal file and gmoccapy now starts which is progress. The spindle feedback bar doesn't work and the spindle at speed led is lit permanently (incorrect). This is backed up in halshow.
I have attached the relevant ini and hal files. Also a screenshot showing the pins in case someone can see an issue i can't.
Please Log in or Create an account to join the conversation.
22 Jun 2021 20:29 #212698
by PCW
Replied by PCW on topic Another spindle encoder question Orac/7i96
net spindle-speed-fb <= gmoccapy.spindle_feedback_bar
The signal spindle-speed-fb is not connected to anything
As a start , I would connect it to the 7i96 encoder velocity (in RPM)
pin.
net spindle-at-speed <= gmoccapy.spindle_at_speed_led
This would normally be driven by a "near" component (not a GPIO bit)
with one input being the commanded spindle speed and the other,
the actual (feedback) spindle speed
The signal spindle-speed-fb is not connected to anything
As a start , I would connect it to the 7i96 encoder velocity (in RPM)
pin.
net spindle-at-speed <= gmoccapy.spindle_at_speed_led
This would normally be driven by a "near" component (not a GPIO bit)
with one input being the commanded spindle speed and the other,
the actual (feedback) spindle speed
Please Log in or Create an account to join the conversation.
22 Jun 2021 21:05 #212700
by Boris
Replied by Boris on topic Another spindle encoder question Orac/7i96
It worked!! well mostly.
I ran the following command "halcmd net spindle-speed-fb hm2_7i96.0.encoder.00.velocity-rpm" and the feedback began working. I've updated the custom_postgui.hal file and now it works on startup. Thank you for that.
With regards to the led, it makes sense to me why it would be driven by a "near" component but I am not sure how that would look from a hal pin point of view? Could you give an example and I'll try to follow the signal through and insert the missing pin. Thanks again for your patience - I appreciate these are very much newbie problems.
I ran the following command "halcmd net spindle-speed-fb hm2_7i96.0.encoder.00.velocity-rpm" and the feedback began working. I've updated the custom_postgui.hal file and now it works on startup. Thank you for that.
With regards to the led, it makes sense to me why it would be driven by a "near" component but I am not sure how that would look from a hal pin point of view? Could you give an example and I'll try to follow the signal through and insert the missing pin. Thanks again for your patience - I appreciate these are very much newbie problems.
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.098 seconds