MLAddReadOff2
Function 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. - Returns the offset value of the second entry of an Adder block.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
BlockID |
DINT |
-2147483648 to 2147483648 |
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 |
Default |
Description |
---|---|---|---|---|---|
Offset |
LREAL |
No range |
N/A |
No default |
Returns the offset value of the second entry of an Adder object. |
Remarks
- Offset2 shifts the value of the second input to the block before its added to the first input.
- Can change the offset value with MLAddWriteOff2 function block.
Figure 7-63: MLAddReadOff2
FBD Language
FFLD Language
ST Language
//Save the offset value of second entry to the Adder block
AdderOffset := MLAddReadOff2( PipeNetwork.MyAdder );
See Also