This 4-ch opto-board is likely not compatible with the low-power digital outputs of the MKS board.
The optocouplers already built into the servo drive probably require a slightly higher signal level (>4V) to be driven directly from the MKS board.
I always use a differential signal driver, such as the AM26LV31, to drive the Pulse/Sign-lines (<500kHz) and for the Enable-lines i'm using a 74LS07 or transistors.