
# estop loopback
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in  gladevcp.user-enable-out

# create signals for tool loading loopback

# in case they were linked already
unlinkp iocontrol.0.tool-change
unlinkp iocontrol.0.tool-changed

net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared gladevcp.tool-prepare
net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed gladevcp.tool-change
net start-change	iocontrol.0.start-change  iocontrol.0.start-change-ack gladevcp.start-change


net tool-lock   motion.digital-out-00 gladevcp.tool-lock-led
net tool-flush  motion.digital-out-01 gladevcp.tool-flush-led

net lube        iocontrol.0.lube              gladevcp.lube
net mist        iocontrol.0.coolant-mist      gladevcp.mist
net flood       iocontrol.0.coolant-flood     gladevcp.flood
net tool-prep-pocket	iocontrol.0.tool-prep-pocket  gladevcp.tool-prep-pocket
net tool-prep-number	iocontrol.0.tool-prep-number  gladevcp.tool-prep-number
net tool-number	iocontrol.0.tool-number  gladevcp.tool-number
net emc-reason	iocontrol.0.emc-reason  gladevcp.emc-reason


net toolchanger-reason  gladevcp.toolchanger-reason-s iocontrol.0.toolchanger-reason
net toolchanger-fault   gladevcp.set-toolchanger-faulted iocontrol.0.toolchanger-fault
net toolchanger-clear-fault  gladevcp.toolchanger-clear-fault iocontrol.0.toolchanger-clear-fault
net toolchanger-faulted  iocontrol.0.toolchanger-faulted gladevcp.toolchanger-faulted 
setp gladevcp.table 1
