A digital output is binary in nature, either it can be ON or it can be OFF. Either it can be 0V or it can be 24V based on the type of IO module used. Analog signal is a time-varying signal. It can be varying between 0-10V or 0-20mA based on the design.