Creating & Using Nodes

Figure 31 on page 52 shows the Frames level of a program that contains three subroutines: one for counting the data collected in a file, one for verifying that data, and one for displaying the data. Call nodes within the program frames jump to the subroutines as needed.

Subroutine nodes can be placed anywhere in the application. However, to make subroutine management easier, most applications will locate subroutines either at the top-most frame level or in a separate frame that contains all application subroutines.

Figure 31. Subroutines in a PPG program

Creating subroutines is the same as creating frames. Complete the following steps:

1.Select Create > Subroutine from the menubar. A new subroutine opens in the lower right corner of the frame. The new subroutine is assigned a default name.

52

PT Program Generator (PPG) v5.0