FunctionMLGearReadRatioPipe Network motion icon

Description

Returns the Ratio value of a selected Gear Block from the Pipe Network. The output of a Gear Block = Input value * Ratio + Offset

Arguments

Input

BlockID

Description

ID number of an initialized Gear Pipe Block

 

Data type

DINT

 

Range

[-2147483648, 2147483648]

 

Unit

n/a

 

Default

Output

Ratio

Description

The Ratio value currently assigned to the selected Gear Pipe Block

 

Data type

LREAL

 

Unit

n/a

Related Functions

MLGearWriteRatio

MLGearInit

Example

Structured Text

//Find the Ratio value of Gear1 Pipe Block
Gear1Ratio := MLGearReadRatio(PipeNetwork.GEAR1);

Ladder Diagram

MLGearReadRatio: LD example

 

Function Block Diagram

MLGearReadRatio: FBD example

Go back to the top of the page [Top]