Floating point math, Operand 1 tab, Floating point math operand 1 tab – PSC PT Program Generator User Manual

Page 82

Advertising
background image

Creating & Using Nodes

70

PT Program Generator (PPG) v5.0

For example, you could multiply the contents of the default register by 3 and
store the results in a register called

Triple

. Rather than supplying a constant

(such as 3), you could specify another register that contains the number you
want to multiply, add, subtract, or divide by.

Figure 45 on page 69

shows the dia-

log box for a

Math

node.

The format of the math function is as follows:

Constant | Register | File + | - | / | *|
% Constant
| Register = Register | File

The results of the math operation must be within the range of
-999,999,999 through 999,999,999 and are always rounded to the
nearest integer.

Floating Point Math

PPG supports floating point math. Decimal values and exponential notation
of values with up to 13 digits can be entered in an application.

Operand 1 Tab

The

Operand 1

tab lets you specify a constant value or a file or register con-

taining the first operand for the mathematical operation. The location of

Operand 1

is displayed near the bottom of the dialog.

Figure 46. Math Node: Operand 1Tab

For more information on files and registers, refer to

Registers on page 78

and

Files on page 81

.

2342.book Page 70 Thursday, July 22, 2004 8:35 AM

Advertising