MLAddWriteRat1
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. - Set the ratio value of the first entry of the 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. |
Ratio |
LREAL |
No range |
N/A |
No default |
Designated new value for the Adder Object's Ratio1. |
Outputs
Adder Block Output = Ratio1*Input1 + Offset1 + Ratio2*Input2 + Offset2
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
|
|
Returns TRUE if the Ratio value for input one is set. |
Remarks
-
-
Changes made to the Ratio of an Adder block are executed immediately and can cause an axis position Position means a point in space which is described by different coordinates. Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation. In ACS there can be even more than six coordinates. If the same position is described in different coordinate systems the values of the coordinates are different. to jump.
- Ratio1 amplifies the value of the first input to the block before its added to the second input.
Figure 1: MLAddWriteRat1
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Change the ratio value of first entry to the Adder block to 2
MLAddWriteRat1( PipeNetwork.MyAdder, 2 );
See Also