rfbcOpen (Function)

Top  Previous  Next

Architecture:

X32 / NX32L

Device support:

AX9 pro, CX1 pro/pro-c/warp/warp-c, SX1, AX9 turbo, NX-900, LX5

Firmware version:

2.60 / 1.51.00


This function will open the RFBC protocol interface. Calling this function is required before the RFBC interface can be used.

It is necessary to call rfbcClose after using the interface.

 

Input:

None.

 

Returns: INT

0

-

Ok. Interface is open.

-2

-

Interface already open or RF module locked by another interface (see rfClose()).

-4

-

RF communication is not available.

 

Declaration:

FUNCTION rfbcOpen : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM example;
 
BEGIN
  rc := rfbcOpen();
  IF rc <> 0 THEN
    DebugFmt(message := "Error: rfbcOpen = \1", v1 := rc);
  END_IF;
 
  ...
 
  // Close the rfbc interface
  rfbcClose();
 
  ...
END;
END_PROGRAM;