MLMstAbsPerforms a move to an absolute position. Returns TRUE if the function succeeded.
|
BlockID |
Description |
ID name of the Master Block |
|
Data type |
DINT |
|
|
Range |
[-2147483648, 2147483648] |
|
|
Unit |
n/a |
|
|
Default |
— |
|
|
Position |
Description |
Sets the value of the absolute destination position. When the Modulo is turned on, the Master Block moves to the targeted position during the corresponding period, calculated as follows:
The Master Block works similarly for negative positions: if the Position input is less than zero, then the Master Block moves during one of the previous period (negative position rollover). |
|
Data type |
LREAL |
|
|
Range |
— |
|
|
Unit |
User unit |
|
|
Default |
— |
|
Default (.Q) |
Description |
Returns true when function successfully executes See more details here |
|
Data type |
BOOL |
|
|
Unit |
n/a |
To reduce the load on the CPU, call MLMstAbs only once for each move. This can be achieved by adding a control variable, which is illustrated below.
// Master: modulo is on and modulo range is 0 - 360 with rollover at 360
If Not MoveStarted Then
Position := 500;
MLMstAbs( PipeNetwork.MASTER, Position);
MovesStarted := TRUE;
End_if;
Perform one of the following to prevent undesired axis movement if modulo is turned on.
//Make an absolute positon move with a Master block called “MASTER” to position 1000.0
MLMstAbs( PipeNetwork.MASTER, 1000.0 );
|
Copyright © 2015 Kollmorgen™ |
|