df44dd3b825777953c0dab7cf42d9d224b64a60e
gvl.axes[i].Axis.Status.Moving doesn't seem to work if the axis isn't enabled. Therefore added a check to see whether gvl.axes[i].Axis.NcToPlc.ActVelo <> 0. If it's non-zero then don't restore the encoder value on restart. MAIN.SHUTDOWN also added to the normal operation cycle, this is to allow restart after a "Reset Cold" command in Visual Studio, otherwise the only time position is restored is an actual lose of power. It might be also useful when a user restarts the PLC program manually. Also modified a few comments in MAIN.STARTUP.
Description
Testrig with linear axis
Languages
Python
93%
sed
3.5%
Shell
3.5%