Next nodes tab, Operation (mathematical function), Call nodes – PSC PT Program Generator User Manual

Page 84: Next nodes tab operation (mathematical function), Efer to, Call, When the subr

Advertising
background image

Creating & Using Nodes

72

PT Program Generator (PPG) v5.0

Next Nodes Tab

Next

specifies the node to branch to if the math operation passes and where to

branch to if it fails. A math operation will fail only if you attempt to divide a
value by zero or operate on a nonnumeric value.

Figure 49. Math Node: Next Nodes Tab

Operation (Mathematical Function)

At the bottom of the

Math Node Properties

dialog (refer to

Figure 45 on page

69

), there is an Operation section, shown in

Figure 50

. Select from mathemati-

cal functions that follow it.

Figure 50. Math Node: Operation

Call Nodes

Call

nodes execute a branch to a subroutine. A subroutine contains nodes that

perform a routine function, such as copying data to a file or verifying data. A
subroutine can be called from multiple locations in the program (with

Call

nodes), eliminating the need for duplication. Creating subroutines and refer-
encing them with

Call

nodes optimizes a PPG program, saving both time and

program size.

Figure 51

shows a

Call Node Properties

dialog.

+ (Addition)

Adds the two values.

- (Subtraction)

Subtracts operand 2 from operand 1.

* (Multiplication)

Multiplies operand 1 by operand 2.

/ (Division)

Divides operand 1 by operand 2. Returns the integer result.

% (Modulus)

Divides operand 1 by operand 2. Returns the remainder.

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

Advertising