OnSystemStop 

Method which is called when the TwinCAT system is stopped.

HRESULT OnSystemStop(
  [in,optional] VARIANT stopParm,
);

Parameters

stopParm

[in,optional]
Optional parameter which is currently not being evaluated.

Return Values

The return values are not evaluated.

Comments

OnSystemStop is called prior to the final halt of TwinCAT.