74HC126D buffer IC with Arduino Uno 3

Thanks. I want to hack a dc servo motor which has 74hc126d. I want to make my own with arduino uno.
I also want to connect optocoupler moc7811. Can you please tell me how to connect 4 pins of position encoder ?
I posted in sensors thread but no reply. :fearful: