HostConnected (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


This function checks whether the RTCU module is connected to a PC with the RTCU IDE program running (or any other RACP1-capable program).

The HostConnected function will not indicate when the RTCU IDE (or any other RACP2-capable program) is connected to the device via an IP-network.

 

Input:

None.

 

Returns:_BOOL

TRUE:

Connected to a PC with the RTCU IDE running.

FALSE:

Not connected.

 

Declaration:

FUNCTION HostConnected : BOOL;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // Check for connection to RTCU IDE
  IF HostConnected() THEN
     // RTCU is connected to the RTCU IDE
     ...
  ELSE
     // RTCU is NOT connected to a PC with RTCU IDE running
     ...
  END_IF;
 
END;
 
END_PROGRAM;