mdtContrast (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.03 / 1.00.00


This controls the contrast in the display.

 

Input:                

intensity : SINT (0..10)

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

 

Returns: INT

1

- Intensity out of bounds.

0

- Success.

-1

- MDT not present or communication error.

-2

- MDT not open.

 

Declaration:

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

 

 

Example:

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