MLBlkReadModPos
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. - Gets the value of the period of a block in user units.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
ID |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
ID number of a created Pipe Block. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
ModuloPosition |
LREAL |
|
User units |
Current period value for selected Pipe Block. |
Remarks
- The output value of a block is reset each time it reaches its period value.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Return and save the Period of a Pipe Block
GearPeriod := MLBlkReadModPos( PipeNetwork.MyGear );
See Also