MLAxisPower

Pipe Network motion icon

 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:

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:

  • Power up (TRUE) the axis.
  • Power down (FALSE) the axis.

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

MLAxisPowerDOff - Deprecated