How to show pop-up messages on the Doosan teach pendant with tp_popup

Based on contributions by Erik_Endlich.

Use tp_popup() to show a message on the teach pendant from inside a running DRL program — for example to tell an operator why the robot has stopped, or to ask them to press continue before it proceeds.

What you need

  • A Doosan robot
  • A laptop with DRL Studio (Homberger Hub) installed

Steps

1. Call tp_popup

tp_popup(string message, int pm_type, int button_type)
Input Type Description
message string The message shown in the pop-up
pm_type int Message type: DR_PM_MESSAGE, DR_PM_WARNING, or DR_PM_ALARM
button_type int 0 shows a “continue” and a “stop” button; 1 shows only a “continue” button

Example — an information pop-up with only a continue button:

tp_popup('Lookout robot arm starts homing.', pm_type=DR_PM_MESSAGE, button_type=1)

The program pauses on this line and waits for the operator to press the button on the pendant before continuing.

2. Use it to report a condition, not as a condition itself

tp_popup() cannot be used directly as the condition of an if statement. Use it after an if statement to report the result of a check. For example, to warn the operator when a camera failed to detect a workpiece:

### function that uses all the other functions to do a complete solder job ###
def soldeer():
    x_y_r = get_data_from_cognex('GVC019')
    if x_y_r == ['']:
        tp_popup('No mold detected, please place mold in the detectable square', pm_type=DR_PM_MESSAGE, button_type=1)
        return 0

See How to connect a Cognex camera to a Doosan robot over TCP for the get_data_from_cognex() function used here.

Related


Rewritten and consolidated (Sept 2026) from the original student how-to’s: How to use Pop-ups on a Doosan robot.