MLAxisPower
Function - Powers up or down the axis.
-
-
- Powering on an axis affects the position and motion state of an axis.
- Do now call MLAxisPower with the On input flag set to True while the axis is in motion.
- Enables or disables a Servo or Stepper drive mapped to the axis.
- Previous Function Names:
- MLAxisPowerOn
- MLAxisPowerOff
- When the axis is powered up:
- The ReferencePosition is modified to equal the ActualPosition.
- KAS updates the GeneratorPosition.
- See Associated Data on Positions.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
ID |
DINT |
1 to 1024 |
N/A |
No default |
ID of the Axis block. |
|
On |
BOOL |
FALSE, TRUE |
N/A |
No default |
Flag to:
|
Outputs
|
Output |
Data Type See Data Types. |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
|
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
(* If Power_OnOff is TRUE then power in ON, otherwise OFF*)
MLAxisPower( PipeNetwork.Axis1, Power_OnOff) ;
See Also







