I've never used the Gecko drive but from a quick look at the manual, there are two general purpose outputs you could control a relay from and a voltage output if you wanted to put a speed controller on the spindle. I'm afraid I haven't used Mach3 either so can't be any use in how to do it but it looks possible.