MLAddReadRatio1

Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Returns the ratio value of the first entry of an Adder block.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483648

N/A

No default

ID number of an initiated Adder object.

Outputs

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

Output

Data Type

Range

Unit

Default

Description

Ratio

LREAL

No range

N/A

No default

Returns the Ratio value of the first entry of an Adder object.

Remarks

  • 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 block.

MLAddReadRatio1

Figure 7-64: MLAddReadRatio1

FBD Language

MLAddReadRatio1: FBD example

FFLD Language

MLAddReadRatio1: LD example

ST Language

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

See Also