Control: Fanuc 18i
Machine: YCM-XV1020A

I have bought a cheap tool setter off amazon that has two switches, the primary trip switch, and then an emergency overtravel switch. I want to get it wired into my machine and make a macro utilizing G31 to set tools. The macro itself won't be a problem, but I am trying to figure out where I need to wire this thing so that it triggers the skip function and the emergency stop. Below is a picture from the manual. Is x4.7 connected to the skip function (G31) or is that something else? If it is the skip function, does that mean when my normally closed switch, wired from +24v to x4.7 trips open, the machine will stop motion while in a G31 move?

The next thing to figure out is where to wire the emergency switch, I assume it will be as easy as wiring it from +24v to any open emergency stop wires?

Will I need any ladder changes for this to work? Any parameter changes? Any other related knowledge I will need?

Thank you,
Cole