MLAddWriteOff2

Pipe Network motion icon

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

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Adder object.

Offset

LREAL

No range

N/A

No default

Desired new value for the Adder Object's Offset2.

Outputs

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

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Returns TRUE if the Offset value for input two is set.

See Function - General Rules.

Remarks


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

  • Offset2 shifts the value of the second input to the block before its added to the first input.

Figure 1: MLAddWriteOff2

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Change the offset value of second entry to the Adder block to 10 
MLAddWriteOff2( PipeNetwork.MyAdder, 10 );

See Also