<< Prev        Next >>

ID : 181

CurTool

Function

To return the current tool coordinate number.

Syntax

CurTool

Return value

Return the current tool coordinate number (0-63) by Integer Type data.

Description

The current tool coordinate number is returned. Return value is integer type data between 0 and 63.

Related Terms

Tool Coordinates (6-axis, 4-axis) , ChangeTool, ChangeWork, Tool, Work, CurWork, ToolPos, WorkPos

Attention

-

Example

'!TITLE "Acquiring Tool Coordinate Number"
' Display the tool coordinate number on the message output window
Sub Sample_CurTool

  Dim aaa As Integer

  ' Assign the current tool coordinate number to aaa
  aaa = CurTool

  ' Display the tool coordinate number on the message output window
  PrintDbg aaa

End Sub

ID : 181

<< Prev        Next >>