Robotiq 2-Finger Adaptive Gripper
Instruction Manual
Robotiq inc. © 2016
85
4.9.4 Provided Variables and Functions
The file rq_script.script contains function definitions and variables that enhance the programming of the Gripper. Here is the list of these variables and
functions.
Variables are used when programming the Gripper using subprograms. Since it is not possible to pass arguments to subprograms, the global variables
listed below must be used.
Name
Range
Description
rq_force
[0-255]
Force set point. Change this variable by calling the subprogram SubP_rq_set_force.
rq_gripper_act
[0-1]
1 if the Gripper is activated. This variable is updated by calling either SubP_rq_is_gripper_activated or SubP_rq_acti
vate_and_wait.
rq_move_complete
[0-1]
1 if the motion is complete. This variable is updated by calling one of the following:
;
SubP_rq_move_and_wait
;
SubP_rq_open_and_wait
SubP_rq_close_and_wait;
SubP_rq_is_motion_complete.
rq_object_detect
[0-1]
1 if an object is detected. This variable is updated by calling one of the following:
;
SubP_rq_move_and_wait
;
SubP_rq_open_and_wait
;
SubP_rq_close_and_wait
SubP_rq_is_object_detected.
rq_pos
[0-255]
Position set point. This variable is updated by calling SubP_rq_current_pos.
rq_speed
[0-255]
Speed set point. Change this variable by calling the subprogram SubP_rq_set_speed.