
# Inputs
#net 										hm2_7i97.0.inmux.00.input-00 #not used
#net 										hm2_7i97.0.inmux.00.input-01 #head spare (to be used for tool release)
#net 										hm2_7i97.0.inmux.00.input-02 #keylock switch (probably not present)
#net 										hm2_7i97.0.inmux.00.input-03 #setup switch (probably not present)
#net 										hm2_7i97.0.inmux.00.input-04 #tool release (in PC cabinet, not used) 
net is-estopped	  iocontrol.0.emc-enable-in	hm2_7i97.0.inmux.00.input-05-not #is-estop
net spin-at-speed	spindle.0.at-speed		hm2_7i97.0.inmux.00.input-06 #spindle at speed from spin drive
#net spin-stopped							hm2_7i97.0.inmux.00.input-07 #spindle stopped from spin drive
net lube-fault		iocontrol.0.lube_level	hm2_7i97.0.inmux.00.input-08 #lube fault
net spin-fault		spindle.0.amp-fault-in	hm2_7i97.0.inmux.00.input-09 #spindle fault
#net z-amp-fault		joint.2.amp-fault-in	hm2_7i97.0.inmux.00.input-10 #z axis faulted
#net y-amp-fault		joint.1.amp-fault-in	hm2_7i97.0.inmux.00.input-11 #y axis faulted
#net x-amp-fault		joint.0.amp-fault-in	hm2_7i97.0.inmux.00.input-12 #x axis faulted
net z-home			joint.2.home-sw-in		hm2_7i97.0.inmux.00.input-13 #z home switch
net y-home			joint.1.home-sw-in		hm2_7i97.0.inmux.00.input-14 #y home switch
net x-home			joint.0.home-sw-in		hm2_7i97.0.inmux.00.input-15 #x home switch

#net spin-load								hm2_7i97.0.7i84.0.0.input-00 #analog spindle load signal


# Outputs
net spindle-enable	spindle.0.on 			hm2_7i97.0.ssr.00.out-00 #contactor K10 spindle enable
net joint-0-enable							hm2_7i97.0.ssr.00.out-01 #contactor K10A axis drive enable
#net										hm2_7i97.0.ssr.00.out-02 #contactor K8 (unused, flood coolant)
#net										hm2_7i97.0.ssr.00.out-03 #contactor K21 (unused, ATC CW)
#net										hm2_7i97.0.ssr.00.out-04 #contactor K22 (unused, ATC CCW)
net	watchdog	iocontrol.0.user-enable-out	hm2_7i97.0.ssr.00.out-05 #Watchdog relay

setp hm2_7i97.0.7i84.0.0.output_sink 0xFFFFFFFF
setp hm2_7i97.0.7i84.0.0.output_source 0x00000000

net	joint-0-enable							hm2_7i97.0.7i84.0.0.output-00
net	joint-1-enable							hm2_7i97.0.7i84.0.0.output-01
net	joint-2-enable							hm2_7i97.0.7i84.0.0.output-02
net	spin-fwd		spindle.0.forward		hm2_7i97.0.7i84.0.0.output-03
net	spin-rev		spindle.0.reverse		hm2_7i97.0.7i84.0.0.output-04
#net spin-creep		spindle.0.orient		hm2_7i97.0.7i84.0.0.output-05
net	watchdog								hm2_7i97.0.7i84.0.0.output-06 #x-out 9 allow reset
net	z-enable								hm2_7i97.0.7i84.0.0.output-07 #z-brake contactor
#net										hm2_7i97.0.7i84.0.0.output-08 #CR12 (unused, spare M-function)
#net										hm2_7i97.0.7i84.0.0.output-09 #CR31 (unused, end-of-cycle lamp)
net	mist-coolant	iocontrol.0.coolant-mist hm2_7i97.0.7i84.0.0.output-10 #mist coolant on
#net estop-req								hm2_7i97.0.7i84.0.0.output-11 #estop request (x-out 1)
net	drawbar									hm2_7i97.0.7i84.0.0.output-12 #drawbar release



