mbusClose (Function)

Top  Previous  Next

Architecture:

NX32L

Firmware version:

1.94.00


This function is used to close an M-Bus connection.

 

 

 

 

Input:

handle : SYSHANDLE

A handle to the connection to close.

 

Returns: INT

1

- Success

0

- Not supported

-1

- Invalid handle

 

Declaration:

FUNCTION mbusClose : INT;
VAR_INPUT
   handle   : ACCESS SYSHANDLE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
   mb : SYSHANDLE;
   rc : INT;
END_VAR;
 
BEGIN
   ...
   // Open wired M-Bus interface
   rc := mbusOpen(handle := mb);
   ...
   // Close wired M-Bus interface
   rc := mbusClose(handle := mb);
   ...
END;
END_PROGRAM;