CALL attach_robot (args[], error)

Function

Statement execution routine for the ATTACH_ROBOT statement. It attaches a previously detached robot to the current robot runtime task. This statement is available only if the AIM Command Server(ACS) option is installed. For details on ACS, see the MotionWare User's Guide.

Usage Considerations

Runtime Control Robot Vision

Statement Syntax

ATTACH_ROBOT

Input Parameter

args[ ]

 No arguments are used. Therefore, this parameter can be omitted. However, the comma is still required in front of the "error" parameter..

Output Parameter

error

Real variable that receives a value indicating whether or not the operation was successful and what action should be taken by the calling routine. See the standard operator error response code values.

Details

This attaches a previously detached robot to the current robot runtime task. The statement is permitted to attach only the robot that is selected for the task.

This statement is designed to be used with the DETACH_ROBOT statement to provide a way to perform actions that require the robot to be detached from the current task (for example, CALIBRATE, DISABLE POWER, etc.).

The operations performed by this statement are:

  1. Check the validity of the selected robot for the task.

  2. Attempt to attach the selected robot to the task. If this fails, return an error.

File: ACSRUN.V2/SQU

Statement DB: STATACS.DB

 

Related Routines

detach_robot (args[], error)