MLAxisDriveNumber

Pipe Network motion icon

 Function Block - Returns the drive number associated with the axis or -1 if the function block failed.

Inputs

Input

Data Type

Range

Unit

Default

Description

AxisID

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.

DriveAxisNumber

INT

-1 or 1,32767

N/A

Either:

  • The drive number associated with the axis.
  • -1 if the function block failed.

Remarks

Figure 1: ML_AxisDriveNumber

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

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