UR5 how to map analog input

My UR5 takes in 0-5V but i want to use it to change position of the arm. so i want to map 2.5-5V is one direction and 0-2.5 is moving opposite direction. preferably in the code block thingy, but if thats not possible, urscipt would be good

If I understand your request correct, it’s a simple task to do:

If you however want to move to a specific length in one direction determined by the analog input, it won’t be as simple. :slight_smile:

Thanks, i found this about an hour ago, but never got to confirm it. thanks once again