MLGearReadOffset
Description
Returns the Offset value of a selected Gear Block from the Pipe Network.
The output of a Gear Block = Input value * Ratio + Offset
Arguments
Input
BlockID |
Description |
ID number of an initiated an initialized Gear object |
Data type |
DINT |
|
Range |
[-2147483648, 2147483648] |
|
Unit |
n/a |
|
Default |
— |
Output
Offset |
Description |
The offset value currently assigned to the selected Gear Pipe Block |
Data type |
LREAL |
|
Unit |
User unit |
Related Functions
Example
Structured Text
//Find the Offset value of Gear1 Pipe Block
Gear1Offset := MLGearReadOffset( PipeNetwork.GEAR1 );
Ladder Diagram
Function Block Diagram