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 drive or Stepper drive mapped to the axis.

When the axis is powered up, the ReferencePosition is modified to equal the ActualPosition. For that, KAS updates the GeneratorPosition. See About Associated Data on Positions for more information.


  • 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 Function - General Rules for more information.

 

Data type

BOOL

 

Unit

N/A

Related Functions

MLAxisPowerDOff

Previous Function Name

MLAxisPowerOn

MLAxisPowerOff

Example

Structured Text

(* If Power_OnOff is TRUE then power in ON, otherwise OFF*)
MLAxisPower( PipeNetwork.Axis1, Power_OnOff) ;

Ladder Diagram

Function Block Diagram

MLAxisPower: FBD example