5i25/7i76 analog spindle control on Lathe spindle
17 Aug 2024 18:09 #308014
by acondit
Replied by acondit on topic 5i25/7i76 analog spindle control on Lathe spindle
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.
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 or Create an account to join the conversation.
17 Aug 2024 18:36 #308019
by PCW
Replied by PCW on topic 5i25/7i76 analog spindle control on Lathe spindle
OK so it appears that the feedback is correct so it sounds
like the PWM scaling is wrong
like the PWM scaling is wrong
Please Log in or Create an account to join the conversation.
17 Aug 2024 19:01 #308020
by acondit
Replied by acondit on topic 5i25/7i76 analog spindle control on Lathe spindle
So how do I fix that?
Please Log in or Create an account to join the conversation.
17 Aug 2024 19:29 #308022
by PCW
Replied by PCW on topic 5i25/7i76 analog spindle control on Lathe spindle
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
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 or Create an account to join the conversation.
17 Aug 2024 20:50 #308025
by acondit
Replied by acondit on topic 5i25/7i76 analog spindle control on Lathe spindle
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 or Create an account to join the conversation.
17 Aug 2024 21:23 #308030
by acondit
Replied by acondit on topic 5i25/7i76 analog spindle control on Lathe spindle
Thank you, Peter.
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds