MLAxisStatus

Pipe Network motion icon

 Function - Returns the status of the axis.

This includes information on the:

  • Enabled/disabled state.
  • Bus connection.
  • Pipe Network connection.
  • Drive executing an axis stop function.
  • Other status information.

Inputs

Input

Data Type

Range

Unit

Default

Description

ID

DINT

No range

N/A

No default

ID Name of the Axis block.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

Returns TRUE when the function successfully executes.

Default (.Q)

DINT

No range

N/A

Returns the status of the axis.

See Bit Descriptions.

Remarks

Bit Descriptions

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

 
AxisStatus := MLAxisStatus(PipeNetwork.AXI_A1_Axis) ;
IF AxisStatus.11 THEN
MLAxisStop(PipeNetwork.AXI_A1_Axis,FALSE,DEF_A1_StopDec) ;
END_IF;
AxisStatus := MLAxisStatus(PipeNetwork.AXIS1);
If AxisStatus.0 Then
(*Axis is initialized*)
ElsIf AxisStatus.1 Then
(*Axis' power is ON*)
ElsIf AxisStatus.2 Then
(*Axis is READY to be enabled*)
End_If;