Stepper Motor Speed is too slow

More
1 year 3 weeks ago - 1 year 3 weeks ago #336112 by richcolvin
I am at a loss.  I cannot get the stepper motors on my axes to run at the speeds they are set to run.  The axis seems to run at 0.0001 in/sec, not 10 in/sec.

I have them hooked to Stepper Online DM542T drivers, so these are the values in the INI file.
# For the DM542T, these are 5 μs = 5,000 ns
DIRHOLD              = 5000
DIRSETUP             = 5000
# For the DM542T, these are 2.5 μs = 2,500 ns
STEPLEN                = 2500
STEPSPACE            = 2500

The DM542Ts are set to use 6,400 pulses / rev, and the leadscrew moves 8 mm per revolution.  Thusly, I set the STEP_SCALE and ENCODER_SCALE using this calculation
  • STEP_SCALE = 6,400 step/rev  x 1 rev / 8 mm  x  25.4 mm / in 
    • STEP_SCALE = 20,320 steps/in

      For [AXIS_l] 
      TYPE                            = LINEAR
      MAX_VELOCITY         = 10.0

      For [JOINT_#], 
      TYPE                            = LINEAR
      UNITS                          = INCH
      ENCODER_SCALE       = 20320
      STEP_SCALE               = 20320
      MAX_VELOCITY          = 10.0
      STEPGEN_MAXVEL    = 12.50


      Please help me understand what I am missing.
Last edit: 1 year 3 weeks ago by richcolvin.

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

More
1 year 3 weeks ago #336114 by PCW
Replied by PCW on topic Stepper Motor Speed is too slow
Can you post your complete hal/ini files, or al least the joint sections of both?

 

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

More
1 year 3 weeks ago #336115 by richcolvin
These are the files.  The .INC files were renamed to be .INI so that they could be attached.

I've attached one spindle file:  that one and the one for Spindle1 all work exactly as expected.

I also attached only two of the axis files:  U & Y (due to the file limit).

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

More
1 year 3 weeks ago - 1 year 3 weeks ago #336117 by PCW
Replied by PCW on topic Stepper Motor Speed is too slow
The PID setup is missing key values so I would not think you would get
any motion, for example X:

#****************************
# AXIS X JOINT 0 CHANNEL 02
#****************************
setp pid.x.FF1 1
setp pid.x.Pgain 1000

setp pid.x.error-previous-target true
setp pid.x.maxerror 0.000500
net x-index-enable => pid.x.index-enable
net x-enable => pid.x.enable
net x-pos-cmd => pid.x.command
net x-pos-fb => pid.x.feedback
net x-output <= pid.x.output

 
Last edit: 1 year 3 weeks ago by PCW.

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

More
1 year 3 weeks ago #336118 by meister
If I calculate it right, that's >15m/min

I think it's not possible to reach this speed with steppers

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

More
1 year 3 weeks ago #336121 by PCW
Replied by PCW on topic Stepper Motor Speed is too slow
Yes, 8mm/turn = 3.175 turns per inch so ~1900 RPM at 10 IPS
which is at the edge of stepper capability (at least with usable torque)

Perhaps the OP does not know that the hal/ini velocity settings are
in machine units (inch in this case)  per second rather the minute
 

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

Time to create page: 0.139 seconds
Powered by Kunena Forum