did a Little bit of searching. all i found is this pinout:
Pin assignments for the DB 25 male is
Pin Application Description
1 RELAY Switch output eg (motor on)
2 Direction X axis
3 Cycle X axis
4 Direction Y axis
5 Cycle Y axis
6 Direction Z axis
7 Cycle Z axis
8 4th Axis
9 4th Axis
10 Free
11 References switch Z
12 References switch Y
13 References switch X
14 RELAY Output eg coolant
15 Reference switch 4th axis
16 - 24 Free
25 OV DC, Earthing
The 9 pin connection pins are as follows for the reference switches
1 X1 Machine point of origin port 1 X Axis
2 Y1 Machine point of origin port 1 Y Axis
3 Z1 Machine point of origin port 1 Z Axis
4 ROUND TABLE
5 +12V DC
6 X2 Machine point of origin port 2 X Axis
7 Y2 Machine point of origin port 2 Y Axis
8 Z2 Machine point of origin port 2 Z Axis
9 OV DC
but not Information on witch port/pin's the Rotary Encoder will Show up.
maybeyou can run a parallel port test tool like this:
http://www.xlentelectronics.nl/LPTTest/LPTTestUtilx64r.htmand have a look witch Inputs are flashing if you turn the Encoder.
i assume you run at parallel port of your PC