This may be a little more complex. It should be doable, but we would need to get into the details of the circuit your stepper motors use to figure out how to wire and configure the logic for this.
If you are using closed loop steppers, you may be better off using a multifunction board using the RJ45 connector boards. These RJ45 connector boards handle the wiring and logic for most drives making it easier to wire systems with feedback as they not just connect the step and direction signals, but also the fault and enable signals.
In your case, maybe the C76 with the C34HS connector boards would be the solution:
https://www.cnc4pc.com/c76-uc300-mul...ion-board.html
https://www.cnc4pc.com/c34-for-hybrid-servo-drive.html
Let me know if you have any questions.
Arturo Duncan
https://cnc4pc.com