Ok played a bit following your help,

and this code works, actually it was quit simple but did not found it =(

Assuming that the given offset is positive but that's enough as you can go 360 degrees in total:


loop:
Offset = 400 ' example add 400 as offset
gosub read_position ' get the position: 10bit 0=0deg, 1024 =360deg
gosub set_offset
goto loop

set_offset:
position_temp = position + offset
if position_temp => 1024 then
Position_cor = position_temp - 1024
endif
if position_temp <= 1024 then
position_cor = position_temp
endif

Seems to work very well

Thanks for your help,and nice to learn from others

Walter