Wrapped Rotary will not spin

More
11 years 2 weeks ago #63708 by MacGalempsy
Hello,

I am trying to get the 4th axis moving, but cannot get it to move outside PNCCONF. Can someone take a look at this code and point me in the right direction (in noob language)?
Code:
#******************** # Axis A #******************** [AXIS_3] WRAPPED_ROTARY = 1 TYPE = ANGULAR HOME = 0.0 FERROR = 360 MIN_FERROR = -360 MAX_VELOCITY = 833.33 MAX_ACCELERATION = 1600 P = 50 I = 0 D = 0 FF0 = 0 FF1 = 0 FF2 = 0 BIAS = 0 DEADBAND = 0.288 MAX_OUTPUT = 9.5 ENCODER_SCALE = 13.88889 OUTPUT_SCALE = 10 OUTPUT_MIN_LIMIT = -10 OUTPUT_MAX_LIMIT = 10 HOME_OFFSET = 0.000000 HOME_SEARCH_VEL = -2.000000 #HOME_LATCH_VEL = -0.500000 #HOME_FINAL_VEL = 0.000000 HOME_USE_INDEX = YES HOME_IGNORE_LIMITS = YES

Please Log in to join the conversation.

More
11 years 2 weeks ago #63714 by cncbasher
i presume this is a servo system rather than a stepper ?
could you also post your complete archive as an attachment , as the ini does not give the full picture . .

Please Log in to join the conversation.

More
11 years 2 weeks ago #63724 by andypugh

MacGalempsy wrote: I am trying to get the 4th axis moving, but cannot get it to move outside PNCCONF.


This is normally because the axis test doesn't do anything with the servo enable, but the actual config does, but it is set up inverted so it disables the axis.

Please Log in to join the conversation.

More
11 years 2 weeks ago #63730 by MacGalempsy
Here are the files. From the way this is acting, I was thinking the spindle issue and the rotary axis issue are somehow similar. If anyone is taking a look at this and would look at a possible spindle issue and the 4th axis issue, I would be VERY GREATFUL.

Attachment not found

Please Log in to join the conversation.

More
11 years 2 weeks ago #63735 by cncbasher
regarding your A axis , i cannot see anything obvious with the hal file , however withstanding Andys point over the amp enable being reversed , would cause this
check the actual amp it's self and see if the enable is being actuated , and is in effect working the correct way round , do not take your pyvcp panel to be correct ,
this is a hardware issue .

it's usual on servo amps to have a led come on , so make sure it's the same sense as the x etc , it may be reversed ,

if the a axis runs fine in pncconf then that would indicate that your connections are in most fine , excepting the amp enable .

regarding your spindle try setting
OUTPUT_MIN_LIMIT = -10.0
OUTPUT_MAX_LIMIT = 10.0

i presume the spindle is again an analog 0 - 10v input
so you need to set as above the max and min voltage , then your spindle scaling will divide the pwm across the scale of 0 - 10v
and not 0 - 5000 as you had it .

get back once you have checked

Please Log in to join the conversation.

More
11 years 2 weeks ago #63756 by MacGalempsy
Thank you CNCBASHER and ANDYPUGH. The amp was enabled, but the encoder steps were off and the gain was too low. Now that it is spinning and counting in the right direction, the tuning process may proceed. The necessary gain to get it to move is 2000. Does that seem high to anyone?

Also, no change on the spindle. Hopefully, after getting all axes homed the spindle will work right. Fingers crossed.

Please Log in to join the conversation.

Time to create page: 0.376 seconds
Powered by Kunena Forum