MLGearWriteOSlp
Function - Sets the Offset Slope value of a selected Gear Pipe Block.
Inputs
|
Input |
Data Type |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
BlockID |
DINT |
1 to 1024 |
N/A |
No default |
ID number of an initialized Gear Pipe Block. |
|
Slope |
LREAL |
No range |
User unit/sec |
No default |
New Offset Slope value to be assigned to the selected Gear Pipe Block.
|
Outputs
|
Output |
Data Type |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
|
Remarks
- 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.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Set the Offset Slope value of Gear1 Pipe Block to 100
MLGearWriteOSlp(PipeNetwork.GEAR1, 100.0);
See Also






