accLoggerLevel (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

CX1, SX1, MX2 turbo/encore/warp, NX-200, NX-900, LX2, LX5

Firmware version:

2.40 / 1.40.00


This will return the amount of space used by the logger.

The logger must first have been started with accLoggerStart for buffer to be filled.

 

 

Returns: INT

0-1000

- Logger level in 0.1 percent.

 

Declaration:

FUNCTION accLoggerLevel : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM example;
VAR
  buf : ARRAY [1..500] OF DINT;
END_VAR;
accOpen();
accLoggerSetConfig(buffer := ADDR(buf), size := SIZEOF(buf));
accLoggerStart();
BEGIN
IF accLoggerLevel() > 800 THEN
    ...
 END_IF;
END;
END_PROGRAM;