MLAxisPower
Function - Powers up or down the axis.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
ID |
DINT |
No range |
N/A |
No default |
ID Name of the Axis block. |
On |
BOOL |
FALSE, TRUE |
N/A |
No default |
Flag to:
|
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
-
- 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 for more information.
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