An encoder that outputs both digital and high resolution analog signals used in servo control in packaging machines.