By setting it to x4 it will count up and down. So depending on how you wire or program it it will lets say count up to 1000 when it reaches end of the line and ans it retracts it will count down. You can then scale total counts =1050mm. Use the Linear Function for this. Math->Linearization->Linearization
Net/wire length:
Min(x1) =0
Max(x2)=1050mm
After you zero Encoder Counts when fully retracted:
Min(y1)=0
Max(y2)= (extend wire counts)
X=HSC1
Y=Output.
Set X to Zero to Zero Encoder