MLAddReadOff2

Pipe Network motion icon

 Function - Returns the offset value of the second entry of an Adder block.

  • Offset2 shifts the value of the second input to the block before its added to the first input.
  • Can change the offset value with MLAddWriteOff2 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

Offset

LREAL

No range

User units

Returns the offset value of the second entry of an Adder block.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Save the offset value of second entry to the Adder block 
AdderOffset := MLAddReadOff2( PipeNetwork.MyAdder );

See Also