MLGearReadOffSlp
Description
Returns the Offset Slope value of a selected Gear Block from the Pipe Network. Offset Slope sets the limit in User Units per Second at which step changes in offset are implemented. The default value when creating a Gear Block is OFFSET_SLOPE_MAX or infinite.
Arguments
Input
BlockID |
Description |
ID number of an initiated an initialized Gear object |
Data type |
DINT |
|
Range |
[-2147483648, 2147483648] |
|
Unit |
N/A |
|
Default |
— |
Output
Slope |
Description |
The offset slope value currently assigned to the selected Gear Pipe Block, which may be a different sign than what is programmed with MLGearWriteOSlp. |
Data type |
LREAL |
|
Unit |
User unit/sec |
Related Functions
Example
Structured Text
//Find the Offset Slope value of Gear1 Pipe Block
Gear1OffsetSlope := MLGearReadOffSlp(PipeNetwork.GEAR1);
Ladder Diagram
Function Block Diagram