mdtStandby (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.02 / 1.00.00


This function controls the power of the MDT. By using this function, the VPL program can set the MDT on standby or wake it from standby - for example in case of the "PowerUP" key press event returned from mdtGetKey().

Also see mdtPower().

 

 

Input:                

enable : BOOL

TRUE:

Sets the MDT on standby.

FALSE:

Wakes the MDT from standby.

 

Returns: INT

0

- Success.

-1

- MDT not present or communication error.

-2

- MDT not open.

 

Declaration:

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

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc : INT;
END_VAR;
 
BEGIN
  ...
  // Set MDT on standby
  rc := mdtStandby(enable := ON);
  ...
END;
END_PROGRAM;