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