I would just add that you might find these adapters more useful for connection with your existing drivers, switches etc..:
https://planet-cnc.com/product/limit-input-board/
https://planet-cnc.com/product/adapt...rew-terminals/
Yes, you can use 5axis machine with our motion control system.
Make sure that you will be using suitable 5 axis gcode.