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