Ali,
I use Leafboy Mach3 Usb Motion Card (AKZ250).
Not familar with that card.
Does it provide for threading?
Can post a link to the manual for it?
I have a licenced version of Mach3, software is at latest.
Try version 062 don't use 066
Post your xml file that your using.
I use C3 card for receiving index pulses. (1 slotted disk with approx. 12mm opening.)
Post a link to that card!
The opening can be calculated, see the Lathe Manual as a guide but can be larger than calculated ( which may be your problem ).
To test the index see my writeup Threading On The Lathe in Members Doc's.
Debounce affects how manny times Mach must see the index before it accepts the signal and thus threading cycle starts.
RICH