What is the purpose of the DATA pin in the rotary encoder?

What is the purpose of the DATA pin in the rotary encoder? Correct Answer To provide direction of motion

The rotary encoder has a CLK pin and a DATA pin. The DATA pin gives out pulses which vary in phase depending upon the direction of rotation of the rotary encoder which is determined by comparing it with the non-variable pulse train of the CLK pin.

Related Questions

Statement (I): The term ‘encoder’ is used for a device that provides an analog output as a result of angular or linear displacement. Statement (II): An increment encoder detects changes in angular or linear displacement from some datum position where as an absolute encoder gives the actual angular or linear position.
What is the purpose of the CLK pin in the rotary encoder?