The text of a manual · part 3 of 21
PT Program Generator User's Manual, pages 18 to 27
Pages 18 to 27 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 18
2342.book Page 6 Thursday, July 22, 2004 8:35 AM
Getting Started
Before You Start What’s New in PPG v5.0? The following features are new to this version of PPG: •
PPG v5.0 works with PSC’s Falcon PT40.
•
Improved user interface provides buttons to access program nodes and controls.
•
Double-byte language support for Chinese Simplified and Chinese Traditional characters.
PPG License Agreement Review the license agreement; it gives you permission to copy the program files for backup purposes only. You may not make a copy for another person to use. When you open the envelope that contains the software, this means that you agree to the terms of the license agreement.
Registering Your Copy of PPG PSC values your feedback. Please take a few moments and complete the Product Registration form located on PSC's website or on the PSC Manuals CD. Registering your products ensures that you will be informed of the latest product news, software updates and other future developments from PSC.
PPG Installation PPG System Requirements PPG runs with the minimum hardware and operating system requirements listed below. For maximum performance, install PPG onto a computer with a higher speed processor and more memory than the minimum requirements.
Required Hardware The following equipment is required to run PPG:
6
•
Processor - 450MHz
•
Memory - 12MB
•
Hard Disk - 10MB PT Program Generator (PPG) v5.0
Page 19
2342.book Page 7 Thursday, July 22, 2004 8:35 AM
PPG Installation
•
Video - VGA
•
A CD-ROM drive
•
A serial port (for loading your program into a portable)
Operating Systems PPG works with the following Microsoft® Windows® operating systems: •
Windows® 98 (SP5)
•
Windows® 2000 (full double-byte functionality)
•
Windows® Me (SP5)
•
Windows® NT (SP6)
•
Windows® XP (full double-byte functionality)
Supported Portables PPG v 5.0 only supports the PSC Falcon PT40. A compatible docking station or communications cable is required for the PDT to work with PPG. Contact a portable data collection supplier to purchase the required equipment and accessories.
Installing PPG Complete the following steps in the installation utility to install PPG: 1. Insert the PPG Installation disk into your PC’s CD drive. A Welcome screen opens. 2. Press Next on the Welcome screen to continue the installation. 3. Press Yes, I Accept at the License Agreement screen to continue the PPG installation process and accept the PPG license agreement. 4. At the Destination Location screen, select the PPG destination directory: PPG installs to C:\Program Files\PSC\PPG50 by default. • Press the Browse button to select or create another directory in which to install PPG. 5. Press Next to select the installation of the PT40 software and PPG. •
6. Press Next to begin the installation of PPG. A series of Installing.... screens appear.
User’s Guide
7
Page 20
2342.book Page 8 Thursday, July 22, 2004 8:35 AM
Getting Started
7. Finally, a message that PPG has been successfully installed is displayed. 8. Press Finish to exit the installation.
Upgrading to PPG v5.0 If you want to upgrade to PPG v5.0, complete the instructions in Installing PPG on page 7. By default, PPG v5.0 is installed in a different default location on your PC’s hard drive than PPG v4.5, so it is possible to have both versions installed at the same time. Prior PPG version source files (*.scr) are converted when you open and save them in PPG v5.0. To maintain PPG v4.5 compatible applications, open them in PPG v5.0 and save them with a new name or new location. There is no keyboard wedge support in PPG v5.0. Applications created in previous versions of PPG that use the keyboard wedge option can be saved in PPG v5.0, but they must be updated with a new input method after you save them.
Uninstalling PPG To uninstall PPG, use the standard method of removing programs installed on Microsoft Windows: 1. From the Windows Start menu, select Settings > Control Panel > Add/ Remove Programs. 2. At the Add/Remove Programs window, select Change or Remove Programs along the left side of the window. 3. Scroll down the screen until you locate PT Program Generator and select it by clicking on it with your mouse. 4. Press Change/Remove to initiate the program removal process.
Launching and Exiting PPG Launching PPG To launch PPG, complete the following steps: 1. Select PPG from your Windows Start Menu > PT Program Generator > PT Program Generator.
8
PT Program Generator (PPG) v5.0
Page 21
2342.book Page 9 Thursday, July 22, 2004 8:35 AM
Overview of PPG
2. The PPG window opens as illustrated in Figure 1 with a new, blank PPG application. Figure 1. The PPG Window
Exiting PPG To exit PPG, select File > Exit from the menubar or double-click on the Control-menu box. A dialog appears, asking if you want to save any changes to the current file. Select Yes to save changes or No to discard them.
Overview of PPG Use PPG to construct and design an application for your PSC portable. You can create custom applications to collect, verify, and store data. Designing and creating the program is the first part of the process; there are several steps involved. Refer to PPG Application Design on page 15 for an overview of using PPG to construct an application for your PSC portable.
User’s Guide
9
Page 22
2342.book Page 10 Thursday, July 22, 2004 8:35 AM
Getting Started
PPG Tutorial To become familiar with PPG, complete the PPG Tutorial on page 99, or access the PPG Tutorial via the on-line help.
Program Files Executable Programs Following is a list of executable programs that are installed on your PC during the installation of PPG: PPG
PPG is the PT Program Generator application. This is the application you use to create programs for a PSC portable.
PPGXFER
PPGXFER is used to transfer the program you created in PPG to the portable. This utility is called automatically by PPG when you download a program to the portable. Refer to Downloading the Application to the PDT on page 89 and Specialized Download Situations on page 92.
PPGComp
PPGComp (PPG Compiler) is used to compile the program you created into the format which is downloaded to the PDT. This utility is called automatically by PPG when you download a program to the portable. Refer to Downloading the Application to the PDT on page 89.
XFER32
XFER32 is used to transfer data between a PC and the portable. After you input data or scan bar codes with the portable, you can use this utility to upload the data into a file on your PC. You can also use it to download information stored in a PC file into the portable. Refer to Using XFER32 on page 92.
Sample Program Files PPG comes with four sample files. Some of these files are just portions of programs demonstrating use of a specific node. However, you can use any of these samples as a foundation for building a full-size program:
10 sample.scr sample.scr allows you to collect information with your portable, upload collected data to a PC, and erase collected data. You will be using this file as you work through PPG Application Design on page 15 and the PPG Tutorial on page 99.
sample2.scr sample2.scr is a simple but complete data-collection program that allows the user to enter data as either item-and-quantity values or just item values. The program also stores data, uploads data, and erases data.
PT Program Generator (PPG) v5.0
Page 23
2342.book Page 11 Thursday, July 22, 2004 8:35 AM
Overview of PPG sample3.scr sample3.scr is an expanded version of sample2.scr that includes review and edit capabilities. (This is the program that was loaded with your portable when you first got it.)
sample4.scr sample4.scr is an application which illustrates multiple frame levels. This example is useful as a model for designing complex applications.
PPG also comes with some example frames and files, discussed in Example Frames on page 135. You can download additional PPG library files, discussed in The PPG Library on page 159, from PSC’s website.
User Interface Menus and Toolbars The PPG menubar is discussed in detail in The PPG Menubar on page 23. In Figure 2, the top toolbar is the PPG toolbar. The second toolbar is the Program Nodes toolbar. Refer to View Menu on page 38 for information on toggling the PPG toolbar and the Program Nodes toolbar on and off. Figure 2. PPG Menubar, PPG Toolbar, and Program Nodes Toolbar PPG Menubar PPG Toolbar Program Nodes Toolbar
Refer to the following tables for descriptions of PPG toolbar and Program Nodes toolbar buttons, their basic functions, and a Link to the section that discusses the function in detail.
PPG Toolbar Buttons Click this Button To Create a new PPG flow chart file. New Refer to Creating a New File (Ctrl+N) on page 24. Open an existing PPG flow chart file. Open Refer to Opening an Existing File (Ctrl+O) on page 25. Save an existing PPG flow chart file. Save Refer to Saving a File (Ctrl+S) on page 25. Cut the selected node to the clipboard. Cut Refer to Cut (Ctrl+X) on page 35.
User’s Guide
11
Page 24
2342.book Page 12 Thursday, July 22, 2004 8:35 AM
Getting Started
Click this Button To Copy the selected node to the clipboard. Copy Refer to Copy (Ctrl+C) on page 35. Paste the cut or copied node to the flow chart. Paste Refer to Paste (Ctrl + V) on page 35. Open the Print dialog box. Print Refer to Printing a File (Ctrl+P) on page 26.) Open the PPG online Help file. Help Refer to PPG Help (F1) on page 47.
Program Nodes Toolbar To create new PPG Program Nodes, click on the node’s Create button: Click this Button
To
Frame
Create a new Frame. (Refer to Frames on page 50.)
Subroutine
Create a new Subroutine. (Refer to Subroutines on page 51.)
Menu
Create a new Menu node. (Refer to Menu Nodes on page 55.)
Display
Create a new Display node. (Refer to Display Nodes on page 56.)
Input
Create a new Input node. (Refer to Input Nodes on page 57.)
Output
Create a new Output node. (Refer to Output Nodes on page 60)
Verify
Create a new Verify node. (Refer to Verify Nodes on page 63.)
Copy
Create a new Copy node. (Refer to Copy Nodes on page 66.)
Modify
Create a new Modify node. (Refer to Modify Nodes on page 67.)
Math
Create a new Math node. (Refer to Math Nodes on page 69.)
Call
Create a new Call node. (Refer to Call Nodes on page 72.)
Link
Create a new Link. (Refer to Links on page 73.)
For a complete description of each node type, refer to Creating & Using Nodes on page 49.
12
PT Program Generator (PPG) v5.0
Page 25
2342.book Page 13 Thursday, July 22, 2004 8:35 AM
Overview of PPG
Navigation If your flow chart is larger than the PPG window, use the scroll bars and cursor keys to scroll different areas into view. (refer to Figure 3 on page 13). Or use your mouse to expand the window size by clicking and dragging on the beveled lower right corner of the PPG window.
Working with PPG Windows To expand the PPG window to fill the screen, or the PPG Application to fill the PPG window, select the Maximize button in the upper right corner of the window. To temporarily remove the PPG window from your screen without exiting the application, select the Minimize button. The window becomes an application icon in the Windows taskbar. Click on the taskbar icon to bring the window back exactly as you left it. Figure 3. Scroll bars on a Flow Chart
User’s Guide
13
Page 26
2342.book Page 14 Thursday, July 22, 2004 8:35 AM
Getting Started
For information on working in application windows, including using scroll bars and selecting menu commands, refer to your Microsoft Windows documentation.
Generating the Program Refer to PPG Application Design on page 15 for an overview of using PPG to create a PDT application, starting with a flow chart of your data-collection process. Creating & Using Nodes on page 49 provides details on each program node type.
Downloading the Program Once you have created a PDT application using PPG, connect your portable to a PC and use the Download Program command to load the program into the portable unit. PPGComp compiles the program automatically, translating it into code that is understood by the portable, and then sends the program via the cable to your portable. After the application has been downloaded to the portable, you are now ready to collect data with the portable.
Transferring Data After you have input data or scanned a series of bar codes with the programmed portable data collection unit, you can use XFER32 to transfer the collected data to a file on your PC. The data is uploaded via the serial cable to a specified file on your computer. You can also transfer data, such as a pick list for comparing input data, from the PC to the portable. For detailed instructions, refer to PT40 Communication on page 89. Collected data is usually a series of numbers or alphanumeric strings stored in a file until you transfer it into a data processing program. For example, a scanned bar code that reads 107-028-0274, once filtered through a program set up to interpret it, is translated into more readable information, such as DOCKERS T-LG, $25.60. You can program the portable to translate scanned numbers into words, but this is usually done with your data processing program. For example, you can load the data into a spreadsheet program that performs calculations. Or use a database program that tracks your inventory. Use PPG to format collected data into human recognizable information.
14
PT Program Generator (PPG) v5.0
Page 27
2342.book Page 15 Thursday, July 22, 2004 8:35 AM
Chapter 3 PPG Application Design Overview This chapter provides an overview of the process of designing and building an application using PPG. The following topics are covered: •
•
Designing the Application on page 15.
•
Application Output on page 15.
•
Application Structure on page 16
Node Types and the Parent-Child Relationship on page 17.
•
Creating Function Nodes on page 18
•
Creating Operation Nodes on page 18
•
Actual vs. Virtual Display on page 19.
•
Defining Program Flow on page 20.
•
Sending and Receiving Files on page 20.
•
Additional Resources on page 21.
Designing the Application Application Output Before you begin to design an application, you must decide how the resulting data will be handled. You probably have a good idea of how you would like the collected data to be output. The result of the application is usually a file of collected data, so you must determine the purpose of the file and how it is organized; this determines what data is collected and how. You may want to examine portions of collected data or work with data files downloaded into the PT40. After you have determined the data output format, you can begin to define the program steps and flow.
User’s Guide
15