MLMstWriteAccel
Description
Set the acceleration of a master block. 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 |
— |
|
Acceleration |
Description |
Acceleration value expressed in user logical units per second squared |
Data type |
LREAL |
|
Range |
— |
|
Unit |
User unit/sec2 |
|
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
MLMstWriteAccel( PipeNetwork.MASTER, 40000.0 );
|
Ladder Diagram
Function Block Diagram