5i25/7i76 analog spindle control on Lathe spindle

More
2 years 2 months ago #308014 by acondit
I will do the count verification later this afternoon. The encoder is hand made with 100 holes in the ring.
I had to change the sign in the ini file earlier to -100 to get things to work at all.

I downloaded a Tachometer app to my iPhone and it looks like at full speed the spindle is running close to 1000 rpm.

Please Log in to join the conversation.

More
2 years 2 months ago #308019 by PCW
OK so it appears that the feedback is correct so it sounds
like the PWM scaling is wrong
 

Please Log in to join the conversation.

More
2 years 2 months ago #308020 by acondit
So how do I fix that?

Please Log in to join the conversation.

More
2 years 2 months ago #308022 by PCW
It depends on how the configuration file was created
With a pncconf created hal/ini file , doubling the spindle
OUTPUT_SCALE and related parameters in the .ini
file would be the correct approach.

[SPINDLE_0]
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_OUTPUT = 6000  
OUTPUT_SCALE = 6000

OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 6000

 

Please Log in to join the conversation.

More
2 years 2 months ago #308025 by acondit
I doubled those values from 1100 to 2200 and that seems to work from 100 up to about 1100 rpm. It is off a little more down about 75 rpm but there is less power down there anyway.

Please Log in to join the conversation.

More
2 years 2 months ago #308030 by acondit
Thank you, Peter.

Please Log in to join the conversation.

Time to create page: 0.044 seconds
Powered by Kunena Forum