logMaxNumOfRecords (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

ALL

Firmware version:

1.00 / 1.00.00


logMaxNumOfRecords will report the number of records that was set as maximum in the logInitialize(), logCreate() or logCreateMem() function (or the maximum number available if the number requested was 0).

 

Input:

handle : SYSHANDLE

A handle to the Datalogger to get the maximum 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

Maximum number of records in the Datalogger.

 

Declaration:

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

 

Example:

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