PID Loop for stepper motors

More
11 Feb 2020 14:54 #157064 by PCW
Replied by PCW on topic PID Loop for stepper motors
Also maxvel and maxaccel INI settings seem to be missing from all axis except X


# Fourth axis, Joint3
[AXIS_3]
TYPE = ANGULAR
HOME = 0.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -110.0
MAX_LIMIT = 110.0
FERROR = 2.000
MIN_FERROR = 0.200
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0.0
HOME_LATCH_VEL = 0.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 3
STEPGEN_MAXVEL = 11 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
STEPGEN_MAXACCEL = 22

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

More
11 Feb 2020 14:55 #157065 by Ameone
Replied by Ameone on topic PID Loop for stepper motors
Ah ok yeah don't worry about those, they are disabled, only x needs to work currently.

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

More
11 Feb 2020 15:53 #157072 by bbsr_5a
Replied by bbsr_5a on topic PID Loop for stepper motors
why are the speed values so slow i can get ACC 1200 with a Stepper on a RotTable
what happens if you increase this as the pulses are maybe to long

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

More
11 Feb 2020 17:00 #157078 by PCW
Replied by PCW on topic PID Loop for stepper motors

Ah ok yeah don't worry about those, they are disabled, only x needs to work currently.


I'm confused, I though you were talking about an angular axis...

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

More
11 Feb 2020 17:10 #157080 by Ameone
Replied by Ameone on topic PID Loop for stepper motors
Ok maybe a little bit more detail on the project can be helpful: I'm currently working on using LinuxCNC to control a 5 degrees of freedom robotic arm, where each of the 5 axis is rotary. Each axis is moved by a stepper motor, and controlled through a rotary encoder attached to the axis shaft.The robot is a moveo 5 DOF, you can google it up to see how it is set up.
Currently, I'm only controlling a single axis only (axis 0 in the ini file) to speed up the configuration process and to avoid modifying each axis settings every time.
So, regarding axis 0 set up, the PID control was implemented thanks to your help (with the parameters you can find in the ini and hal files attached to the previous comment). The only problem is that the axis is moving really slow (both when jogging it and through gcode commands).

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

More
11 Feb 2020 17:17 #157081 by PCW
Replied by PCW on topic PID Loop for stepper motors
One reason I see for X axis slowness is that the acceleration value is so low that it would take 10 seconds to get to full velocity

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

More
11 Feb 2020 18:18 #157089 by Todd Zuercher
Replied by Todd Zuercher on topic PID Loop for stepper motors
Maybe you should be using the newer 2.8 version or Master for a non Cartesian robot arm, where there is a clear distinction between joints (moving machine part) and axis (Cartesian space coordinates).

Sometimes there is some murky confusion when trying to use a normally linearly defined axis (such as X, Y, or Z) as a rotary joint in versions previous to 2.8.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum