MLAxisDriveNumber

Pipe Network motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - 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

No range

N/A

Returns TRUE when the function successfully executes.

DriveAxisNumber

INT

-1 or 1,32767

N/A

Drive number associated with the axis, or -1 if the function block failed.

Remarks

Figure 6-168: 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;