MLAddWriteOff1

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. - Set the offset value of the first 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.

InputID

LREAL

No range

N/A

No default

Desired new value for the Adder Object's Offset1.

Outputs

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

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

 

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

See Pipe Network - General Rules.

Remarks

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

Figure 1: MLAddWriteOff1

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

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

See Also