TLReserve Function

Dynamically acquires the tool numbers available in the current library.

Format
TLReserve

Parameters
None

Returns
Reserved tool number

Description
By reserving a number, you can use it without it being used by other libraries. This is a temporary value that is cleared when all tasks are completed. Alternatively, you can clear the reservation by specifying the tool number in TLClr.
Unreserved tool numbers from 16 to 31 are reserved in descending order.

See Also
TLClr, TLDef, TLSet, Tool, ToolLib Function

TLReserve Function Usage Example

Integer i

i = TLReserve

TLSet i, X, Y, Z, U
ToolLib i
Move P1 'Operation using the specified tool number.
TLClr i