beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 461

background image

Publication GMLC-5.2 - November 1999

424

Display and Operator Interface Blocks

Waiting for a Specific Key

Selecting Specific Key, with Wait for Key selected, pauses the program
until the specific character entered in the Key data entry box has been
received by serial port B.

Checking or Waiting for an ASCII Code

The effect of selecting ASCII Key from the Key Type menu depends
upon your Type selection (Wait for Key or If Key), as described below.
Enter the ASCII code for the desired character in the data entry box as a
decimal number between 0 and 127 inclusive. See Appendix B for an
ASCII reference table showing the ASCII codes for all characters.

Checking for ASCII Code

Selecting ASCII Key, with If Key selected, causes program flow to
branch to the true node (at the top of the block) only if the specific ASCII
character code—entered in the data entry box—has been received by
serial port B. If any other character (or no character) has been received,
program flow branches to the false node (at the bottom of the block).

Waiting for ASCII Code

Selecting Wait for ASCII Code, with If Key selected, pauses the program
until the specific ASCII character code—entered in the data entry box—
has been received by serial port B.

This selection is useful to wait for non-printing characters or ASCII
control codes.