MLMstAdd
Description
Performs a move for a specified distance relative to the endpoint of the previous move. Returns TRUE if the function succeeded.
Arguments
Input
EN |
Description |
Enables FB to be executed |
Data type |
BOOL |
|
Range |
0, 1 |
|
Unit |
N/A |
|
Default |
— |
|
Block ID |
Description |
ID name of the Master Block |
Data type |
DINT |
|
Range |
[-2147483648, 2147483648] |
|
Unit |
N/A |
|
Default |
— |
|
DeltaPos |
Description |
Relative distance to move |
Data type |
LREAL |
|
Range |
— |
|
Unit |
User unit |
|
Default |
— |
Output
Default (.Q) |
Description |
Returns true when function successfully executes See more details here. |
Data type |
BOOL |
|
Unit |
N/A |
Related Functions
Example
Structured Text
//At the endpoint of the previous move, with the Master pipe block named “MASTER”, make a move of 750.0
MLMstAdd( PipeNetwork.MASTER, 750.0 );
Ladder Diagram
-
-
You must use a pulse contact to start the FB
Function Block Diagram