Skip to content

Commit 040150e

Browse files
authored
Add information about tool communication setup and ttyTool resource conflics (#6)
1 parent f285710 commit 040150e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,29 @@ guide](https://docs.universal-robots.com/Universal_Robots_ROS_Documentation/doc/
2828
for more information.
2929

3030

31+
> [!WARNING]
32+
> The ttyTool is considered a shared resource. Currently, it's up to the user to ensure that no two
33+
> URCapX are trying to access the ttyTool at the same time. This could lead to unexpected behavior.
34+
> See the [URCapX SDK
35+
> documentation](https://docs.universal-robots.com/PolyScopeX_SDK_Documentation/build/SDK-v0.18/HowToGuides/tool-connector.html#special-considerations)
36+
> for more information.
37+
38+
### Robot setup
39+
40+
To use the forwarded ttyTool, you will need to enable tool communication on the robot. This can be
41+
done by using the URScript functions
42+
[`set_tool_communication`](https://www.universal-robots.com/manuals/EN/HTML/SW10_11/Content/prod-scriptmanual/all_scripts/set_tool_communication.htm)
43+
and
44+
[`set_tool_voltage`](https://www.universal-robots.com/manuals/EN/HTML/SW10_11/Content/prod-scriptmanual/all_scripts/set_tool_voltage_voltage.htm).
45+
46+
For example, you can add a Script code program node to the program with the following code:
47+
48+
```
49+
set_tool_voltage(24)
50+
set_tool_communication(True, 115200, 0, 1, 1.5, 3.5)
51+
```
52+
53+
3154
## Build and Deploy Sample
3255

3356
To build and deploy this sample, use the commands below. A rebuild of the project is required to see any changes made

0 commit comments

Comments
 (0)