MLAxisPower
Description
Powers up or down the axis. Enable or disabled Axis Servo DriveA servo drive is a special electric amplifier used to power electric servo motors. It monitors feedback signals from the motor and continually adjusts for deviation from expected behavior.
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