# 1.7.2 Safety tool modeling

Safety space monitoring detects whether the tool modeled in spheres intrudes into the safety spaces or exceeds the working space. You can set up to 16 safety tools and model a safety tool with a maximum of 6 spheres.

Because a safety tool is enabled by a number that is set on the teach pendant, you should model a safety tool based on the tool data set in the **\[Setting > 3: Robot parameter > 1: Tool data**] menu. Refer to the TCP position information displayed at the top of the tool data setting window.

Each sphere used for safety tool modeling is set by its center and radius. Set the center position of the sphere for the modeling based on the robot flange coordinate system (Xf, Yf, and Zf), and set the radius of the sphere, including the tool size and the stopping distance, at the maximum TCP speed.

![Figure 8 Tool modeling](https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlEXlFy9QJl6a-OvUJ8%2F-MlEaNmqgPadMqgc6pMw%2Fimage33.png?alt=media\&token=a0a05768-3b9c-4015-b6e4-6af31bbc76c7)

![Figure 9 Robot flange coordinate system](https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlEXlFy9QJl6a-OvUJ8%2F-MlEaQBfMJ5Nl0qlLvfJ%2Fimage34.png?alt=media\&token=c493d4e5-a705-404b-a940-08a28c6d745e)

To use the TCP orientation limiting function in safety tool modeling, you can set cones for monitoring by setting rotation and deviation angles in creating the reference vector.

You can model a cone (<img src="https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlD5uUPROU9gWRXlqTJ%2F-MlD6snx8Kk69NdW-fhs%2F2.png?alt=media&#x26;token=a3a229a8-bf81-4c31-9045-407843e4ad09" alt="" data-size="line">) that is formed with generator lines spread by the deviation angle (<img src="https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlD5uUPROU9gWRXlqTJ%2F-MlD6snzxaa8uO_eJLPx%2F4.png?alt=media&#x26;token=d1d6a9b0-96aa-46d7-9b01-1bc0aef66bd3" alt="" data-size="line">) from the reference vector (<img src="https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlD5uUPROU9gWRXlqTJ%2F-MlD6snyJpHHrq-uLD7l%2F3.png?alt=media&#x26;token=02d44567-e363-40e8-9421-4bc69dd2c09e" alt="" data-size="line">), which is set by the rotation of the Z-direction vector of the robot coordinate system (<img src="https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlD5uUPROU9gWRXlqTJ%2F-MlD6snwGAEyY-P4dRcW%2F1.png?alt=media&#x26;token=ee0c3bd8-99a2-4a33-884e-d89be0c9ec2f" alt="" data-size="line">) at a specified angle. The vertex (<img src="https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlEXlFy9QJl6a-OvUJ8%2F-MlEb_r1DnoYJcMfhEiF%2F5.png?alt=media&#x26;token=bfc39d47-79a7-437f-921f-7d37ce7d8b2e" alt="" data-size="line">) of the cone is located at the TCP, and if the Z-direction vector (<img src="https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlEXlFy9QJl6a-OvUJ8%2F-MlEbeBsanMT1pxJfM47%2F6.png?alt=media&#x26;token=e006710b-97b0-495c-af4d-1af2379a8840" alt="" data-size="line">) of the TCP exceeds the monitoring cone, a violation error of the TCP position limiting function will occur.

![Figure 10 TCP orientation limiting function](https://750947965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MkfMpiDfP0IiVzE_shJ%2F-MlEXlFy9QJl6a-OvUJ8%2F-MlEayX8Yk-j03sI2spU%2Fimage38.png?alt=media\&token=173f38fe-8024-49ea-beae-974c76d23f10)

You can set parameter values by clicking the **\[Tool]** button in the **\[Set up > 4: Application parameter > 21: Cobot Setup > 1: Cobot Safety Function > 2: Safety layout]** menu.

![Figure 11 Safety tool modeling setting window](https://750947965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhqVdQ33KTj4Dy7dZ4zfQ%2Fuploads%2FgbjcZTfG35yDdMS41bqT%2Fimage.png?alt=media\&token=bb2eaa28-79e6-459b-b29f-f0ee67d94ca4)

![](https://750947965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhqVdQ33KTj4Dy7dZ4zfQ%2Fuploads%2FNwk7JiDwEL67iZxOzYKa%2Fimage.png?alt=media\&token=838b717f-cf67-4ffd-bca3-5d7af7e69d34)

{% hint style="info" %}
If you use the **\[Copy TCP]** button, the rotational angle values that can be set as the Z-direction vector of the current TCP will be applied to the reference vector, which facilitates the setting of the reference vector.
{% endhint %}

{% hint style="warning" %}
**\[Caution]**

* Before changing a tool data, check if the parameters set in the tool modeling are correct. The tool data number and the safety tool modeling number of a tool should be equal to each other.
* Because the definition of a robot layout setting applies to the elbow, the other parts of the robot may intrude into a safety space even if a safety space is set.
  {% endhint %}
