Browse Source

hal using estop relay

master
Wolfgang Villing 1 year ago
parent
commit
40725c74af
2 changed files with 18 additions and 8 deletions
  1. +18
    -8
      config/machinekit/configs/bbmill/bbmill.hal
  2. BIN
      doc/50014_SAFE_4_eco_190430.pdf

+ 18
- 8
config/machinekit/configs/bbmill/bbmill.hal View File

@ -42,6 +42,7 @@ loadrt toggle count=8
loadrt not count=8
loadrt or2 names=ampFaultY
loadrt debounce names=estopdebounce
loadrt timedelay names=estopdelay
# Python user-mode HAL module to read ADC value and generate a thermostat output for PWM
# t = Thermistor table (only epcos_B57560G1104 or 1 supported for now)
@ -85,6 +86,8 @@ addf not.6 servo-thread
addf not.7 servo-thread
addf ampFaultY servo-thread
addf estopdebounce servo-thread
addf estopdelay servo-thread
# ######################################################
# Axis-of-motion Specific Configs (not the GUI)
@ -219,17 +222,23 @@ net in3 <= bb_gpio.p8.in-16 => motion.digital-in-03
setp bb_gpio.p8.in-16.invert 1
net in4 <= bb_gpio.p8.in-15 => motion.digital-in-04
net in5 <= bb_gpio.p8.in-18 => motion.digital-in-05
net in5 <= bb_gpio.p8.in-18 => motion.digital-in-05 estopdebounce.1.in estopdelay.in
setp bb_gpio.p8.in-18.invert 1
net in6 <= bb_gpio.p8.in-17 => motion.digital-in-06
setp estopdelay.on-delay 0.1
net st estopdelay.out => halui.machine.on
net in7 <= bb_gpio.p8.in-20 => motion.digital-in-07
net in8 <= bb_gpio.p8.in-21 => motion.digital-in-08
net in9 <= bb_gpio.p8.in-22 => motion.digital-in-09
net out0 motion.spindle-forward => bb_gpio.p8.out-07 motion.digital-in-20
net out1 => bb_gpio.p8.out-08 motion.digital-in-21
net out2 iocontrol.0.coolant-mist => bb_gpio.p8.out-05 motion.digital-in-22
net out3 => bb_gpio.p8.out-06 motion.digital-in-23
net out4 => bb_gpio.p8.out-09 motion.digital-in-24
net out0 motion.spindle-forward => bb_gpio.p8.out-07 motion.digital-in-20
net out1 => bb_gpio.p8.out-08 motion.digital-in-21
net out2 iocontrol.0.coolant-mist => bb_gpio.p8.out-05 motion.digital-in-22
net out3 halui.machine.is-on => bb_gpio.p8.out-06 motion.digital-in-23 ### LED
#setp bb_gpio.p8.out-06.invert 1
net out4 iocontrol.0.user-enable-out => bb_gpio.p8.out-09 motion.digital-in-24
# Out RJ45
#net out4 => bb_gpio.p8.out-46
net out5 => bb_gpio.p8.out-10
@ -268,10 +277,11 @@ net in4 => motion.probe-input
### Control Panel Buttons ###
# eStop
#net estop-loop iocontrol.0.user-enable-out => iocontrol.0.emc-enable-in => bb_gpio.p8.out-42
net estopout iocontrol.0.user-enable-out => bb_gpio.p8.out-42
#net estopout iocontrol.0.user-enable-out => bb_gpio.p8.out-42
setp bb_gpio.p8.out-42.invert 1
net esin bb_gpio.p8.in-32 => estopdebounce.1.in
#net esin bb_gpio.p8.in-32 => estopdebounce.1.in
net esout estopdebounce.1.out => iocontrol.0.emc-enable-in
setp estopdebounce.delay 30
setp bb_gpio.p8.in-32.invert 1


BIN
doc/50014_SAFE_4_eco_190430.pdf View File


Loading…
Cancel
Save