Getting code to get EEPROM number

Sorry guys.
Just trying to keep it simple. :frowning:

But overall explained. Im building a machine that has a motor with a rotary encoder.
It moves forward or backward. Only moves when buttons are pressed.

The function I'm after is to be able to press a button, to save its position.
And then when the motor passes by that position, it will pause its journey for 1 second.

So, right now I'm able to save the position, and I have confirmed its saved. So that works.
Now the goal is for this code to read this position from the memory.
And I dont know whats the best way to do it.

I GUESS, that I could have a code in my main code that simple updates itself with the new position.

Any suggestions? :o