MLAddReadRatio1

Pipe Network motion icon

 Function - Returns the ratio value of the first entry of an Adder block.

  • Ratio1 amplifies the value of the first input to the block before its added to the second input.
  • Can change the ratio value with MLAddWriteRat1 function.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

BlockID

DINT

1 to 1024

N/A

No default

ID number of an initiated Adder object.

Outputs

Adder Block Output = Ratio1*Input1 + Offset1 + Ratio2*Input2 + Offset2

Output

Data Type

See Data Types.

Range

Unit

Description

Ratio

LREAL

No range

No units

Returns the ratio value of the first entry of an Adder block.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Save the ratio value of first entry to the Adder block 
AdderRatio := MLAddReadRatio1( PipeNetwork.MyAdder );

See Also