MLPmpReadInitPos
Description
Get the Initial Position parameter of a PMP block. This value is the position the Pmpblock starts at when the Pipe Network is enabled. This position can be set when adding a Pmp Block to a Pipe Network and defining the parameters for that block.
Arguments
Input
BlockID |
Description |
ID Name of a PMP function block in the Pipe Network |
Data type |
DINT |
|
Range |
[-2147483648, 2147483648] |
|
Unit |
N/A |
|
Default |
— |
Output
InitialPosition |
Description |
Present Initial Position of the PMP PipeNetork FunctionA 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. Block |
Data type |
LREAL |
|
Unit |
User unit |
|
Default |
Value defined in the setup of a PMP Block within a Pipe Network. It is in the “INITIAL_POSITION” field in the parameter tab. |
Related Functions
Example
Structured Text
PmpInitPos := MLPmpReadInitPos( PipeNetwork.PmpMaster ) ;
|
Ladder Diagram
Function Block Diagram