Optic encoder w/6 wires

I am starting a project to create a digital readout for an X Y stage that has these

https://docs.broadcom.com/doc/AV02-1867EN

encoders in them.

With them having 6 wires I am not exactly sure on how to connect them, other than the Vdc and Gnd, to the Arduino to measure the pulses to be used to program the digital readout.

Thank you in advance!

Tom

Connect Vcc to 5V and ground to ground. Connect the A and B pins to digital inputs. The Encoder library may be of use and has information on how encoders work and are used.