mbusRecordGetIntLarge (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

LX4,NX-400

Firmware version:

1.94.00


This function returns the value of a record containing an integer of up to 64 bit as two DINTs.

 

 

Input:

handle : SYSHANDLE

A handle to the connection

 

index : INT

The index of the record.

 

Output:

value_lo : DINT

The lower 32 bits of the record value.

 

value_hi : DINT

The upper 32 bits of the record value.

 

Returns: INT

1

- Success,

0

- Not supported.

-1

- Invalid handle

-3

- No data found.

-4

- Wrong data type.

 

Declaration:

FUNCTION mbusRecordGetIntLarge : INT;
VAR_INPUT
  handle   : SYSHANDLE;
  index   : INT;
  value_lo : ACCESS DINT;
  value_hi : ACCESS DINT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  mb       : SYSHANDLE;
  rc       : INT;
  i       : INT;
  d_l, d_h : DINT;
END_VAR;
 
BEGIN
  ...
  // Get 64 bit value from record
  rc := mbusRecordGetIntLarge(handle:=handle, index:=i, value_lo:=d_l, value_hi:=d_h);
  ...
END;
END_PROGRAM;