IO Link
There is a lot to learn in this lesson beyond encoder positioning.
You will need to find the data in the array, arrange it to extract the position data, then create a sample rate to calculate the speed of the motor.
The encoder exercise starts at 35:21 of this video.