You have to send function definition with the command.
Please have a look to the following posts:
https://dof.robotiq.com/discussion/1987/how-to-control-robotiq-product-through-port-30002-on-universal-robot/p1
https://dof.robotiq.com/discussion/1649/control-gripper-via-ur-controller-client-interface#latest
Technical information:
- UR5e robot with SN 20195590010 and URSoftware 5.6.0.90886.
- Robotiq 2F-85 gripper with firmware GC3-1.4.4 connected to the wrist tool connection.
- Gripper URCap version UCG-1.8.0.1
Issue:
Gripper can be correctly operated using scripts in Robot Program, such as "rq_open()", "rq_close()", etc.
Same behavior is attempted from an external PC using socket connection, but fails to work.
The robot is Remote Control mode, other scripts commands such as popups and analog port activation work through socket, while rq_* commands do not work.
Possible workaround:
Control gripper using Robotiq driver through an external cable connected to PC.