Encoders typically will have A and B phase, Z phase is optional.Connecting to differential encodersConnecting to single-ended encoders