MLGearReadRatio

Pipe Network motion icon

 Function - Returns the Ratio value of a selected Gear Block from the Pipe Network.

The output of a Gear Block = Input value * Ratio + Offset.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

BlockID

DINT

1 to 1024

N/A

No default

ID number of an initialized Gear object.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Ratio

LREAL

No range

N/A

The Ratio value currently assigned to the selected Gear Pipe Block.

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