logNumOfRecords (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.00 / 1.00.00


logNumOfRecords will report the number of records currently in the Datalogger.

 

Input:

handle : SYSHANDLE

A handle to the Datalogger to get the number of records from. If not provided, it will work on the flash-based log. Only supported on NX32L with firmware 1.50.00 or newer.

 

Returns: DINT

Number of records in the Datalogger.

 

Declaration:

FUNCTION logNumOfRecords : DINT;
VAR_INPUT
   handle     : SYSHANDLE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
   numrec : DINT;
END_VAR;
 
BEGIN
   ...
   // Get number of records in datalogger
   numrec:=logNumOfRecords();
   ...
END;
 
END_PROGRAM;