MLPmpWriteAccel
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 acceleration parameter of a PMP block.
Returns TRUE if the function succeeded.
Acceleration 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 |
— |
|
Acceleration | Description |
Acceleration Value |
Data type |
LREAL |
|
Range |
> 0 |
|
Unit |
User unit/sec2 |
|
Default |
Value defined in the setup of a PMP Block within a Pipe Network. It is the “ACCELERATION” field 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
MLPmpWriteAccel( PipeNetwork.PmpMaster, 40000.0 ) ;
|
Ladder Diagram
Function Block Diagram