MLAddWriteInput

Pipe Network motion icon

 Function - Sets the source of an input of an Adder Pipe Block.

  • Function block is automatically called if an Adder Block is connected to other blocks in the Pipe Network.


    • Adder objects are normally created in the Pipe Network using the graphical engine.
    • You do not have to add MLAddWriteInput functions to their programs.
      • They are connected with lines in the Pipe Network.
    • The code is automatically added to the current project.

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.

InputID

DINT

1 to 2

N/A

No default

Select first or second input to the Adder object.

InputBlockID

DINT

1 to 1024

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

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

//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