Motion Library - Gear
-
-
For a description of the this pipe block and its parameters, see sPipe Blocks Description
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)
You can call the MLGearWriteOff function to modify the Offset (where Offset_Slope is set with the MLGearWriteOSlp function).
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).
The output value is finally adapted with the gear offset and ratio (blue line).