ITcPlcOnline::Reset

Resets the PLC controller. If set to PLC_RESET_TYPE_Origin, ResetOriginActiveApplicationCommand is executed, otherwise (Cold) ResetColdActiveApplicationCommand is executed.

Signature

HRESULT Reset([in, defaultvalue(PLC_RESET_TYPE_Cold)] PLC_RESET_TYPE resetType);

Parameter

Name

Type

Description

resetType

PLC_RESET_TYPE

[in, defaultvalue(PLC_RESET_TYPE_Cold)] Reset type. See PLC_RESET_TYPE.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes