# ##################################################
# Standard I/O Block - EStop, Etc
# ##################################################
#relays
setp hm2_[HOSTMOT2](BOARD).0.gpio.040.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.041.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.042.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.043.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.044.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.045.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.046.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.047.is_output 1
net relay6 hm2_[HOSTMOT2](BOARD).0.gpio.040.out #relay6
net relay1 hm2_[HOSTMOT2](BOARD).0.gpio.041.out #relay1
net control_rdy hm2_[HOSTMOT2](BOARD).0.gpio.042.out #relay7
net mist_out hm2_[HOSTMOT2](BOARD).0.gpio.043.out #relay2
net flood_out hm2_[HOSTMOT2](BOARD).0.gpio.044.out #relay8
net gear_dn hm2_[HOSTMOT2](BOARD).0.gpio.045.out #relay3
net gear_up hm2_[HOSTMOT2](BOARD).0.gpio.046.out #relay4
net relay5 hm2_[HOSTMOT2](BOARD).0.gpio.047.out #relay5
#transistor outs
setp hm2_[HOSTMOT2](BOARD).0.gpio.064.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.065.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.066.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.067.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.068.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.069.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.070.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.071.is_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.064.invert_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.065.invert_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.066.invert_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.067.invert_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.068.invert_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.069.invert_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.070.invert_output 1
setp hm2_[HOSTMOT2](BOARD).0.gpio.071.invert_output 1
net trans0 hm2_[HOSTMOT2](BOARD).0.gpio.064.out #transistor out 0
net spin-rev hm2_[HOSTMOT2](BOARD).0.gpio.065.out #transistor out 1
net trans2 hm2_[HOSTMOT2](BOARD).0.gpio.066.out #transistor out 2
net spin-fwd hm2_[HOSTMOT2](BOARD).0.gpio.067.out #transistor out 3
net trans4 hm2_[HOSTMOT2](BOARD).0.gpio.068.out #transistor out 4
net spin-jog hm2_[HOSTMOT2](BOARD).0.gpio.069.out #transistor out 5
net trans6 hm2_[HOSTMOT2](BOARD).0.gpio.070.out #transistor out 6
net trans7 hm2_[HOSTMOT2](BOARD).0.gpio.071.out #transistor out 7
net spindle_fwd hm2_[HOSTMOT2](BOARD).0.gpio.048.in_not #in 0
net spindle_rev hm2_[HOSTMOT2](BOARD).0.gpio.049.in_not
net mpgx1 hm2_[HOSTMOT2](BOARD).0.gpio.050.in_not
net mpgx100 hm2_[HOSTMOT2](BOARD).0.gpio.051.in_not
net flood_cool hm2_[HOSTMOT2](BOARD).0.gpio.052.in_not
net mist_cool hm2_[HOSTMOT2](BOARD).0.gpio.053.in_not
net in6 hm2_[HOSTMOT2](BOARD).0.gpio.054.in_not
net on_btn hm2_[HOSTMOT2](BOARD).0.gpio.055.in_not
net in_gear3 hm2_[HOSTMOT2](BOARD).0.gpio.056.in
net in_gear2 hm2_[HOSTMOT2](BOARD).0.gpio.057.in
net in_gear1 hm2_[HOSTMOT2](BOARD).0.gpio.058.in
net oil_pressure hm2_[HOSTMOT2](BOARD).0.gpio.059.in_not
net slide_lube hm2_[HOSTMOT2](BOARD).0.gpio.060.in_not
net in13 hm2_[HOSTMOT2](BOARD).0.gpio.061.in_not
net xhome hm2_[HOSTMOT2](BOARD).0.gpio.062.in
net estop_closed hm2_[HOSTMOT2](BOARD).0.gpio.063.in_not #in 15
net control_rdy axis.3.amp-enable-out
net estop_closed iocontrol.0.emc-enable-in
net on_btn halui.machine.on
# create a signal for the estop loopback
#net estop-loop iocontrol.0.user-enable-out => iocontrol.0.emc-enable-in
# create signals for tool loading loopback
net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
net tool-change-loop iocontrol.0.tool-change => iocontrol.0.tool-changed
net in_gear1 classicladder.0.in-05
net in_gear2 classicladder.0.in-06
net in_gear3 classicladder.0.in-07
net gear_up classicladder.0.out-00
net gear_dn classicladder.0.out-01
net sel_gear1 classicladder.0.in-10
net sel_gear2 classicladder.0.in-11
net sel_gear3 classicladder.0.in-12
net gear1_led classicladder.0.out-08
net gear2_led classicladder.0.out-09
net gear3_led classicladder.0.out-10
net spin-mux0 classicladder.0.out-04
net spin-mux1 classicladder.0.out-05
net spin-enable classicladder.0.in-16
net spin-cw classicladder.0.in-17
net spin-jog classicladder.0.out-11
net spin-fwd classicladder.0.out-12
net spin-rev classicladder.0.out-13
net spin-stationary classicladder.0.in-04
net spin-atspeed classicladder.0.in-03
net spin-safetomove classicladder.0.out-06