### Input

The Input option is similar to the Operator option in that it allows you to display text when executing a part program. In addition to displaying a message box with the previously entered text, a comment box will appear. This allows you to enter numerical information that will be written to the inspection report.

This option is extremely helpful to users wishing to enter a part number or serial number while executing the part program.

To use the Input option:

1. Place the cursor where you want this option to be inserted in the Edit window.

2. Select the Comment menu option. The Comment dialog box appears.

3. Select the Input option.

4. Enter in the desired text in the Comment Text box.

5. When the comments are completed, click the OK button (or press the ENTER key) to close the dialog box.

The Edit window command line for this option reads:
comment ID = COMMENT/INPUT, TOG1,Full Screen=TOG2,comment text

TOG1 = This YES/NO field allows you to specify whether or the comment shows up in the inspection report.

TOG2 = This YES/NO field allows you to specify whether or not the comment fills the entire screen when displayed.

The input is assigned to the variable specified on the left hand side of the command. The variable is coerced to be of type string. This variable can then be used anywhere an expression is allowed by using this syntax <COMMENT ID>.INPUT. For example if your comment ID is C1, you can pass that variable into another variable like this:

C1 = COMMENT/INPUT,NO,Full Screen=NO,"Please enter your name:"

ASSIGN/V1=C1.INPUT

How it Works

The message box will display the prompt to enter the necessary number (i.e., serial number) and then display this number in the inspection report. This prompt will appear on top of the Execution Mode Options dialog box during execution:

A Sample Input Comment dialog box

Type your text in the Operator Input dialog box and click OK to continue part program execution. This information gets stored into the comment's ID.INPUT variable. Clicking Cancel will stop part program execution.