MLAddWriteInput
Function - Sets the source of an input of an Adder Pipe Block.
Inputs
|
Input |
Data Type |
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 |
|
Outputs
Adder Block Output = Ratio1*Input1 + Offset1 + Ratio2*Input2 + Offset2
|
Output |
Data Type |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
|
Remarks
- Function block is automatically called if an Adder Block is connected to other blocks in the Pipe Network.
Figure 1: MLAddWriteInput
-
-
Adder objects are normally created in the Pipe Network using the graphical engine.
You do not have to add MLAddWriteInput function blocks to their programs.
Blocks are connected with lines in the Pipe Network.
The code is automatically added to the current project.
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







