Fmag_Polarity Property

Application
Force Trigger Object FT#

Description
Sets or returns for resultant force whether the force trigger is activated or inactivated when values correspond to or do not correspond with threshold values.

Immediate Execution
No

Usage
FGet Object.Fmag_Polarity, iVar
FSet Object.Fmag_Polarity, iValue

  • Object
    Object name
    The object is specified as either of FT (numerical value) or FT (label).

  • iVar
    An integer variable defining the value of the property

  • iValue
    An integer value or formula defining the new value of the property

Values
iValue

Name of constants Values Description
FG_OUT 0 Activates when the value is outside of the thresholds. (default)
FG_IN 1 Activates when the value is within the thresholds.

Detailed Explanation
Fmag_Polarity returns the status of or sets whether the force trigger is triggered by either the resultant force being within the thresholds or the resultant force being outside of the thresholds.

Usage Example
This example generates an error and stops the robot when the resultant force is above the upper threshold or below the lower threshold.

Function SettingPolarity
  FSet FT1.Enabled, False, False, False, False, False, False, True, False
  FSet FT1.Fmag_Polarity, FG_OUT
  FSet FT1.Fmag_Levels, 0, 50
  Trap 1, FT1 Call ForceError
Fend

Function ForceError
  AbortMotion All
Fend

See Also
Force Trigger Object FT#