StopSystem 

Method for stopping the TwinCAT system via COM/DCOM.

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

Parameters

stopParm

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

Return Values

HRESULT == S_OK

TwinCAT halt successful.

HRESULT == E_FAIL

Error during TwinCAT system halt.

Comments

StopSystem stops the TwinCAT system on the computer on which the TcSystemServer object was instantiated. All messages are registered in the Windows events display of that computer. The TwinCAT system will be stopped, even if StopSystem returns an error.