mdtBacklight (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.02 / 1.00.00


Controls the intensity of the backlight in the display.

 

Input:                

intensity : SINT (0..10)

The intensity of the backlight (0 = off, 10=highest intensity).

 

Returns: INT

1

- Intensity out of bounds.

0

- Success.

-1

- MDT not present or communication error.

-2

- MDT not open.

 

 

Declaration:

FUNCTION mdtBacklight : INT;
VAR_INPUT
  intensity : SINT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // Set the backlight intensity
  mdtBacklight(intensity := 10);
  ...
END;
END_PROGRAM;