MLAxisPower
Description
Powers up or down the axis. Enables or disables a Servo drive or Stepper drive mapped to the axis.
When the axis is powered up, the ReferencePosition is modified to equal the ActualPosition. For that, KAS updates the GeneratorPosition
-
- Powering on an axis affects the position and motion state of an axis. MLAxisPower should not be called with the On input flag set to True while the axis is in motion.
Arguments
Input
ID |
Description |
ID Name of the Axis block |
Data type |
DINT |
|
Range |
— |
|
Unit |
N/A |
|
Default |
— |
|
On |
Description |
Flag to power up (True) or down (False) the Axis |
Data type |
BOOL |
|
Range |
0, 1 |
|
Unit |
N/A |
|
Default |
— |
Output
Default (.Q) |
Description |
Returns true when function successfully executes See more details here. |
Data type |
BOOL |
|
Unit |
N/A |
Related Functions
Previous Function Name
Example
Structured Text
(* If Power_OnOff is TRUE then power in ON, otherwise OFF*)
MLAxisPower( PipeNetwork.Axis1, Power_OnOff) ;
Ladder Diagram
Function Block Diagram