MLMstWriteSpeed
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 speed of motion for the MLMstAbs and MLMstRel blocks.
- Returns TRUE if the function succeeded.
- This function does not generate any motion.
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 | — | |
| Speed | Description | Speed of the motion |
| Data type | LREAL | |
| Range | — | |
| Unit | User unit/sec | |
| Default | — |
Output
| Default (.Q) | Description | Returns true when function successfully executesSee Function - General Rules for more information. |
| Data type | BOOL | |
| Unit | N/A |
Related Functions
Example
Structured Text
|
MLMstWriteSpeed( PipeNetwork.MASTER, 400.0 );
|
Ladder Diagram
Function Block Diagram






