MLAxisReAlign
Function - Realigns the actual position with the reference position by moving the axis by the specified delta position.
- Causes the Axis to move by a programmed amount without changing the Reference Position following an MLAxisStop.
- Allows the Pipe Position to be used following an MLAxisStop.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
Acceleration |
LREAL |
No range |
User unit/sec2 |
No default |
Sets the Realign Acceleration. |
Deceleration |
LREAL |
No range |
User unit/sec2 |
No default |
Sets the Realign Deceleration rate. |
DeltaPos |
LREAL |
No range |
User units |
No default |
Sets the Axis Delta Position or the relative distance to be moved. |
ID |
DINT |
No range |
N/A |
No default |
ID Name of the Axis block. |
Speed |
LREAL |
No range |
User unit/sec |
No default |
Sets the Axis Speed. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
Returns TRUE when the function successfully executes. See Function - General Rules. |
Remarks
-
-
The realign function does not work properly if the MLAxisStop function is continuously executed using its Start input.
- When stopping the drive a motion profile is applied to decelerate.
- During the deceleration, the Reference position changes.
- Calling MLAxisReAlign realigns the actual position with the reference position by moving the axis by the specified delta position, typically calculated by the application code.
- After a MLAxisStop is executed, MLAxisReAlign is required for the Pipe Position to be used again.
- See Restarting Motion with Pipe Network.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
MLAxisReAlign(PipeNetwork.Axis1, 100000, 100000, 500, 20 ) ;
See Also