.

UserLimit.ConditionActiveHigh

Defines whether a condition is evaluated as True when a digital I/O bit is active high or an external condition is active on.

A value of True indicates that the condition will evaluate true when the digital I/O bit is high or an external condition is on.

A value of False indicates that the condition will evaluate true when the digital input is low or an external condition is off.

ConditionActiveHigh is used for AxisDemand, CaptureState, ControlDigitalIn, ControlDigitalOut, DedicatedIn, DedicatedOut, GeneralIn, GeneralOut, Limit, SqNodeDigitalIn, SqNodeDigitalOut, and Custom condition types.

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 ConditionActiveHigh 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 ConditionActiveHigh 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.ControlDigitalIn
userLimit.ConditionActiveHigh(0) = True
userLimit.ConditionBit(0) = 3 userLimit.GenerateEvent = True userLimit.Action = Mpx.Action.None userLimit.ConfigurationEnd() ' Writes configuration to the controller

 


Sample Application

 

C#

Syntax

bool[] ConditionActiveHigh;

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.ControlDigitalIn;
userLimit.ConditionActiveHigh[0] = true; 
userLimit.ConditionBit[0] = 3;

userLimit.GenerateEvent = true;
userLimit.Action = Mpx.Action.None;

userLimit.ConfigurationEnd(); // Writes configuration to the controller 

 

See Also

ConditionAxis
ConditionBit
ConditionCapture
ConditionDedicatedIn
ConditionDedicatedOut
ConditionLimitType
ConditionNode
ConditionType

Enumerations
UserLimitConditionType


       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering