MLPmpWriteFstSpd
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 FirstTravelSpeed parameter of a PMP block.
- Returns TRUE if the function succeeded.
- FirstTravelSpeed can also 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 the PMP function block in the Pipe Network |
| Data type |
DINT |
|
| Range |
[-2147483648, 2147483648] |
|
| Unit |
N/A |
|
| Default |
— |
|
| First Travel Speed | Description |
First Travel Speed Value |
| Data type |
LREAL |
|
| Range |
> 0 |
|
| Unit |
User unit/sec |
|
| Default |
Value defined in the setup of a PMP Block within a Pipe Network. It is the “FIRST_TRAVEL_SPEED” field in the parameter tab. |
Output
| Default (.Q) | Description |
Returns True if the function block is successfully executing See Function - General Rules for more information. |
| Data type |
BOOL |
|
| Unit |
N/A |
Related Functions
Example
Structured Text
|
MLPmpWriteFstSpd( PipeNetwork.PmpMaster, 300.0 ) ;
|
Ladder Diagram
Function Block Diagram






