UserLimit.ConditionIs64Bit
Determines if a 64-bit comparison should be used for a condition. ConditionIs64Bit is used by the Custom condition type.
Version History
Introduced in MPX 2.0.
Type
Boolean
Index
|
Index Type |
Description |
Int32 |
The index of the condition that is being accessed. Valid index values include 0 and 1. |
|
Common Exceptions
|
Error |
Occurs when... |
UserLimitCannotConfigure |
Attempting to set ConditionIs64Bit and the user limit is not in a ‘being configured’ state.
To resolve the problem, call UserLimit.ConfigurationBegin to begin configuring the user limit.
|
|
Visual Basic
Syntax
Property ConditionIs64Bit As Boolean(index As Int32)
Sample Code
|
Dim userLimit As Mpx.UserLimit = controller.Axis(0).UserLimit(0)
userLimit.ConfigurationReset() ' Reset user limit configuration before configuring it
userLimit.ConfigurationBegin() ' Begin configuration
' Configure user limit
userLimit.TriggerType = Mpx.UserLimitTrigger.SingleCondition userLimit.ConditionType(0) = Mpx.UserLimitConditionType.Custom userLimit.ConditionIs64Bit(0) = False userLimit.ConditionIsSingle(0) = False userLimit.ConditionLogic(0) = Mpx.UserLimitLogic.Eq userLimit.ConditionMask(0) = &hFFFFFFFF userLimit.ConditionSrcAddress(0) = srcAddress userLimit.ConditionValue(0) = 256
userLimit.GenerateEvent = True
userLimit.Action = Mpx.Action.None
userLimit.ConfigurationEnd() ' Writes configuration to the controller
|
Sample Application
C#
Syntax
bool[] ConditionIs64Bit;
Sample Code
|
Mpx.UserLimit userLimit = controller.Axis[0].UserLimit[0];
int userBufferIndex = 0;
String UserBufferLocation = controller.Map.StringGet(Mpx.Map.UserBuffer, userBufferIndex);
userLimit.ConfigurationReset(); // Reset user limit configuration before configuring it
userLimit.ConfigurationBegin(); // Begin configuration
// Configure user limit
userLimit.TriggerType = Mpx.UserLimitTrigger.SingleCondition; userLimit.ConditionType[0] = Mpx.UserLimitConditionType.Custom; userLimit.ConditionIs64Bit[0] = false; userLimit.ConditionIsSingle[0] = false; userLimit.ConditionLogic[0] = Mpx.UserLimitLogic.Eq; userLimit.ConditionMask[0] = 0xFFFFFFFF; userLimit.ConditionSrcAddress[0] = srcAddress; userLimit.ConditionValue[0] = 256;
userLimit.GenerateEvent = true;
userLimit.Action = Mpx.Action.None;
userLimit.ConfigurationEnd(); // Writes configuration to the controller
|
See Also
ConditionIsSingle
ConditionLogic
ConditionMask
ConditionSrcAddress
ConditionType
ConditionValue
Enumerations
UserLimitConditionType
|