Xavier.
I love your approach.
I rewrote my CNC functions (to which I added your great functions) to make
it easier to read and enhance in the future.
Here they are.
CNC_PressButton() {
local BUTTON=$1
local SLEEP=0.1
halcmd setp $BUTTON 1
sleep $SLEEP
halcmd setp $BUTTON 0
}
CNC_Estop() {
CNC_PressButton halui.estop.activate
echo Machine E-stopped.
}
alias estop=CNC_Estop
CNC_Pause() {
CNC_PressButton halui.program.pause
CNC_PressButton halui.spindle.stop
CNC_PressButton halui.flood.off
echo Machine paused.
}
CNC_Resume() {
CNC_PressButton halui.flood.on
CNC_PressButton halui.spindle.start
# Give time so that coolant starts running
# and spindle comes up to speed.
sleep 10
CNC_PressButton halui.program.resume
echo Machine restarted.
}
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users