Mesa 7i76e-spindle speed variable via spindle override but not via G-code / M

More
20 Mar 2017 07:34 #89929 by cmorley
this is the part of the HAL file i'm talking of:
#*******************
#  SPINDLE S
#*******************

setp   pid.s.Pgain     [SPINDLE_9]P
setp   pid.s.Igain     [SPINDLE_9]I
setp   pid.s.Dgain     [SPINDLE_9]D
setp   pid.s.bias      [SPINDLE_9]BIAS
setp   pid.s.FF0       [SPINDLE_9]FF0
setp   pid.s.FF1       [SPINDLE_9]FF1
setp   pid.s.FF2       [SPINDLE_9]FF2
setp   pid.s.deadband  [SPINDLE_9]DEADBAND
net ratio_select.out   pid.s.maxoutput 
setp   pid.s.error-previous-target true

net spindle-index-enable  <=> pid.s.index-enable
net spindle-enable        =>  pid.s.enable
net spindle-vel-cmd-rpm-abs     => pid.s.command
net spindle-vel-fb-rpm-abs      => pid.s.feedback
net spindle-pid-out  pid.s.output    => scale.gear.in
net gear-ratio       ratio_select.out-f => scale.gear.gain
setp ratio_select.in00 0.000143
setp ratio_select.in01 0.000143
net gear-select-a         =>  ratio_select.sel0
net spindle-output        <=  scale.gear.out

as you can see the scale is .000143
3500 x .000143 = .5005 which is actually half speed - so that doesn't jive with the behavior.
So either the 7i76 can not be scaled that low or I am missing something else - which is quite possible.

So if you try without two ranges and let us know if it works properly.
and with two range setting:
can you use halmeter to check what the output of signals:

spindle-vel-cmd-rpm-abs
spindle-pid-out
spindle-output

are when you request a speed of say 1750 or 3500 (no need to have the VFD actually run the motor for that test)

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

More
20 Mar 2017 07:50 #89930 by cmorley
It's a bit confusing about the scaling set in the INI for the spindle.

If you use only one range the INI scaling represents RPM
it using two ranges it's scaled so 1 represents max output.
this is because it is scaled between the PID output and the MESA card input based on what gear is selected.

HALmeter should be your friend here - use it to follow the signals from requested RPM (spindle-vel-cmd-rpm-abs) through all the scaling and selection to the MESA input ( spindle-output)
Chris M

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

More
20 Mar 2017 07:53 - 20 Mar 2017 07:53 #89931 by cmorley
ok I think I found the real problem this signal line in the main HAL file

net spindle-vel-cmd-rpm-abs => hm2_7i76e.0.7i76.0.0.spinout

should be:

net spindle-output => hm2_7i76e.0.7i76.0.0.spinout

Chris M
Last edit: 20 Mar 2017 07:53 by cmorley. Reason: missspelled output
The following user(s) said Thank You: cut2cut

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

More
21 Mar 2017 02:33 - 21 Mar 2017 02:33 #89981 by cut2cut

ok I think I found the real problem this signal line in the main HAL file

net spindle-vel-cmd-rpm-abs => hm2_7i76e.0.7i76.0.0.spinout

should be:

net spindle-output => hm2_7i76e.0.7i76.0.0.spinout

Chris M


THANK YOU Chris ! .That did the trick... and now I should be able to make chips!

So, is that some issue with PnCconf, LinuxCNC or possibly "user error" ?

Cheers,

Jake
Last edit: 21 Mar 2017 02:33 by cut2cut.

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

More
21 Mar 2017 04:37 #89982 by cmorley
This is a pnc bug.
Thanks for testing - I will push a fix.
Sorry for the problem.
Have fun!

Chris M

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

Moderators: cmorley
Time to create page: 0.085 seconds
Powered by Kunena Forum