Description of functionality:
This URCap simulates functionality for operating an open/close type gripper directly from the Tool IO of the robot.
User can test open/close of gripper by using buttons in UI, and select whether the program node should grip or release when executed
Actual status of the gripper is read from the IO’s in the API domain.io interface.
What topics are covered:
IO, DigitalIO, AnalogIO, com.ur.urcap.api.domain.io
If I want to read the GP_bool_out and GP_float_out IO, how can I do that? I tried to do it like this sample, but only I can read digitalIO,analogIO and modbusIO…
The GP-registers can only be listed in the Collection if they have been assigned a name in IO Setup.
This is the same behavior as is present e.g. in a Set or Wait node, where the register is only listed, when assigned a name.
The GP-registers value cannot be read or written from the API.
To do so, you will either need an RTDE client, or do this via URScript.
How can I read the values of the GP-register? For sending the script I’m using the clientSendScript but I don’t know how to read values using this example.
To read the data I need to use something like getRobotRealtimeData? Or I can work like clientSendScript?