msEventUnregister (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-200, LX2

Firmware version:

1.50.00


Remove specified event handler.

 

After an event has been triggered it is automatically unregistered. The exception to this is shock and acceleration events.

Unregistering the last registered shock or acceleration event disables shock or acceleration detection, and there must be registered a new to continue detection.

 

 

Input:

Event : DINT

The event ID given from msEventRegister of the event handler to unregister.

 

Returns: INT

1

- Success.

0

- This function is not supported.

-1

- Interface is not open. Call msOpen first.

-2

- Generic error.

-11

- No event handler with given ID.

 

 

Declaration

FUNCTION msEventUnregister : INT;
VAR_INPUT
  Event   : DINT;
END_VAR;

 

Example:

  ...
  rc := msEventUnregister(event:=shockid);
  DebugFmt(message:="msEventUnregister shock (rc=1)", v1:=rc);
  ...