FSet Statement

Application
Force Object FC#, Force Trigger Object FT#, Force Monitor Object FM#, Force Coordinate System Object FCS#

Description
Used when setting the value of force object properties.

Usage
FSet Object.Property, Values

  • Object
    Object name defining the property value

  • Property
    Property name defining the new value

  • Values
    The parameter numbers and format differ according to the property.

Detailed Explanation
This is used to set the force object properties and control the force sensor.
The property modifications made via FSet are only made in memory and are not saved to the file. Call up FSave to save the new settings to the file. In addition, when the Controller power is cycled and the unit reboots, or when a project is loaded, the values from the force file are loaded into memory and the modifications not saved to the file will revert to their original value.

Usage Example
This example sets the properties for Force Monitor Object, and acquires and displays the value in each axis for force sensor 1.

Function test

  Real myForces(8)

  FSet FS1.Reset

  FSet FM1.ForceSensor, 1
  FSet FM1.CoordinateSystem, FCS0
  Do
    FGet FM1.Forces, myForces()
    Print myForces(0), myForces(1), myForces(2)
    Wait 1
  Loop
Fend

See Also
FGet, FSave, ForceObject