Based on some quick research, I don't think a nmotion BOB will work with Mach4. The Mach4 website is very specific about what BOBs will work with Mach4. I also did some other forum searches and can't find anything that would indicate it's possible.
If you want to use Mach4, then I would recommend using one of the listed units on the Mach4 page.