F4 – read from laser or device – Rockwell Automation 2708-NAG Application Generation Software User Manual

Page 19

Advertising
background image

Chapter 3
Using Application Generator

3 – 9

If the

F8 – SET A TIMEOUT

option is chosen, you are given the choice of

setting the timeout from seconds to minutes. The following sub-menu is
displayed:

Figure 3.8
AG Timeout Selection Menu

Timeouts are a way of stopping a read operation before the operation has
finished. If your program is waiting for the user to enter his password and the
user walks off and leaves the workstation, you want your program to restart
after a given amount of time.

When you select a timeout you are also asked to specify where you want to
branch to when the timeout occurs. To select the GOTO statement, you can
use the arrow keys to select the destination statement or enter the statement
number.

This option is appended to the Read statement and replaces any previous
timeout.

Note: You stay in the Read from Keyboard/Laser Menu after selecting an
attribute. More than one attribute can be selected for a single read statement.
Be sure to press

[ENTER]

and return to the Main Operations Menu for the

read statement to be entered into your program.

F4

– Read From Laser Or Device

The Read From Laser or Device menu is used to read fields and characters
from devices other than the keyboard. When

F4

is pressed the Main

Operations Menu is replaced with these options:

Advertising