Rot_Polarity Property

Application
Force Motion Restriction Object FMR#

Description
This returns the status of or sets whether the force motion restriction is activated for rotation angle by the value being either within the thresholds or outside of the thresholds.

Immediate Execution
No

Usage
FGet Object.Rot_Polarity, iVar
FSet Object.Rot _Polarity, iValue

  • Object
    Object name
    The object is specified as either of FMR (numerical value) or FMR (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
Rot_Polarity returns the status of or sets whether the force motion restriction is activated for rotation angle by the value being either within the thresholds or outside of the thresholds.

Usage Example
This example generates an error and stops the robot if the rotation angle is less than the lower threshold value or more than the upper threshold value.

Function SettingPolarity
  FSet FMR1.Rot_Enabled, True
  FSet FMR1.Rot_Polarity, FG_OUT
  FSet FMR1.Rot_Levels, 0, 10
  Trap 1, FMR1 Call ForceError
Fend

Function ForceError
  AbortMotion All
Fend

See Also
Force Motion Restriction Object FMR#