In the example below, encoder data is used, with the same position distances as before.
Position 4 is telescopic and Value 4 from the encoder data, is used to draw the distance the arm is
extended, in this example 2m.
$PENCO,00.0,50.0,40.0,2.0,00.0
Now the encoder Value 4 is zero and the telescopic arm is fully retracted.
$PENCO,00.0,50.0,40.0,00.0,00.0