fsStatusLEDEnable (Function)

Top  Previous  Next

Architecture:

X32 / NX32

Device support:

All

Firmware version:

1.02


This function controls the use of a LED3 and LED4 on the RTCU device as status indicator for the file system.

When the status is enabled, LED 3 and LED 4 cannot be used from the application (no output variable can be configured to use the LEDs).

 

The use of LED3/4  has the following interpretation:

 


Off

SD-CARD is not present.


Green, Constant

SD-CARD is present.


Green, Blinking

SD-CARD is ejected and can be removed.


Orange

Read/write operation on the SD-CARD.

 

Note: on devices where LED3 and LED4 are not present, LED1 and LED2 are used instead.

Note: This function is not supported on NX32L.

 

Input:

enable : BOOL

TRUE:

Use the LED for status.

FALSE:

Do not use the LED for status.

 

Returns: INT

0

- Success.

 

Declaration:

FUNCTION fsStatusLEDEnable : INT;
VAR_INPUT
  enable : BOOL;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
  fsStatusLEDEnable(enable:=ON);
BEGIN
  ...
END;
END_PROGRAM;