I don't think you will be able to just set ports and pins and connect to Mach.
I think the Ah-ha controllers use a board for the pulsing etc so you would need to hack into it quite a bit further back.
The ones I know that have done this usually ended up junking the Ah-ha drives and using Geckos or Leadshines, getting a breakout board and spindle controller etc and going from there.
Hood