MLAddWriteRat2

Pipe Network motion icon

 Function - Set the ratio value of the second entry of the Adder block.


  • Changes made to the Ratio of an Adder block are executed immediately and can cause an axis position to jump.

  • Ratio2 amplifies the value of the second input to the block before its added to the first input.

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.

Ratio

LREAL

No range

N/A

No default

Designated new value for the Adder Object's Ratio2.

Outputs

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

Output

Data Type

See Data Types.

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Change the ratio value of second entry to the Adder block to 2 
MLAddWriteRat2 ( PipeNetwork.MyAdder, 2 );

See Also