logClose (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

1.50.00


logClose closes an open Datalogger.

 
 

Input:

handle : SYSHANDLE

A handle to an open datalogger.

 

Output:

handle : SYSHANDLE

The handle is invalid once logClose returns.

 

Returns: INT

0

- Successful.

7

- The log could not be found.

 

 

Declaration:

FUNCTION logClose : INT;
VAR_INPUT
  handle     : ACCESS SYSHANDLE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  handle:SYSHANDLE;
END_VAR;
BEGIN
  ...
  // Close datalogger
  logClose(handle:=handle);
  ...
END;
 
END_PROGRAM;