How to stop the robot at some displacement given some external condition and take that data

I would like to advance the robot in one movement to a point, and through the information from an external sensor (analog input) stop the robot. So I would also like to take this current position after the stop. I would do this at three different points and I would like to create a plan with those three points. Can anyone help me on what functions to use?

This can certainly be done but is complicated. I would contact your distributor and see if you can hire them or a system integrator to assist with a task like this. The other approach is go to a certified training course on UR (Core + Advanced) and that should give you the background you need.

I might try to use an “Add Until” to your Waypoint at the bottom of your Waypoint command screen. From the Until command screen you would click “I/O Input”, then select the analog input and chose the value at which you want your robot to stop. After that you could add and Assignment (variable), open the expression editor (yellow box) and select the function get_actual_tcp_pose(). Once you’ve done this with your three different points, you could use those variables as Waypoints (select Variable Position in command screen drop down, upper left corner). Your robot will then go through these waypoints. You may need to update your software to get the “Add Until” option in your Waypoint command screen. Make sure to follow the instructions when you download the software update(s). Depending on how old the Polyscope version is, you may have to install each update sequentially before you can jump ahead to the most recent.
Shameless plug, Olympus Controls/Applied Automation have dozens of UR experts on staff. :slight_smile:

Lance Price
Sr Robotics Sales Specialist