- Posts: 17533
- Thank you received: 5334
Stepgen spindle
4 years 2 months ago - 4 years 2 months ago #249997
by PCW
Replied by PCW on topic Stepgen spindle
[SPINDLE_0]
MAX_VELOCITY = 104.16666666666667
MAX_ACCELERATION = 400.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 130.21
STEPGEN_MAXACCEL = 500.00
P = 100.0 <<<<<<<<<<<<<<<<< I would set this to 0 and not worry about encoder feedback yet
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 4700.0
ENCODER_SCALE = 1000.0 <<<<<<<<<<<<<<<<<<<<< if you have 10000 counts per turn, this must be 10000
# these are in nanoseconds
DIRSETUP = 5000
DIRHOLD = 5000
STEPLEN = 2500
STEPSPACE = 2500
STEP_SCALE = 1000.0 <<<<<<<<<<<<<<<<<<<<< if you have 10000 steps per turn, this must be 10000
MAX_VELOCITY = 104.16666666666667
MAX_ACCELERATION = 400.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 130.21
STEPGEN_MAXACCEL = 500.00
P = 100.0 <<<<<<<<<<<<<<<<< I would set this to 0 and not worry about encoder feedback yet
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 4700.0
ENCODER_SCALE = 1000.0 <<<<<<<<<<<<<<<<<<<<< if you have 10000 counts per turn, this must be 10000
# these are in nanoseconds
DIRSETUP = 5000
DIRHOLD = 5000
STEPLEN = 2500
STEPSPACE = 2500
STEP_SCALE = 1000.0 <<<<<<<<<<<<<<<<<<<<< if you have 10000 steps per turn, this must be 10000
Last edit: 4 years 2 months ago by PCW.
Please Log in or Create an account to join the conversation.
- gilesclement
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
4 years 2 months ago #250013
by gilesclement
Replied by gilesclement on topic Stepgen spindle
Ok, thank you. The Max_Output would then be the maximum speed of the motor (3000rpm) or the max speed of the spindle after the pulley ratio?
And will Max acceleration also control deceleration?
And will Max acceleration also control deceleration?
Please Log in or Create an account to join the conversation.
4 years 2 months ago #250018
by PCW
Replied by PCW on topic Stepgen spindle
All speed settings should be for the output at the spindle so instead of 10000
for the step scale, it should be 10000*motor_speed/spindle_speed
The stepgen acceleration settings will determine the spindle ramp rate
(in RPS/S)
for the step scale, it should be 10000*motor_speed/spindle_speed
The stepgen acceleration settings will determine the spindle ramp rate
(in RPS/S)
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.207 seconds