How i think of it is NPN = PN 24v(P) dropping to 0v(N) when outputting PNP = NP 0v(N) rising to 24v(P) when outputting.

I would ditch the CIB and get yourself one of these Dsub25

Then you can wire direct to your stepper drives, im using servo drive/motors but the same applies to you.