dpGetStatusBit()

Retrieves status bits.

Synopsis

int dpGetStatusBit(bit64 aStatus, string aBitAttribute);

Parameters

Parameter Description
aStatus Any bit32 variable
aBitAttribute Denotes a valid bit attribute

Return Value

In the event of an error, -1 is returned. The return value 0 or 1 corresponds to the value of the retrieved bit

Errors

Description

The function dpGetStatusBit() is used to retrieve status bits. aStatus is any bit64 variable. aBitAttribute is a string that describes a valid, existing bit attribute. The return value 0 or 1 corresponds to the value of the retrieved bit

Example

main()
{
  bit32 status;
  string aBitAttribut=":_original.._userbit6";
  int dp;
  dpGet("ExampleDP_Bit32.:_original.._status", status);
  DebugN("Original Status : "+status);
  dp=dpGetStatusBit(status, aBitAttribut );
  DebugN("Return "+dp);
}

Assignment

Data point function

Availability

CTRL