MLAxisPower

Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Powers up or down the axis.

Enables or disables a Servo or Stepper drive mapped to 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

0, 1

N/A

No default

Flag to:

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

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

 

Returns TRUE when the function successfully executes.

See Pipe Network - General Rules for more information.

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.
  • 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

MLAxisPower: FBD 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