Discussion

Left ArrowBack to discussions page
deepthinagelladeepthinagella Posts: 3 Apprentice
edited August 20 in Programming
Hello,
I am trying to display popup message on the screen without interrupting the program and then close the popup automatically when the program got finished. I am having different case statements to call different programs and trying to apply popup for all the programs. Can you suggest me how to do that? 

Comments

  • David_GariepyDavid_Gariepy Posts: 147Beta Tester Beetle, Wrist Camera URCap 1.3.0 Handy
    Hi @deepthinagella

    Here's a "how to" that explain how to acheive this : 

    This “how to” demonstrates, how to create informational popups on the TP run-screen, without pausing program execution. 
    Example: A popup to inform operator “Process A” have been started, and another to inform the robot is “Searching for item to pick up”
    The purpose is NOT to pause program execution, but only for information. If the wish is to pause program execution, and wait for operator acknowledgment, please refer to the regular Popup command in Structure tab.

    Informational popups can be send using the internal Dashboard server of the UR Controller. 
    This “how to” will use script coding to send commands from UR program to internal Dashboard server. 
    First, open a connection to Dashboard server. 
    Should be first in the program or BeforeStart sequence. 
    Use the script command: 
    socket_open("127.0.0.1",29999,"internal")
    Where 127.0.0.1 is the default internal IP address of Dashboard server, 29999 is the port and “internal” is the name.

    Create a popup using this script: 
    socket_send_string("popup The text I want","internal")
    socket_send_byte(10,"internal")
    Where “The text I want” is the message to be displayed, and byte 10 is a necessary “return” character.

    Kill the popup using these script lines: 
    socket_send_string("close popup","internal")
    socket_send_byte(10,"internal")


    David Gariépy
    Integration Coach
Sign In or Register to comment.
Left ArrowBack to discussions page