Special purpose keys, Variables – Rockwell Automation 2708-NAG Application Generation Software User Manual

Page 12

Advertising
background image

Chapter 3
Using Application Generator

3 – 2

Special Purpose Keys

[PAGE UP]

Skip up 6 lines or change field size.

[PAGE DOWN]

Skip down 6 lines or change field size.

[END]

Move to the end of the program.

[HOME]

Undo or move to the start of the program.

[ALT] I

Set or clear the interrupt (breakpoint).

[ALT] D

Allows you to specify a device log file that will store I/O transactions.

Moves the current line to the edit buffer.

+

Copies the current line to the edit buffer.

*

Inserts the edit buffer above the current position.

Variables are named storage locations. They can each hold up to 80
characters of information. When you start AG, you are given the variables
“IN”, “OUT”, “SRC”, “NET”, “COM”, and “AUX”. Any time you are asked
for a variable name, you can key in one of the built in names, or make up one
of your own. Use

[ALT]

V to see all of your variables.

By using variables, you can move data from place to place such as from the
badge reader to the display.

The names of the default variables give you a hint as to how to use them. The
name of a variable does not in any way affect what you can use it for. A
name is just a way of referring to the same group of characters.

Variable names must not start with a quote mark (“) or a digit. It is good
practice to use just one word. Upper and lower case does not matter.

In many cases where you are asked for a variable name, you can key in a
number or a string. (A string is characters enclosed in quotes.) These are
constants.

Variables

Advertising