mbusRecordGetString (Function)

Top  Previous  Next

Architecture:

NX32L

Firmware version:

1.94.00


This function returns the value of a record as a STRING.

 

 

Input:

handle : SYSHANDLE

A handle to the connection

 

index : INT

The index of the record.

 

Output:

value : STRING

The value of the record.

 

Returns: INT

1

- Success,

0

- Not supported.

-1

- Invalid handle

-3

- No data found.

-4

- Wrong data type.

 

Declaration:

FUNCTION mbusRecordGetString : INT;
VAR_INPUT
   handle   : SYSHANDLE;
   index    : INT;
   value    : ACCESS STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
   mb  : SYSHANDLE;
   rc  : INT;
   i   : INT;
   str : STRING;
END_VAR;
 
BEGIN
   ...
   // Get string from record
   rc := mbusRecordGetString(handle:=handleindex:=ivalue:=str);
   ...
END;
END_PROGRAM;