Max machine velocity with different axis maxes

More
24 Jul 2012 13:05 #22394 by clkeck1
I posted this in the basic configurations but haven't got to the root so I'm trying here.

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.

I verified the mux output in Hal configuration and it outputs the corresponding 2, 25, 50, & 100

With them different the slider starts at 472 but once you change the switch it stays at 236 at 50% and 100%. but you can slide it back to 472 in axis

If I set both axis to 472max in the ini file everything works correctly.

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

Ini file below
[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


[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

Hal section below
setp halui.max-velocity.count-enable true
    setp halui.max-velocity.direct-value true
    setp halui.max-velocity.scale 0.078667
net max-vel-override-incr   =>  halui.max-velocity.counts
net mvo-incr-a           =>  mvoincr.sel0
net mvo-incr-b           =>  mvoincr.sel1
net mvo-incr-c           =>  mvoincr.sel2
net mvo-incr-d           =>  mvoincr.sel3
net max-vel-override-incr   <=  mvoincr.out-s
    setp mvoincr.debounce-time      0
    setp mvoincr.use-graycode      False
    setp mvoincr.suppress-no-input False
    setp mvoincr.in00          100.000000
    setp mvoincr.in01          50.000000
    setp mvoincr.in02          25.000000
    setp mvoincr.in03          2.000000


Thanks
Cory

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

Time to create page: 0.060 seconds
Powered by Kunena Forum