.

UserLimit.OutputNewValue

The new 32-bit signed integer value to be written when a user limit’s trigger fires.

OutputNewValueInt32 is used for SqNodeAnalogOut, UserBuffer, and Custom output types.

Version History

Introduced in MPX 2.0.

Type

Int32

Common Exceptions

 
Error Occurs when...
UserLimitCannotConfigure

Attempting to set OutputNewValue32 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 OutputNewValueInt32 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.ActualPosition
userLimit.ConditionAxis(0) = controller.Axis(0).Number
userLimit.ConditionLogic(0) = Mpx.UserLimitLogic.AbsLe
userLimit.ConditionPosition(0) = 1000

userLimit.OutputType = Mpx.UserLimitOutputType.Custom
userLimit.OutputAddress = outputLocation ' VM3 address
userLimit.OutputIsSingle = False
userLimit.OutputAndMask = 0
userLimit.OutputOrMask = newUInt32Value

userLimit.OutputType = Mpx.UserLimitOutputType.UserBuffer
userLimit.OutputType = Mpx.UserLimitOutputType.Custom
userLimit OutputIndex = UserBufferIndex
userLimit.OutputIsSingle = False
userLimit.OutputNewValueInt32 = (int)newUserBufferValue

userLimit.GenerateEvent = True
userLimit.Action = Mpx.Action.None

userLimit.ConfigurationEnd()' Writes configuration to the controller

            

 


Sample Application

 

C#

Syntax

int OutputNewValueInt32;

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.ActualPosition;
userLimit.ConditionAxis[0] = controller.Axis[0].Number;
userLimit.ConditionLogic[0] = Mpx.UserLimitLogic.AbsLe;
userLimit.ConditionPosition[0] = 1000;
userLimit.OutputType = Mpx.UserLimitOutputType.UserBuffer;
userLimit OutputIndex = UserBufferIndex;
userLimit.OutputIsSingle = FALSE;
userLimit.OutputNewValueInt32 = (int)newUserBufferValue;
userLimit.OutputAndMask = 0;
userLimit.OutputOrMask = (uint)newUserBufferValue;
userLimit.GenerateEvent = true; userLimit.Action = Mpx.Action.None;

 

See Also

OutputAddress
OutputAndMask
OutputChannel
OutputIndex
OutputIsSingle
OutputNewValueSingle
OutputNode
OutputOrMask
OutputType

Enumerations
UserLimitOutputType

Overviews
User Limits Overview





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