1 ###################################################################### 2 # 3 # Igor's Command Buttons Handling 4 # 5 6 ############################## Buttons 7 # See MACHINE CONTROL SWITCHES 8 # section in my spreadsheet 9 # 10 11 # Definition of button number 7 == The Flood switch (maintained) 12 net IgorFloodButton and2.0.in0 <= ppmc.0.din.6.in 13 14 # Easy just to try button 15 # net IgorFloodButton => FloodOn 16 17 ############################## Actions 18 loadrt and2 count=1 19 loadrt or2 count=1 20 21 addf and2.0 servo-thread 22 net ManualFloodIn1 and2.0.in0 <= IgorFloodButton 23 net ManualFloodIn2 and2.0.in1 <= motion.spindle-on 24 net ManualFloodEnabled or2.0.in0 <= and2.0.out 25 26 addf or2.0 servo-thread 27 net AllFloodIn or2.0.in0 # <= ManualFloodEnabled 28 net AllFloodIn or2.0.in1 <= iocontrol.0.coolant-flood 29 net AllFloodEnabled ppmc.0.dout.03.out <= or2.0.out 30 31 # Explanation: turn flood on if either EMC requests it (GUI button, or G code), 32 # or if the MIST/FLOOD switch is on FLOOD and spindle is running. 33 34 # 35 ######################################################################