ArmReserve Function

Dynamically acquires the arm numbers available in the current library.

Format
ArmReserve

Parameters
None

Returns
Reserved arm number

Description
By reserving a number, you can use it without it being used by other libraries. Unreserved arm numbers from 16 to 31 are reserved in descending order.
The information defined for the reserved arm number is temporary values that are cleared along with the reservation when all tasks are completed. Alternatively, you can clear the reservation by specifying the arm number in ArmClr.

See Also
Arm, ArmLib Function, ArmClr, ArmDef, ArmSet

ArmReserve Function Usage Example

Integer i

i = ArmReserve

ArmSet i, X, Y, Z, U
ArmLib i
Move P1 'Operation using the reserved arm number.
ArmClr i