MLGearWriteRatio

Pipe Network motion icon

 Function - Sets the Ratio 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.

Ratio

LREAL

No range

User unit/sec

No default

New Ratio value to be assigned to the selected Gear Pipe Block.

  • Values lower than 1.0 can be entered, but require a leading 0 (zero).
    • Example: 0.8 instead of .8.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Remarks

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

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Set the Ratio value of Gear1 Pipe Block to 5
MLGearWriteRatio(PipeNetwork.GEAR1, 5.0);

See Also