MLAddReadRatio2
Function - Returns the ratio value of the second entry of an 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. |
Outputs
Adder Block Output = Ratio1*Input1 + Offset1 + Ratio2*Input2 + Offset2
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Ratio |
LREAL |
No range |
N/A |
Returns the ratio value of the second entry of an Adder block. |
Remarks
- Ratio2 amplifies the value of the second input to the block before its added to the first input.
- Can change the ratio value with MLAddWriteRat2 function block.
Figure 1: MLAddReadRatio2
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Save the ratio value of second entry to the Adder block
AdderRatio := MLAddReadRatio2( PipeNetwork.MyAdder );
See Also