Max machine velocity with different axis maxes

More
23 Jul 2012 03:19 #22333 by clkeck1
I'm trying to get the Max velocity override hooked up on the lathe. I have a 2%, 25%, 50%, and 100% inputs from a rotary switch. A mux16 setup using pncconf outputs 2, 25, 50, or 100 max-velocity-counts pin. The issue is the X axis Max velocity is 236 and the z is 472.

If i set them both to 472 the slider corresponds to the switch selection. But with them different the slider stays at 236 at 50% and 100%.

Has anyone else ran into this or have a fix for it?

Thanks
Cory

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

More
23 Jul 2012 08:41 #22336 by Rick G
In your ini file what do you have the MAX_VELOCITY that is in the [TRAJ] section set to?

Rick G

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

More
23 Jul 2012 14:07 #22341 by clkeck1
The max in the Traj section is set to 7.87 in/sec or 472in/min
[TRAJ]
AXES = 3
COORDINATES = X Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.79
MAX_LINEAR_VELOCITY = 7.87
POSITION_FILE = position.txt
NO_FORCE_HOMING = 1


[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
TOOLCHANGE_WITH_SPINDLE_ON = 1

#********************
# Axis X
#********************
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
FERROR = 1
MIN_FERROR = 1
MAX_VELOCITY = 3.93333333333
MAX_ACCELERATION = 10.0
P = 50.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = .00003
MAX_OUTPUT = 10.0
ENCODER_SCALE = -67733.3312
OUTPUT_SCALE = -10.0
MIN_LIMIT = -3
MAX_LIMIT = 9

HOME_OFFSET = 6
HOME_SEARCH_VEL = 1
HOME_LATCH_VEL = -0.1
HOME_FINAL_VEL = 5
HOME = 6
HOME_USE_INDEX = YES
#HOME_SEQUENCE = 1

#********************
# Axis Z
#********************
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 1
MIN_FERROR = 1
MAX_VELOCITY = 7.86666666667
MAX_ACCELERATION = 10.0
P = 50
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = .00008
MAX_OUTPUT = 10.0
ENCODER_SCALE = 25400
OUTPUT_SCALE = 10.0
MIN_LIMIT = -10
MAX_LIMIT = 30
HOME = 0
HOME_OFFSET = 0
HOME_SEARCH_VEL = -.1
HOME_LATCH_VEL = 1
HOME_FINAL_VEL = 5
HOME_USE_INDEX = YES
#HOME_SEQUENCE = 0

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

More
23 Jul 2012 18:26 #22353 by Rick G
Have you tried changing MAX_FEED_OVERRIDE in the ini file?

Rick G

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

More
23 Jul 2012 19:34 #22354 by clkeck1
Max feed override is set to 2 and functions from 0% to 150% using an external override switch.

If i set the x axis to "MAX_VELOCITY = 7.86666666667" then the MVO functions correctly.
[DISPLAY]
DISPLAY = axis
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.000000
MAX_SPINDLE_OVERRIDE = 1.000000
MIN_SPINDLE_OVERRIDE = 0.500000
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/sl-4/linuxcnc/nc_files
PYVCP = pyvcp-panel.xml
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
LATHE = 1
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
DEFAULT_LINEAR_VELOCITY = 0.833333
MAX_LINEAR_VELOCITY = 7.916667
MIN_LINEAR_VELOCITY = 0.010000
DEFAULT_ANGULAR_VELOCITY = 0.250000
MAX_ANGULAR_VELOCITY = 1.000000
MIN_ANGULAR_VELOCITY = 0.010000
EDITOR = gedit
GEOMETRY = xz

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

More
24 Jul 2012 11:28 #22382 by Rick G
Well when I think about it might be as expected. I have never tried setting it up that way so do not have experience with that.
However as you seem to have used PnCconf to start with you might want to post your question in the PnCconf category with a copy of your hal file.

Rick G

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

Time to create page: 0.625 seconds
Powered by Kunena Forum