MLAddWriteInput

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. - Sets the source of an input of an Adder Pipe 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

DINT

1, 2

N/A

No default

Select first or second input to the Adder object.

InputBlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Pipe Block.

This is an input to the Adder object.

Outputs

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

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

 

Returns TRUE if the input to the Adder object is set.

See Pipe Network - General Rules.

Remarks

Figure 1: MLAddWriteInput

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Set the first input of an Adder pipeblock to be connected to the output of GEAR1 pipeblock
MLAddWriteInput( PipeNetwork.ADDER, 1, PipeNetwork.GEAR1 );

See Also