spindle out issue 7i76 SOLVED

More
09 Dec 2019 14:13 - 10 Dec 2019 12:54 #152360 by bevins
I have 78i76 with cm on pint TB4 and 5V pin3. I have pin2 going to inverter.

I see no voltage on pin 2 when I do m3 S16000. hal config show spindle enabled and 16000 for rpm.

Below are my hal and ini.

HAL:
Warning: Spoiler!


INI:

Warning: Spoiler!
Attachments:
Last edit: 10 Dec 2019 12:54 by bevins.

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

More
09 Dec 2019 14:50 #152363 by PCW
Replied by PCW on topic spindle out issue 7i76
Your hal file is missing the net connections from the signals:

spindle-vel-cmd-rpm
and
spindle-enable

to the appropriate hardware pins

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

More
09 Dec 2019 17:02 #152376 by bevins
Replied by bevins on topic spindle out issue 7i76

Your hal file is missing the net connections from the signals:

spindle-vel-cmd-rpm
and
spindle-enable

to the appropriate hardware pins


I connected spindle-vel-cmd-rpm to hm2_7i92.0.7i76.0.0.spinout
and

spindle -enable to hm2_7i92.0.7i76.0.0.spinena

and no matter what speed I send it it sends out 4.8volts spinout

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

More
09 Dec 2019 17:15 #152381 by bevins
Replied by bevins on topic spindle out issue 7i76
Do I need to set spinout-minlim and spinout-maxlim?

I am having issue and I dont understand the spindle.

Is their a 7i76 config somewhere I can look at? I thought stepconf set it all up.

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

More
09 Dec 2019 17:40 - 09 Dec 2019 18:34 #152386 by PCW
Replied by PCW on topic spindle out issue 7i76
pncconf normally sets this up, I suspect you may have left out some spindle setting
that pncconf uses to enable installing the spindle connections

And yes, the reason you have a constant ~5V output is likely that the scale is wrong

Normally you would set minlim to 0 and maxlim and scale to the spindle speed at full voltage

EDIT: I just tried this with pncconf and it does setup the nets and scaling.
Pretty sure you need to fill out the "7I76-Analog Output TB4" tab before
pncconf will create the connections and scaling setp's

Heres what pncconf creates:


setp hm2_5i25.0.7i76.0.0.spinout-minlim [SPINDLE_9]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i76.0.0.spinout-maxlim [SPINDLE_9]OUTPUT_MAX_LIMIT
setp hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_9]OUTPUT_SCALE

net spindle-output => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir
Last edit: 09 Dec 2019 18:34 by PCW.

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

More
09 Dec 2019 22:36 #152400 by bevins
Replied by bevins on topic spindle out issue 7i76

pncconf normally sets this up, I suspect you may have left out some spindle setting
that pncconf uses to enable installing the spindle connections

And yes, the reason you have a constant ~5V output is likely that the scale is wrong

Normally you would set minlim to 0 and maxlim and scale to the spindle speed at full voltage

EDIT: I just tried this with pncconf and it does setup the nets and scaling.
Pretty sure you need to fill out the "7I76-Analog Output TB4" tab before
pncconf will create the connections and scaling setp's

Heres what pncconf creates:


setp hm2_5i25.0.7i76.0.0.spinout-minlim [SPINDLE_9]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i76.0.0.spinout-maxlim [SPINDLE_9]OUTPUT_MAX_LIMIT
setp hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_9]OUTPUT_SCALE

net spindle-output => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir


I fixed it by hand. I will look into setting that with pncconf. I know I missed that section I guess.

Anyway, its working, thanks.

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

Time to create page: 0.084 seconds
Powered by Kunena Forum