Warning
You are reading an old version of this documentation. If you want up-to-date information, please have a look at 1.1 .URCap commands
Basic commands
The basic commands are enough to create a simple and easy to integrate pick and place.
Basic command - start production
The start production command is the default command selected by the URCap. It is used to start EYE+ in the production state. This command requires the identifier of your recipe.
Note
The command will be invalid should the recipe identifier be left empty. The recipe identifier cannot be less than 0 and more than 65535.

Fig. 9 EYE+ Control - start production
Basic command - stop
The stop command is used to interrupt the following: production, camera configuration, recipe edition, hand-eye calibration. The state to be stopped can be chosen from the drop-down list. EYE+ switches to the ready state if the command succeeds.
This command is always valid if at least one EYE+ is connected.

Fig. 10 EYE+ Control - stop
Basic command - get_part
The get_part command is used to request one or more parts from EYE+. This is a blocking command, meaning it will keep going until it gets a response from EYE+.
The coordinates of the first part returned by EYE+ are stored in a global variable named EYE1Pos.
Note
If the basic plugin mode is selected, it is not possible to request more than one part with the get_part command.
In advanced mode, if the part_quantity is set to more than 1, the next global variables are named from EYE1Pos2 to EYE1Pos5 according to the requested part quantity (using set_parameter part_quantity n command).
This command is always valid if at least one EYE+ is connected.

Fig. 11 EYE+ Control - get_part
Note
Refer to section EYE1Pos to get more information about the global variable EYE1Pos.
Basic command - prepare_part
The prepare_part command is used to request one or more parts from EYE+. This command is not a blocking command. The part coordinates can be retrieved later with the get_part command.
This command is always valid if at least one EYE+ is connected.

Fig. 12 EYE+ Control - prepare_part
Advanced commands
The advanced commands make it possible to create more sophisticated pick and place scenarios.
Advanced command - force_take_image
This command forces EYE+ to acquire an image as soon as possible. Each time this command is called, an image is acquired and an image analysis is performed to find the coordinates of the good candidates.
This command is always valid if at least one EYE+ is connected and the advanced plugin mode is selected in configuration.

Fig. 13 EYE+ Control - force_take_image
Advanced command - can_take_image
This command tells EYE+ whether it is allowed acquire an image. It requires a boolean input parameter.
If its value is set to True, EYE+ is allowed to acquire an image. It must be called when the field of view is clear of any object that could obstruct the image acquisition (for example, the robot).
If its value is set to False, EYE+ is not allowed to acquire an image. It must be used in the opposite situation of the one described above.
This command is always valid if at least one EYE+ is connected and the advanced plugin mode is selected in configuration.

Fig. 14 EYE+ Control - can_take_image
Advanced command - get_parameter
This command returns the value of the parameter specified as a command argument stored in EYE+. It requires a string as an input parameter. Refer to chapter List of parameters to check the valid parameters to get.
The returned value is stored in a global variable named EYE1Prm.
Important
If the input parameter does not exist, the command will return the error
404 The given parameter does not exist
and the global variable keeps its former value. The error code can be
retrieved by calling the URScript function EYEcheckLastError(<name>).

Fig. 15 EYE+ Control - get_parameter
Note
Refer to section EYE1Prm to get more information about the global variable EYE1Prm.
Advanced command - set_parameter
This command assigns to the parameter of EYE+ a value equal to the argument of the command. It then requires an input parameter and an argument, both as strings. Refer to chapter List of parameters to check the valid parameters and arguments to set.
Important
If the input parameter does not exist, the command will return the error
404 The given parameter does not exist
and the EYE+ parameter value will not changed. The error code can be
retrieved by calling the URScript function EYEcheckLastError(<name>).
Important
If the argument is not assignable to the parameter, the command will return the error
696 Wrong input parameter type
and the EYE+ parameter value will not changed. The error code can be
retrieved by calling the URScript function EYEcheckLastError(<name>).

Fig. 16 EYE+ Control - set_parameter
Advanced command - feeder
This command sends a raw Asycube command from EYE+ to the connected Asycube. It requires a string as a parameter.
The returned value is stored in a global variable named EYE1AR.

Fig. 17 EYE+ Control - feeder
Note
Refer to section EYE1AR to get more information about the global variable EYE1AR.