beautypg.com

Subroutines – PSC PT Program Generator User Manual

Page 63

background image

Flow Chart Levels

User’s Guide

51

1. Select

Create > Frame

from the menubar. A new frame appears in the

lower right corner of the frame window. The new frame is assigned a
default name.

2. To position the frame, point to it, hold down the left mouse button,

and drag the frame with the mouse. When the frame is positioned
where you want it, release the mouse button.

3. To give the frame a more useful name, select

Edit > Properties

from

the menu or select

Properties

from the pop-up menu (point and click

the right mouse button). This opens the

Frame Properties

dialog box.

Figure 30. The Frame/Subroutine Properties Dialog Box

Subroutines

Subroutines, like frames, are nodes that contain program steps. Subroutines
are useful when your program uses the same sequence of nodes in several
frames. Rather than repeating the nodes for each frame, you can put them in a
subroutine and then use a

Call

node to reference the subroutine (refer to

Call

Nodes on page 72

).

If you're creating several frames, you can create a single frame node as described
above. Then select the frame by clicking on it with the left mouse button. Copy the
frame by selecting

Edit > Copy

from the menu. Then select

Edit > Paste

as many

times as necessary to create the number of copies you need.

Name

PPG automatically names the item with its type. You can rename or
change the name of the item.

Description

This field is optional, but you may wish to complete it to provide yourself
additional information when using similarly named items.

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