Rockwell Automation 2708-NAG Application Generation Software User Manual

Page 23

Advertising
background image

Chapter 3
Using Application Generator

3 – 13

Variables, text, date and time can be positioned within the variable (this is
shown on the second to the last line of the display). The (+) and (–) will
change the field size and format, while left and right arrows are used for
positioning.

Important: It is best to be in single step mode while entering transfers since

that is the easiest way to see the relationship between fields that
are being formatted.

Transfers are fixed length operations that always pad with spaces. If this is
not what you want, you may want to use Append or the advanced operations.
When you position a variable using a transfer, be sure the field is long
enough (using (+)).

Note: Be sure to observe the second to the last line on the monitor for the
position of the data being transferred into your variable.

OTHER OPERATIONS: The following sub-menu appears:

Figure 3.14
AG Other Math Operations Menu

MULTIPLY: Will operate on any variable.

DIVIDE: Will operate on any variable. It may result in a floating point
number.

NEGATE: Is used to alter the sign of a value.

MAKE NUMERIC: Will get rid of any non-numeric parts to a text value.
This is a side effect of other math operations.

MAKE INTEGER:

Will remove the fractional part of a number.

LOOKUP: This option is described on page 3 – 7.

STILL OTHER OPERATIONS: The following sub-menu appears:

Advertising