UserLimit.ConditionDedicatedOut
The axis dedicated output used for DedicatedOut condition type.
Version History
Introduced in MPX 2.0.
Type
Mpx.DedicatedOut
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 ConditionDedicatedOut 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 ConditionDedicatedOut As Mpx.DedicatedOut(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.DedicatedOut userLimit.ConditionAxis(0) = controller.Axis(0).Number userLimit.ConditionActiveHigh(0) = False userLimit.ConditionDedicatedOut(0) = Mpx.DedicatedOut.AmpEnable
userLimit.GenerateEvent = True
userLimit.Action = Mpx.Action.None
userLimit.ConfigurationEnd() ' Writes configuration to the controller
|
Sample Application
C#
Syntax
Mpx.DedicatedOut[] ConditionDedicatedOut;
Sample Code
|
Mpx.UserLimit 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.DedicatedOut; userLimit.ConditionAxis[0] = controller.Axis[0].Number; userLimit.ConditionActiveHigh[0] = false; userLimit.ConditionDedicatedOut[0] = Mpx.DedicatedOut.AmpEnable;
userLimit.GenerateEvent = true;
userLimit.Action = Mpx.Action.None;
userLimit.ConfigurationEnd(); // Writes configuration to the controller
|
See Also
ConditionActiveHigh
ConditionAxis
ConditionType
Enumerations
DedicatedOut
UserLimitConditionType
|