Left ArrowBack to discussions page
MattiasMMattiasM Posts: 9 Apprentice
I would like to have the robot, in case of collision, show the operator a popup witch a little text and the value of a specific counter. Is this possible?
Thanks in advance

Best Answer


  • matthewd92matthewd92 Posts: 660Founding Pro, Tactile Sensor Beta Testers Handy
    So @MattiasM going to ask a couple of questions, are you referring to showing a popup following a protective stop or when the protective stop occurs?  If so that is going to be a bit of a challenge to know when that has occurred unless you are using a separate system to monitor that condition, it is available on Modbus (register 261), RTDE as well as Profinet/Ethernet-IP.  Or are you using a FT sensor to detect when a collision has occurred and stop motion before a protective stop occurs?  If that is the case you can simply use the method below to notify the operator.

    Native to the robot there is no way to concatenate strings today.  You can however use the script version of the popup command which would allow you to place the text in the title of the popup and then the value of the popup could be the variable in question.  You can also drop something to the log file by using the textmsg() script function, it allows for a message and a variable to be used and stores the message and value in the log files, could be useful for looking at later as well since you can always get the log file off the robot and open it up with either the UR log reader or by opening the text file in something like notepad or a text editor.

    If you are using a system to observe the state of the robot then you will need to latch the bit on that is set when the robot enters protective stop so that the robot will be able to see that it was set when the program paused execution on the protective stop.  We do this with our safety systems for letting the robot know for instance when the light curtain or safety scanner was broken so that decisions can be made in the program even though the program was halted while that incursion occurred.  We then issue a reset bit from the robot back to the controller to clear the latch until the next incursion.

  • MattiasMMattiasM Posts: 9 Apprentice
    Hi Matthew, I would like to use the FT sensor. Can I have an example of the script version of the popup command?
  • MattiasMMattiasM Posts: 9 Apprentice
    Great! Thanks Matthew!
Sign In or Register to comment.
Left ArrowBack to discussions page