Motion Library - Gear

Name

Description

Return type

MLGearInit

Initializes a Gear Pipe Block with user-defined settings

BOOL

MLGearReadOffset

Returns the offset value of selected Gear Block

None

MLGearReadOffSlp

Returns the Offset Slope value of selected Gear Block

None

MLGearReadRatio

Returns the ratio value of a gear block

None

MLGearReadRatSlp

Returns the ratio slope value of a gear block

None

MLGearWriteOff

Sets the Offset value of a selected Gear Pipe Block

BOOL

MLGearWriteOSlp

Sets the Offset Slope value of a selected Gear Pipe Block

BOOL

MLGearWriteRatio

Sets the Ratio value of a selected Gear Pipe Block

BOOL

MLGearWriteRatSlp

Sets the Ratio Slope value of a selected Gear Pipe Block

BOOL

Usage example of Gear Functions

The output value starts with offset = 0 and gain = 1 (blue line)

Gear Functions Usage

You can call the MLGearWriteOff function to modify the Offset (where Offset_Slope is set with the MLGearWriteOSlp function).

Gear Functions Usage

After setting the Offset (Q=TRUE in the previous figure), you can call the MLGearWriteRatio function to modify the gear Ratio (where Gain_Slope is set with the MLGearWriteRatSlp function).

Gear Functions Usage

The output value is finally adapted with the gear offset and ratio (blue line).

Gear Functions Usage

Figure 8-97: Gear Functions Usage

Go back to the top of the page [Top]