Spindle Limits

More
2 years 9 months ago #290123 by JT
Spindle Limits was created by JT
The 2.9 docs show min/max ini settings for spindle for forward and reverse.

I added this to my spindle 0 section:
Code:
[SPINDLE_0] TYPE = pwm PWM_TYPE = 1 PWM_FREQUENCY = 15000 P = 0.0 I = 0.0 D = 0.0 FF0 = 1.0 FF1 = 0.0 FF2 = 0.0 BIAS = 0.0 DEADBAND = 0.0 MAX_ERROR = 0.0 MAX_OUTPUT = 5000 MIN_FORWARD_VELOCITY = 500 MAX_FORWARD_VELOCITY = 5000 MIN_REVERSE_VELOCITY = 500 MAX_REVERSE_VELOCITY = 5000

I can issue S100 M3 and the spindle runs...

My spindle hal:
Code:
# Spindle PID Setup setp pid.s.Pgain [SPINDLE_0](P) setp pid.s.Igain [SPINDLE_0](I) setp pid.s.Dgain [SPINDLE_0](D) setp pid.s.bias [SPINDLE_0](BIAS) setp pid.s.FF0 [SPINDLE_0](FF0) setp pid.s.FF1 [SPINDLE_0](FF1) setp pid.s.FF2 [SPINDLE_0](FF2) setp pid.s.deadband [SPINDLE_0](DEADBAND) setp pid.s.maxoutput [SPINDLE_0](MAX_OUTPUT) setp pid.s.error-previous-target true # Spindle PWM Setup setp hm2_[MESA](BOARD).0.pwmgen.00.output-type [SPINDLE_0](PWM_TYPE) setp hm2_[MESA](BOARD).0.pwmgen.pwm_frequency [SPINDLE_0](PWM_FREQUENCY) setp hm2_[MESA](BOARD).0.pwmgen.00.scale [SPINDLE_0]MAX_OUTPUT # Spindle Enable net spindle-on <= spindle.0.on net spindle-on => pid.s.enable net spindle-on => hm2_[MESA](BOARD).0.pwmgen.00.enable # Spindle Connections net spindle-vel-cmd <= spindle.0.speed-out-abs net spindle-vel-cmd => pid.s.command net spindle-pid-out <= pid.s.output net spindle-pid-out => hm2_[MESA](BOARD).0.pwmgen.00.value # Spindle Feedback setp spindle.0.at-speed true

Am I missing something?

JT

Please Log in to join the conversation.

More
2 years 9 months ago #290154 by cmorley
Replied by cmorley on topic Spindle Limits
A command of 100 rpm will start the spindle at the minimum - 500 rpm

MIN_FORWARD_VELOCITY = 3000 The minimum spindle speed (in rpm) for the specified spindle. Optional. Many spindles have a minimum speed below which they should not be run. >>>Any spindle speed command below this limit will be /increased/ to this limit. <<<

Is that what you see?

Please Log in to join the conversation.

More
2 years 9 months ago #290155 by JT
Replied by JT on topic Spindle Limits
Hi Chris,

If I run S100 M3 I get spindle.0.speed-out 100. I made a stepconf sim to test with.

 

Attachment not found



JT

Please Log in to join the conversation.

More
2 years 9 months ago #290158 by cmorley
Replied by cmorley on topic Spindle Limits
Happy new year John.

I tested with sample config axis.ini - it seems to work here. latest compiled 2.9
sure you are on 2.9 - ran the script/rip script etc?

Chris

Please Log in to join the conversation.

More
2 years 9 months ago #290160 by JT
Replied by JT on topic Spindle Limits
Happy New Year Chris.

I'm running 2.9.0~pre1+git and a bunch of numbers lol it's the debian version installed.

JT

Please Log in to join the conversation.

More
2 years 9 months ago #290163 by cmorley
Replied by cmorley on topic Spindle Limits
There was a fix after that I think:
9fi465 SPINDLE INI -fix non working M4

Maybe it had other bugs.
The official Debian version is terribly behind - we should have not released it at that time.

Please Log in to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum