.

UserLimit.GenerateEvent

Determines whether a user limit generates an event when the user limit’s trigger is fired.

A value of True means that an event is generated.
A value of False means that an event is not generated.

Version History

Introduced in MPX 2.0.

Type

Boolean

Common Exceptions

 
Error Occurs when...
UserLimitCannotConfigure

Attempting to set GenerateEvent 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 GenerateEvent As Boolean

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.Timer
userLimit.Duration = 5.0
userLimit.GenerateEvent = True
userLimit.Action = Mpx.Action.None

userLimit.ConfigurationEnd() ' Writes configuration to the controller


Sample Application

UserLimit1

C#

Syntax

bool GenerateEvent;

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.Timer;

userLimit.Duration = 5.0;

userLimit.GenerateEvent = true;

userLimit.Action = Mpx.Action.None;

 

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

 

 

See Also

Action
Duration
TriggerType

Enumerations
UserLimitTrigger

Overviews
User Limits Overview




 

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