MLGearReadOffset
Function - Returns the Offset value of a selected Gear Block from the Pipe Network.
The output of a Gear Block = Input value * Ratio + Offset.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
BlockID |
DINT |
1 to 1024 |
N/A |
No default |
ID number of an initialized Gear object. |
Outputs
|
Output |
Data Type See Data Types. |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Offset |
LREAL |
No range |
User units |
The offset value currently assigned to the selected Gear Pipe Block. |
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Find the Offset value of Gear1 Pipe Block
Gear1Offset := MLGearReadOffset( PipeNetwork.GEAR1 );
See Also







