Motivation: after the position restore code has executed successfully there is no point running any of the code again and wasting PLC cycles. Thus the first step in the MAIN.STARTUP is a check whether the code has been completed or not. If it is has completed successfully ignore everything else.