MLAxisDriveNumber
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:
|
Remarks
Figure 1: ML_AxisDriveNumber
-
- MLPNAxisCreate assigns the drive axis number.
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;