CP is your step signal
CW is your direction signal
section 9.2 of the manual shows 2 wiring options
https://www.google.com/url?sa=t&source= ... M24AixmJtfif it were me:
I would wire the 5V0 to CP- and CW-
I would then wire one of the non isolated outputs OF to 017 to CP+ and a separate (different) non isolated output to CW+
but as section 9.2 shows you you could wire up CP+ and CW+ to 5V+ and then you would wire up CP- and CW- to separate non isolated outputs OP9-17
either will work
it is clearly shown in this diag
https://www.cncdrive.com/img/AXBB-E_5.png