Dear qayyumfaiz.
You may use an incremental encoder directly at the Easy800 series.
To get a quick help select the CI (counter incremental) function block in the diagram area and
hit the F1-button. A help screen with normally sufficient informations is popping up.
To convert pulses into length you may us the AR (arithmetic) function blocks to calculate it.
Regards
Maikky