mbusRecordGetFloat (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

LX4,NX-400

Firmware version:

1.94.00


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

 

 

Input:

handle : SYSHANDLE

A handle to the connection

 

index : INT

The index of the record.

 

Output:

value : FLOAT

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 mbusRecordGetInt : INT;
VAR_INPUT
  handle   : SYSHANDLE;
  index   : INT;
  value   : ACCESS FLOAT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  mb : SYSHANDLE;
  rc : INT;
  i   : INT;
  val : FLOAT;
END_VAR;
 
BEGIN
  ...
  // Get value from record
  rc := mbusRecordGetFloat(handle:=handle, index:=i, value:=val);
  ...
END;
END_PROGRAM;