VOLATILE_HOME not working
- runningwithscissors
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
11 Jan 2021 10:20 - 11 Jan 2021 10:21 #194873
by runningwithscissors
VOLATILE_HOME not working was created by runningwithscissors
Hey,
I am new here so plz be patient
I just configured my machine and so far everything is working as expected but:
I'd like to have all axes unhomed whenever either estop gets triggered or the OFF button gets pressed.
My assumtion waswould do just that but it appears to have no effect at all and I am curious what I'm missing.
For reference my .ini config (just one axis, the others are basically the same)
and HAL
Thanks and safe '21
I am new here so plz be patient
I just configured my machine and so far everything is working as expected but:
I'd like to have all axes unhomed whenever either estop gets triggered or the OFF button gets pressed.
My assumtion was
VOLATILE_HOME = 1
For reference my .ini config (just one axis, the others are basically the same)
Warning: Spoiler!
[AXIS_Y]
MAX_VELOCITY = 95.0
MAX_ACCELERATION = 95.0
MIN_LIMIT = -0.001
MAX_LIMIT = 470.001
[JOINT_1]
TYPE = LINEAR
HOME = 470.0
MIN_LIMIT = -0.001
MAX_LIMIT = 470.001
MAX_VELOCITY = 95.0
MAX_ACCELERATION = 95.0
STEPGEN_MAXACCEL = 104.5
SCALE = 80.0
FERROR = 1
MIN_FERROR = .25
HOME_SEARCH_VEL = 20.00000
HOME_LATCH_VEL = 3.0
HOME_SEQUENCE = 2
VOLATILE_HOME = 1
HOME_IGNORE_LIMITS = YES
HOME_OFFSET = 478.0
and HAL
Warning: Spoiler!
# Generated by stepconf 1.1 at Mon Nov 2 13:45:16 2020
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hal_parport cfg="1 out 0 out"
loadrt stepgen step_type=0,0,0
addf parport.0.read base-thread
addf parport.1.read base-thread
addf stepgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.1.write base-thread
addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread
net spindle-cmd-rpm <= spindle.0.speed-out
net spindle-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-cmd-rps <= spindle.0.speed-out-rps
net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-at-speed => spindle.0.at-speed
net spindle-on <= spindle.0.on
net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood
net dout-00 <= motion.digital-out-00
net dout-01 <= motion.digital-out-01
net dout-02 <= motion.digital-out-02
net din-00 => motion.digital-in-00
# ======= Parallel Port 1, Parport Base Adress 1 =======
# OUT
setp parport.0.pin-02-out-invert 1
net xdir => parport.0.pin-02-out
net xstep => parport.0.pin-03-out
setp parport.0.pin-04-out-invert 1
net ydir => parport.0.pin-04-out
net ystep => parport.0.pin-05-out
net zstep => parport.0.pin-06-out
setp parport.0.pin-07-out-invert 1
net zdir => parport.0.pin-07-out
setp parport.0.pin-08-out-invert 1
net spindle-on => parport.0.pin-08-out
setp parport.0.pin-09-out-invert 1
net coolant-mist => parport.0.pin-09-out
setp parport.0.pin-14-out-invert 1
net coolant-flood => parport.0.pin-14-out
# IN
net max-z <= parport.1.pin-10-in
net max-y <= parport.1.pin-12-in
net max-x <= parport.1.pin-11-in
net estop-ext <= parport.0.pin-13-in-not
net din-00 <= parport.0.pin-15-in-not
# ======= Parallel Port 2, Parport Base Adress 0 =======
# OUT
net dout-00 => parport.1.pin-06-out # OUT_PWR
net dout-01 => parport.1.pin-16-out # OUT_24V
net dout-02 => parport.1.pin-05-out # OUT_ZBREAK
# IN
net min-z <= parport.0.pin-10-in
net min-y <= parport.0.pin-12-in
net min-x <= parport.0.pin-11-in
# ======= X =======
setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 1
setp stepgen.0.dirhold 30500
setp stepgen.0.dirsetup 30500
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable joint.0.amp-enable-out => stepgen.0.enable
net max-x => joint.0.home-sw-in
net max-x => joint.0.pos-lim-sw-in
net min-x => joint.0.neg-lim-sw-in
# ======= Y =======
setp stepgen.1.position-scale [JOINT_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 1
setp stepgen.1.dirhold 30500
setp stepgen.1.dirsetup 30500
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable joint.1.amp-enable-out => stepgen.1.enable
net max-y => joint.1.home-sw-in
net max-y => joint.1.pos-lim-sw-in
net min-y => joint.1.neg-lim-sw-in
# ======= Z =======
setp stepgen.2.position-scale [JOINT_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 1
setp stepgen.2.dirhold 30500
setp stepgen.2.dirsetup 30500
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
net zpos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable joint.2.amp-enable-out => stepgen.2.enable
net max-z => joint.2.home-sw-in
net max-z => joint.2.pos-lim-sw-in
net min-z => joint.2.neg-lim-sw-in
# ======= DIV =======
net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in
net tool-number <= iocontrol.0.tool-prep-number
net tool-change-loopback iocontrol.0.tool-change => iocontrol.0.tool-changed
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Thanks and safe '21
Last edit: 11 Jan 2021 10:21 by runningwithscissors.
Please Log in or Create an account to join the conversation.
11 Jan 2021 14:05 #194906
by andypugh
Replied by andypugh on topic VOLATILE_HOME not working
It's in the right section and appears to be spelled correctly. (I even checked that the character set was plain ASCII)
I really don't know why it isn't working.
One possibility is that you are not editing the INI file that you are using. (has caught me out a few times)
I just tested it on one of my sims (admittedly running 2.9.0-pre) and it behaved as expected. (and, it took two attempts, because I edited the wrong INI
I really don't know why it isn't working.
One possibility is that you are not editing the INI file that you are using. (has caught me out a few times)
I just tested it on one of my sims (admittedly running 2.9.0-pre) and it behaved as expected. (and, it took two attempts, because I edited the wrong INI
Please Log in or Create an account to join the conversation.
Time to create page: 0.122 seconds