- Posts: 8
- Thank you received: 0
Can't get Smithy 622 out of e-stop with 2.7
- lustenaderj
- Topic Author
- Offline
- New Member
-
So I got a cheap SSD and installed 2.7 on it (just in case, didn't want to destroy the mostly working version). Using the configuration picker, I chose my mill from the list. As expected, the HAL file defaulted to the same limit switch settings, but other than that looked extremely similar. The problem is that, now, it will not leave an e-stop state, and I suspect it is related to the charge pump not enabling for some reason (indicator not lit in HAL configuration watch, but is when using 2.5), but I just don't know enough about LinuxCNC to be able to figure it out. Just to verify it was the installation and something else didn't go loopy with the hardware, I swapped back and forth several times to the original drive and I can toggle the e-stop as expected with the old 2.5 install (I can hear the safety relay/contactor actuate when toggling the e-stop with 2.5).
Any suggestions would be greatly appreciated.
HAL and INI files for both the 2.5 and 2.7 install are attached (only change made to 2.7 files attached was the limit switch comment change, none of my half baked attempts at figuring out the issue).
Thanks,
Jonathan
Please Log in to join the conversation.
addf hm2_5i20.0.pet_watchdog servo-thread
and probably the
addf hm2_5i20.0.write_gpio servo-thread
addf hm2_5i20.0.read_gpio servo-thread
lines as well
Please Log in to join the conversation.
- lustenaderj
- Topic Author
- Offline
- New Member
-
- Posts: 8
- Thank you received: 0
PCW wrote: I would start with your working 2.5 file set and edit them to make them 2.7 compatible rather than starting with an unknown file set, the changes should be pretty minor, mainly commenting out the:
addf hm2_5i20.0.pet_watchdog servo-thread
and probably the
addf hm2_5i20.0.write_gpio servo-thread
addf hm2_5i20.0.read_gpio servo-thread
lines as well
Please Log in to join the conversation.
Another angle to attack this is to dump all the pin and parameter states and see what's different between the two versions
(halcmd show all >somefile will do this)
Please Log in to join the conversation.
- lustenaderj
- Topic Author
- Offline
- New Member
-
- Posts: 8
- Thank you received: 0
I tried setting the Watchdog timer to 100ms from the default of 10 - there was no change.
Please Log in to join the conversation.
- lustenaderj
- Topic Author
- Offline
- New Member
-
- Posts: 8
- Thank you received: 0
LCNC Version Owner Type Dir Value Name
2.5 11 bit IN TRUE axis.0.jog-vel-mode<==Enable
2.7 11 bit IN FALSE axis.0.jog-vel-mode<==Enable
2.5 11 bit IN TRUE axis.1.jog-vel-mode<==Enable
2.7 11 bit IN FALSE axis.1.jog-vel-mode<==Enable
2.5 11 bit IN TRUE axis.2.jog-vel-mode<==Enable
2.7 11 bit IN FALSE axis.2.jog-vel-mode<==Enable
2.5 12 bit IN TRUE charge-pump.enable<==Enable
2.7 13 bit IN FALSE charge-pump.enable<==Enable
2.7 13 bit OUT FALSE charge-pump.out-2
2.7 13 bit OUT FALSE charge-pump.out-4
2.5 7 bit OUT FALSE halui.estop.is-activated
2.7 7 bit OUT TRUE halui.estop.is-activated
2.5 7 bit OUT FALSE halui.program.optional-stop.is-on
2.7 7 bit OUT TRUE halui.program.optional-stop.is-on
2.5 7 bit IN FALSE halui.program.pause<==SOFF
2.7 7 bit IN TRUE halui.program.pause<==SOFF
2.5 9 bit OUT TRUE hm2_5i20.0.gpio.022.in
2.7 9 bit OUT FALSE hm2_5i20.0.gpio.022.in
2.5 9 bit OUT FALSE hm2_5i20.0.gpio.022.in_not
2.7 9 bit OUT TRUE hm2_5i20.0.gpio.022.in_not
2.7 9 bit IN FALSE hm2_5i20.0.gpio.022.out<==chargep
2.5 9 bit IN TRUE hm2_5i20.0.gpio.022.out<==chargepump
2.5 9 bit OUT FALSE hm2_5i20.0.gpio.027.in
2.7 9 bit OUT TRUE hm2_5i20.0.gpio.027.in
2.5 9 bit OUT TRUE hm2_5i20.0.gpio.027.in_not==>DRV3
2.7 9 bit OUT FALSE hm2_5i20.0.gpio.027.in_not==>DRV3
2.5 9 bit OUT TRUE hm2_5i20.0.gpio.033.in_not
2.7 9 bit OUT FALSE hm2_5i20.0.gpio.033.in_not
2.5 9 bit OUT FALSE hm2_5i20.0.gpio.033.in==>SOFF
2.7 9 bit OUT TRUE hm2_5i20.0.gpio.033.in==>SOFF
2.5 9 bit OUT FALSE hm2_5i20.0.gpio.035.in
2.7 9 bit OUT TRUE hm2_5i20.0.gpio.035.in
2.5 9 bit OUT TRUE hm2_5i20.0.gpio.035.in_not==>ACOK
2.7 9 bit OUT FALSE hm2_5i20.0.gpio.035.in_not==>ACOK
2.5 9 bit OUT FALSE hm2_5i20.0.gpio.036.in
2.7 9 bit OUT TRUE hm2_5i20.0.gpio.036.in
2.5 9 bit OUT TRUE hm2_5i20.0.gpio.036.in_not==>DRV2
2.7 9 bit OUT FALSE hm2_5i20.0.gpio.036.in_not==>DRV2
2.5 9 bit OUT FALSE hm2_5i20.0.gpio.037.in_not
2.7 9 bit OUT TRUE hm2_5i20.0.gpio.037.in_not
2.7 9 bit OUT FALSE hm2_5i20.0.gpio.037.in==>estop-en
2.5 9 bit OUT TRUE hm2_5i20.0.gpio.037.in==>estop-enable
2.7 9 bit IN FALSE hm2_5i20.0.pwmgen.00.enable<==Ena
2.5 9 bit IN TRUE hm2_5i20.0.pwmgen.00.enable<==Enable
2.5 5 bit IN TRUE iocontrol.0.emc-enable-in<==estop-enable
2.7 5 bit IN FALSE iocontrol.0.emc-enable-in<==estop-enable
2.5 11 bit IN FALSE motion.feed-hold<==SOFF
2.7 11 bit IN TRUE motion.feed-hold<==SOFF
2.7 11 bit IN FALSE motion.probe-input
2.5 11 bit IN TRUE motion.probe-input<==probe
LCNC Version Type Value Name Linked To
2.5 bit TRUE ACOK <==hm2_5i20.0.gpio.035.in_not
2.7 bit FALSE ACOK <==hm2_5i20.0.gpio.035.in_not
2.5 bit TRUE chargepump <==charge-pump.out
2.7 bit FALSE chargepump <==charge-pump.out
2.5 bit TRUE chargepump ==> hm2_5i20.0.gpio.022.out
2.7 bit FALSE chargepump ==>hm2_5i20.0.gpio.022.out
2.5 bit TRUE DRV2 <==hm2_5i20.0.gpio.036.in_not
2.7 bit FALSE DRV2 <==hm2_5i20.0.gpio.036.in_not
2.5 bit TRUE DRV3 <==hm2_5i20.0.gpio.027.in_not
2.7 bit FALSE DRV3 <==hm2_5i20.0.gpio.027.in_not
2.5 bit TRUE Enable ==> axis.0.jog-vel-mode
2.5 bit TRUE Enable ==> axis.1.jog-vel-mode
2.5 bit TRUE Enable ==> axis.2.jog-vel-mode
2.5 bit TRUE Enable ==> charge-pump.enable
2.5 bit TRUE Enable ==> hm2_5i20.0.pwmgen.00.enable
2.7 bit FALSE Enable ==>axis.0.jog-vel-mode
2.7 bit FALSE Enable ==>axis.1.jog-vel-mode
2.7 bit FALSE Enable ==>axis.2.jog-vel-mode
2.7 bit FALSE Enable ==>charge-pump.enable
2.7 bit FALSE Enable ==>hm2_5i20.0.pwmgen.00.enable
2.5 bit TRUE estop-enable <==hm2_5i20.0.gpio.037.in
2.7 bit FALSE Estop-enable <==hm2_5i20.0.gpio.037.in
2.5 bit TRUE estop-enable ==> iocontrol.0.emc-enable-in
2.7 bit FALSE Estop-enable ==>iocontrol.0.emc-'Enable'-in
2.5 bit FALSE SOFF <==hm2_5i20.0.gpio.033.in
2.7 bit TRUE SOFF <==hm2_5i20.0.gpio.033.in
2.5 bit FALSE SOFF ==> halui.program.pause
2.5 bit FALSE SOFF ==> motion.feed-hold
2.7 bit TRUE SOFF ==>halui.program.pause
2.7 bit TRUE SOFF ==>motion.feed-hold
LCNC Version Owner Type Dir Value Name
2.5 9 float RW 21 hm2_5i20.0.stepgen.00.maxaccel
2.7 9 float RW 0 hm2_5i20.0.stepgen.00.maxaccel
2.5 9 float RW 3.3 hm2_5i20.0.stepgen.00.maxvel
2.7 9 float RW 0 hm2_5i20.0.stepgen.00.maxvel
2.5 9 float RW 21 hm2_5i20.0.stepgen.01.maxaccel
2.7 9 float RW 0 hm2_5i20.0.stepgen.01.maxaccel
2.5 9 float RW 3.3 hm2_5i20.0.stepgen.01.maxvel
2.7 9 float RW 0 hm2_5i20.0.stepgen.01.maxvel
2.5 9 float RW 21 hm2_5i20.0.stepgen.02.maxaccel
2.7 9 float RW 0 hm2_5i20.0.stepgen.02.maxaccel
2.5 9 float RW 3.3 hm2_5i20.0.stepgen.02.maxvel
2.7 9 float RW 0 hm2_5i20.0.stepgen.02.maxvel
2.5 9 float RW 21 hm2_5i20.0.stepgen.03.maxaccel
2.7 9 float RW 0 hm2_5i20.0.stepgen.03.maxaccel
2.5 9 float RW 3.3 hm2_5i20.0.stepgen.03.maxvel
2.7 9 float RW 0 hm2_5i20.0.stepgen.03.maxvel
2.5 11 u32 RO 0x0027AE07 motion.servo.last-period
2.7 11 u32 RO 0x0027B5A5 motion.servo.last-period
2.5 11 float RO 10234 motion.servo.last-period-ns
2.7 11 float RO 1000881 motion.servo.last-period-ns
2.5 11 s32 RW 4901 motion-command-handler.tmax
2.7 11 s32 RW 41808 motion-command-handler.tmax
2.5 11 s32 RW 69381 motion-controller.tmax
2.7 11 s32 RW 90610 motion-controller.tmax
Please Log in to join the conversation.
#the Enable signal is used to permanently enable things
newsig Enable bit
sets Enable TRUE
The signal Enable is explicitly set true, and yet the signal Enable is false in the 2.7 signal list
Are you sure you are running the hal file you think you are? (the one pointed to in the ini file)?
Please Log in to join the conversation.
- lustenaderj
- Topic Author
- Offline
- New Member
-
- Posts: 8
- Thank you received: 0
Please Log in to join the conversation.
Can you set enable by hand?
halcmd sets Enable true
while monitoring Enable with halmeter or equivalent
Please Log in to join the conversation.
- lustenaderj
- Topic Author
- Offline
- New Member
-
- Posts: 8
- Thank you received: 0
Please Log in to join the conversation.
