logGetMaxRecordSize (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

1.50.00


logGetMaxRecordSize will report the record size that was set as maximum in the logCreate() and logCreateMem() functions or the maximum size of the data in a record created with logInitialize().

 

Input:

handle : SYSHANDLE

A handle to the Datalogger to get the maximum record size from. If not provided, it will work on the flash-based log.

 

Returns: DINT

Maximum size of a record in the Datalogger.

 

Declaration:

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

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  maxsizerec : DINT;
END_VAR;
 
BEGIN
  ...
  // Get maximum size of a record in datalogger
  maxsizerec:=logGetMaxRecordSize();
  ...
END;
 
END_PROGRAM;