The problem is that the breakout board has NPN Open Collector outputs and for that to work you must connect to the negative side of the opto and power the opto's positive side with a positive Voltage.
This is not possible with the DG4S, because the step and direction signal input grounds are commoned, so you can't pull them separated.
Our drive works with positive logic only PNP and Push-Pull outputs.
There is a workaround though which you could use to make it working, I describe:
- Pull the output of the breakout board to 5Volts on the breakout board with a resistor, probably a 220 Ohms resistor will do the job.
- Connect the output to the step input on the drive (pin 2.)
- Connect the GND (pin 3.) to the GND of the breakout board.
Do the same also with the dir signal.
This way when the NPN transistor on the breakout board is off then the added 220 Ohms resistor will flow current into the optocoupler in the drive.
When the NPN transistor on the breakout board is on then it will pull the output low bypassing the 220 Ohm resistor, the potential of the output point will go to 0Volts (GND), so there will be no current flow in the drive's optocoupler.
One more thing to note is that this will invert the signals, so you will have to change the Active low settings in Mach3.