OF

Syntax:Explicit or Implicit
Operands:_OFn
Burn:burnable with BN

Offset

Hardware: All

Full Description

The OF command sets a bias voltage in the motor command output or returns a previously set value. This can be used to counteract gravity or an offset in an amplifier.

Arguments

OF n,n,n,n,n,n,n,n      or           OFA=n           where
n is a signed number in the range -9.998 to 9.998 volts with resolution of 0.0003.
n = ?           Returns the offset for the specified axis.

Operand Usage

_OFn contains the offset for the specified axis.

Usage

Usage and Default Details
UsageValue
While Moving (No RIO)Yes
In a ProgramYes
Command LineYes
Controller UsageAll
Default Value0
Default Format1.4 (1.0 for 18x2)

Related Commands

Examples:

OF 1,-2,3,5	Set A-axis offset to 1, the B-axis offset to -2, the C-axis to 3, and the D-axis to 5
OF -3	Set A-axis offset to -3  Leave other axes unchanged
OF ,0	Set B-axis offset to 0  Leave other axes unchanged
OF ?,?,?,?	Return offsets
:-3.0000,0.0000,3.0000,5.0000	
OF ?	Return A offset
:-3.0000	
OF ,?	Return B offset
:0.0000