The PDF shown is actually for a AC motor as the Cn1-8 are not used on a DC brushed motor.
The usual pin out for the 5M 20-29 etc is
A - PCA CHANNEL B
B - PCB ---------A
C - 5VDC
D - /PCA CHANNEL A COMPLEMENT
E - /PCB
F - PCZ ---------Z MARKER
G - /PCZ---------Z COMPLEMENT
H - SHIELD
J - 5V
K - 5V
N - OV
P - OV
R - OH1
S - OH2
Confirm it by checking shield and OH1/OH2 thermal device if fitted.
The encoder is 5v differential 2000p/rev
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.