About 5-7 years ago, someone made a board to do what you want. It worked by doing everything in hardware, and sending a single signal to Mach3, so that Mach3 thought it was homing to a single switch.
As Jeff says, what you're trying to do won't work.
Some motion controllers, like the CS Labs controllers, can do what you want.