RunDialog Statement

Runs an Epson RC+ dialog from a SPEL+ program.

Syntax
(1) RunDialog dialogID

(2) RunDialog DLG_ROBOTMNG [, robotAllowed]

Parameters

dialogID
Specify an integer numeric value containing a valid dialog ID. These values are predefined constants as shown below.

  • DLG_ROBOTMNG: 100: Run the Robot Manager dialog
  • DLG_IOMON: 102: Run I/O Monitor
  • DLG_VGUIDE: 110: Run Vision Guide dialog
robotAllowed
This parameter is only available when DLG_ROBOTMNG is specified as the dialog ID. Specifies a robot that is available in the Robot Manager in bit value.
Example Set value bit15 bit14 ... bit2 bit1 bit0
Robot 1 &H0001 Off Off Off Off On
Robot 2 &H0002 Off Off Off On Off
Robot 1 and 2 &H0003 Off Off Off On On
:
Robot 16 &H1000 On Off Off Off Off

Description
Use RunDialog to run Epson RC+ dialogs from a SPEL+ task. The task will be suspended until the operator closes the dialog.

When running dialogs that execute robot commands, you should ensure that no other tasks will be controlling the robot while the dialog is displayed, otherwise errors could occur.

See Also
InputBox, MsgBox

RunDialog Statement Example

If Motor = Off Then
    RunDialog DLG_ROBOTMNG
    If Motor = Off Then
        Print "Motors are off, aborting program"
        Quit All
    EndIf
EndIf