Function BlockMLAxisDriveNumberPipe Network motion icon

Description

This function block returns the drive number that is associated with the axis, or -1 if the function block failed.

Figure 8-80: ML_AxisDriveNumber

Arguments

Input

AxisID Description ID name of the Axis
  Data type DINT
  Range
  Unit N/A
  Default

Output

OK Description Returns true when the function successfully executes
  Data type BOOL
  Range N/A
  Unit N/A
DriveAxisNumber Description Drive number that is associated with the axis, or -1 if the function block failed.
  Data type INT
  Range -1 or [1,32767]
  Unit N/A

Related Functions

___

Example

Structured Text

Inst_MLAxisDriveNumber( AxisID)
IF Inst_MLAxisDriveNumber.OK Then
    Axis1DriveNumber     := Inst_MLAxisDriveNumber.DriveAxisNumber
End_IF;

Ladder Diagram

Function Block Diagram