Optical encoder 6 wires wiring?

thank you for anwers. I still have an interogation, I need to wire the anode and cathode to a 5vdc?