mbusRecordGetLinsec (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 linsec value.

 

 

Input:

handle : SYSHANDLE

A handle to the connection

 

index : INT

The index of the record.

 

Output:

value : DINT

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

 

 

Example:

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