void UserLimitConditionSet ( RSIEventType  number,
long  conditionNumber,
RSIXmpLimitType  type,
long  address,
long  mask,
long  limitValue 
)

Description:
UserLimitConditionSet set one of the conditions for a User Limit.
Parameters:
number Use RSIEventType, such as RSIEventTypeLIMIT_USER0.
conditionNumber This should be 0 or 1, User Limits only support two conditions.
type Use RSIXmpLimitType such as RSIXmpLimitTypeBIT_CMP for bit comparison.
*address Use any address in the controller (see sample code).
mask A 32-bit AND mask, the limit ANDs the value stored in address with this mask.
limitValue Value to be compared with the value stored in address after it is ANDed with the mask.
Sample Code:
   // configure user limit to evaluate input bit
   axis->UserLimitConditionSet(RSIEventTypeLIMIT_USER0, 
                  0,
                  RSIXmpLimitTypeBIT_CMP,
                  axis->AddressGet(RSIAxisAddressTypeDIGITAL_INPUTS)),
                  0xFFFFFFFF ,
                  0x00010000);
See also:
UserLimitConfigSet , UserLimitOutputSet
Examples:
IOPointInterrupts.cs, userLimit.cpp, userLimitDigitalInputAction.cpp, userLimitGainChangeBasedOnPosition.cpp, userLimitStateAction.cpp, and watchdog.cpp.