Spindle Limits

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
07 Jan 2024 17:47 #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:
[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:
# 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 or Create an account to join the conversation.

More
07 Jan 2024 22:41 #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 or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
07 Jan 2024 22:50 #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.

 

JT
Attachments:

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

More
07 Jan 2024 22:57 #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 or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
07 Jan 2024 23:02 #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 or Create an account to join the conversation.

More
07 Jan 2024 23:11 #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.
The following user(s) said Thank You: JT

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

Time to create page: 0.117 seconds
Powered by Kunena Forum