Clear

This method sets the alarm state to Not Raised.
Syntax
METHOD Clear : HRESULT
VAR_INPUT
    nTimeStamp         : ULINT;
    bResetConfirmation : BOOL;
END_VAR
 Inputs
Name  | Type  | Description  | 
|---|---|---|
nTimeStamp  | ULINT  | 0: Current time stamp is used > 0: External time stamp in 100 nanoseconds since January 1st, 1601 (UTC).  | 
bResetConfirmation  | BOOL  | If TRUE and the confirmation state is WaitForConfirmation, the confirmation state is set to Reset. Otherwise the confirmation state is not changed.  | 
 Return value
Name  | Type  | Description  | 
|---|---|---|
Clear  | HRESULT  | Returns S_OK if the method call was successful. Returns ADS_E_INVALIDSTATE if the alarm was not in the Raised state. Otherwise returns HRESULT as the error code.  |