tool axis overwrite in Z direction

Hello,

I’ve developed and implemented many scripts and programs, including various automation systems.

However, this is the first time with your UR system…

Ultimately, the program wants to run an independent program, I assume as a thread, that independently corrects the tool Axis in the Z direction.

The process should look like this:

0Volt = -10mm
5Volt = 0mm
10Volt = 10mm

Do you have any food for thought or an example for me?

Thank you in advance

The script for path_offset() will likely be your friend here.
Search the script manual for it: https://s3-eu-west-1.amazonaws.com/ur-support-site/234367/script_directory_PolyScope5.pdf

In depth example from UR: Modify robot trajectory with custom motion