Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 21

PT Program Generator User's Manual, pages 58 to 67

Pages 58 to 67 of 204

The original document is the PDF (14 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the PSC PT40 and Datalogic PT40

Page 58

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

The PPG Menubar

Figure 26. Windows Arranged by Tiling

Filename [Frame] Select Windows > Filename [Frame] from the menubar to bring a window hidden behind other windows to the top or to expand a minimized Frame.

46

PT Program Generator (PPG) v5.0

Page 59

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

Help Menu

Help Menu To access Help menu items, select Help > and then the specific menu item you want to use from the menubar: • •

PPG Help (F1). About PPG....

Figure 27. Help Menu

PPG Help (F1) Select Help > PPG Help to access the main Help menu. You can also press <F1> or the Help button on many Dialogs for context sensitive PPG Help anywhere within the PPG application.

About PPG... The About dialog shows information about the PPG application including copyright and version information. Figure 28. About PPG...

User’s Guide

47

Page 60

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

The PPG Menubar

NOTES

48

PT Program Generator (PPG) v5.0

Page 61

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

Chapter 5 Creating & Using Nodes Overview This section contains the following topics: •

•

•

User’s Guide

Flow Chart Levels on page 50.

•

Frames on page 50.

•

Subroutines on page 51.

Creating New Nodes on page 53.

•

Menu Nodes on page 55.

•

Display Nodes on page 56.

•

Input Nodes on page 57.

•

Output Nodes on page 60.

•

Verify Nodes on page 63.

•

Copy Nodes on page 66.

•

Modify Nodes on page 67.

•

Math Nodes on page 69.

•

Call Nodes on page 72.

•

Links on page 73.

Automatically Generated Nodes on page 75

•

Start Nodes on page 75.

•

Exit Nodes on page 75.

•

Return Nodes on page 75.

49

Page 62

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

Creating & Using Nodes

Flow Chart Levels After creating an empty application with the File New command, start in the main frame level. Nodes at this level should include frames and subroutines defining major steps in the application. Take advantage of the parent-child relationship to organize the application in a logical and maintainable fashion. To access the steps within a frame or subroutine, double-click on the frame with the left mouse button or select View > Show Frame/Subroutine Nodes from the menubar. To return to the higher level, double-click on one of the Exit or Entry nodes or choose View > Show Calling Function from the menubar.

Frames Each frame in a program flow chart represents a major function or option. Typically, a program's frames include a Main Menu frame and a frame for each option on the menu. Links connect the frames in a way that indicates program flow. Figure 29 shows the start frame of the sample2.scr application installed with PPG. Figure 29. The Frames Level of a Program

To create the frames of a program flow chart, complete the following steps:

50

PT Program Generator (PPG) v5.0

Page 63

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

Flow Chart Levels

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. 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.

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

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.

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).

User’s Guide

51

Page 64

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

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

Page 65

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

Creating New Nodes

2. To position the subroutine, move the pointer to it, hold down the left mouse button, and drag the subroutine with the mouse. When the subroutine is positioned where you want it, release the mouse button. Since subroutines aren’t Linked to other objects, their locations are optional. Normally, they are placed to one side of the frame. 3. To give the subroutine a more useful name, select Edit > Properties from the menubar or select Properties from the pop-up menu (point and click the right mouse button). This opens the Subroutine Properties dialog box (Figure 30 on page 51). Enter the new name in the name field, and select OK. If you're creating several subroutines, you can create a single subroutines as described above. Then select the subroutine by clicking on it with the left mouse button. Copy the subroutine by selecting Edit > Copy from the menu. Then select Edit > Paste as many times as necessary to create the number of copies you need.

To reference a subroutine from within a frame, use a Call node (refer to Call Nodes on page 72). When the subroutine has been executed, control continues with the next node after the Call node.

Creating New Nodes Each Frame and Subroutine of a program flow chart contains its own set of nodes, in a child (sub-level) flow chart. Every Frame is assigned at least one node automatically: a Start node, which shows the name of the Frame. If the Frame contains Links to other frames, an Exit node for each Link is also created automatically. A subroutine has a Start node and a Return node, which are created automatically by PPG. You add and Link your own nodes to define details for the Frame. To get to the Operation level of a frame, double-click on it. You can also move to it with the mouse and then select View > ShowFrame/Subroutine Nodes from the menubar. To create a node, complete the following steps: 1. Select the type of node you want to create from the Create menu. A new node will appear in the lower right corner of the frame window. The new node is assigned a default name.

User’s Guide

53

Page 66

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

Creating & Using Nodes

2. To position the node, move the pointer to it, hold down the left mouse button, and drag the node with the mouse. When the node is positioned where you want it, release the mouse button. 3. To give the node a more useful name, double-click on it with the left mouse button, select Edit > Properties from the menubar. •

Or select Properties from the menu which appears when you point to the node and click the right mouse button.

•

This opens the Node Properties (refer to Figure 33 on page 57).

•

Enter the new name in the name field, and press OK.

4. To set options and specify functions for the node, display the node’s Properties dialog as described in Step 3, above. Set options and enter information as necessary, and then select OK to save your changes. If you're creating several nodes of the same type, create a single node as described above. Then select the node by clicking on it with the left mouse button. Copy the node by selecting Edit > Copy from the menu. Then select Edit > Paste as many times as necessary to create sufficient copies.

Each node you create requires at least one Link to another node; some require two or more. Use the Create Link command to draw Links from one node to another (refer to Creating Links on page 73). Each node is defined by a series of properties. To view or modify the properties of any node, double-click on the node with the left mouse button, select Edit > Properties from the menu or select Properties from the menu which appears when you point to the node and click the right mouse button. This opens the Node Properties dialog box (refer to Figure 32 on page 55). All nodes contain the following fields: Name

Edit as desired to call the Node by a meaningful name.

Description

Edit as desired to differentiate between similar nodes and node types.

Many Node Properties dialogs also contain the following:

54

Next Node

For each selected node, specify a frame or node to branch to.

Display

Enter text as you wish it to appear on the display of the PDT.

PT Program Generator (PPG) v5.0

Page 67

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

Creating New Nodes

Each node type also contains properties unique to its type. For more details on each node type, all operation nodes are described in this section in the order that they appear on the PPG toolbar and the PPG menubar.

Menu Nodes A Menu node presents a group of options on the portable’s screen and allows the user to choose one of those options by pressing a function key. The portable’s function keys can be used with or without the shift key, allowing for a total of eight selectable menu options. Figure 32 on page 55 shows the Properties dialog for a Menu node. Figure 32. Properties Dialog for a Menu node

Menu Text The Menu Display window represents the portable’s screen. The Falcon PT40 display can vary, depending upon the options you selected in Customize Application (Ctrl+Z) on page 28. Refer to Actual vs. Virtual Display on page 19 for more information.

User’s Guide

•

System font size 8: the display is 6 rows by 16 characters wide.

•

System font size 12: the display is 4 rows by12 characters wide.

•

Chinese characters: the display is 3 rows x 8 characters wide.

55