FunctionMLGearReadOffSlpPipe Network motion icon

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

MLGearWriteOSlp

MLGearInit

Example

Structured Text

//Find the Offset Slope value of Gear1 Pipe Block
Gear1OffsetSlope := MLGearReadOffSlp(PipeNetwork.GEAR1);

Ladder Diagram

MLGearReadOffSlp: LD example

 

Function Block Diagram

MLGearReadOffSlp: FBD example

Go back to the top of the page [Top]