I creat a 1 axis robot,I hope it can rotate all the time. So I set the maxmium value(-999999°). After I teach the current position,when I click the target again,it will automatically change to a value within 1800°.(I set -999999,it changes to -1719) I don't know how to solve it.
The default behavior is that when you click on a target (single left click) the robot or mechanisms will make a linear move to that target. This means it will take the shortest path to match the Cartesian position. This happens even if your target is a joint target.
When you double click on target it will move to the same joint values you used to teach the target.
You can create a program like you did to move to the 2 targets so the axis keeps spinning within your desired range.