7i83, Spindle control & hal explanation

More
01 Apr 2021 02:56 #204352 by BeagleBrainz
With regards to this topic:
forum.linuxcnc.org/38-general-linuxcnc-q...le-control-with-dyn4

Maybe I was asking the wrong question.

Can someone explain how these 3 components would work together for open loop spindle control.

I'm hoping to use a +\-10 control voltage to the spindle/servo drive.
Max fwd is 4000 rpm and max rev is 4000 rpm. For the time being I would to run without the encoder, as I need to order and have delivered the cable to run between the driver & 7i76. The mill has been down for a while.

As an experiment I fed spindle.0.speed-cmd-rps into hm2.7i92.0.7i83.1.5.analogout5 and monitored the voltage across a 2k resistor connected to the terminals. Using the following numbers in my ini I was able to get what I thought was the right voltages.
OUTPUT_MIN_LIMIT = -4000.0
OUTPUT_MAX_LIMIT = 4000.0
OUTPUT_SCALE = 66.6666667

So I'm a bit confused.

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

More
01 Apr 2021 03:07 #204353 by PCW
if you want 10V for +4000 RPM and -10V for -4000 RPM I would expect
OUTPUT_MIN_LIMIT = -4000.0
OUTPUT_MAX_LIMIT = 4000.0
OUTPUT_SCALE = 4000

Assuming output scale sets the appropriate 7I83 scalemax parameter
( ini file tokens are largely arbitrary so its hard to know the meaning of
OUTPUT_SCALE without both the hal and ini files available)

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

More
01 Apr 2021 03:18 - 01 Apr 2021 03:30 #204354 by BeagleBrainz
Sorry my bad.

The cnc pc doesn't have network connection, apart from what is needed for the mesa comms.
setp hm2.7i92.0.7i83.1.5.analogout5-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2.7i92.0.7i83.1.5.analogout5-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2.7i92.0.7i83.1.5.analogout5-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT

I'll go and throw those numbers in and see what happens, cheers ;)


Ok moving forward.

Using your numbers PCW and feeding spindle.0.speed-out rather than spindle.0.speed.cmd.rps the 7i83 is giving the expected voltages.
If I'm running open loop do I need a pid thread for the spindle ?

I know I probably wont get the best speed control, that would depend on the input voltage seen by the driver and how well it can regulate the speed.

Once again PCW many thanks.
Last edit: 01 Apr 2021 03:30 by BeagleBrainz.

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

Moderators: PCWjmelson
Time to create page: 0.066 seconds
Powered by Kunena Forum