.

UserLimit.ConfigurationReset

ConfigurationReset sets the configuration of the UserLimit object to the default disabled configuration.

Version History

Introduced in MPX 2.0.

Result

Void

Common Exceptions

 
Error Occurs when...
Argument

An invalid argument is specified.

Visual Basic

Syntax

Sub ConfigurationReset()

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

 

C#

Syntax

void ConfigurationReset();

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


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