mdtCursor (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.02 / 1.00.00


This function is used to enable or disable the cursor.

 

Input:                

enable : BOOL

TRUE:

- Shows cursor.

FALSE:

- Hides cursor.

 

Returns: INT

0

- Success.

-1

- MDT not present or communication error.

-2

- MDT not open.

 

Declaration:

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

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc : INT;
END_VAR;
 
BEGIN
  ...
  // Show cursor
  rc := mdtCursor(enable := ON);
  ...
END;
END_PROGRAM;