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 12 of 21

PT Program Generator User's Manual, pages 108 to 117

Pages 108 to 117 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 108

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

PT40 Communication

Logging Tab Select the Logging tab to establish settings for the communications log. The communications log can be helpful as a trouble-shooting aid. Figure 67. Logging Tab of the File Transfer Utility

Log To File

Specifies that the log is to be written to a text file.

Log To Screen

Specifies that the log is displayed on screen.

Append to Log

This option becomes available when you select Log to File. When enabled, Append to Log adds log information to the end of the log file. If not enabled, new log information replaces the previous log file.

Log Path/ Filename

Specify the location for storing the communications log. If a path is not given, the file is stored in the Default File Transfer folder.

Browse

Use the Browse button to locate a new log file.

Select OK to save the settings and close the setup functions.

Sending and Receiving Data Verify that the portable is properly attached to the host PC. If the portable uses a dock, make sure that the dock is properly attached to the PC. Refer to Transmit (Send) Files, below for specifics on sending files. Refer to Receive Files on page 98 for specifics on receiving files.

96

PT Program Generator (PPG) v5.0

Page 109

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

Using XFER32

Transmit (Send) Files 1. Select the Transmit Files button. Figure 68. Send File to Portable Window

2. Select the file to send. 3. Click Open to send the file to the data collection terminal • Press Cancel to not send any files

User’s Guide

97

Page 110

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

PT40 Communication

Receive Files When receiving files from a data collection terminal, a prompt appears. Enter the name of the incoming file. 1. Select the Receive Files button. Figure 69. Receive File from Portable Window

2. Select (or enter) a filename for the file. 3. Click Open to begin receiving the file. Press Cancel to not receive a file. If you are using a DOS Host PC and wish to use DOS to transfer files, you can download PDTFER, an unsupported DOS file transfer application, from PSC’s website at www.pscnet.com

98

PT Program Generator (PPG) v5.0

Page 111

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

Appendix A PPG Tutorial Overview This tutorial reviews common PPG procedures. Instructions for the following tasks are available: •

Studying a Sample Program on page 100.

•

Building a Custom Portable Program on page 106.

•

•

•

Creating Frames and Links on page 106.

•

Creating the Main Menu Nodes on page 109.

•

Creating and Setting Up the Collect Data Nodes on page 113.

•

Saving Your Program on page 113.

•

Creating and Setting Up the Upload Data Nodes on page 121.

Loading and Using the Program on page 126.

•

Loading the Program onto the Portable on page 126.

•

Using the Program on the Portable on page 126.

Creating and Using Templates on page 128.

•

Creating the New Nodes on page 129.

•

Creating the Fields on page 131.

The entire tutorial takes approximately two hours to complete. You can stop at the identified break locations. If you do take a break, complete the instructions for saving and reloading your work. If you can't complete the tutorial in one sitting, the break points are the best stopping places. When you are done with this tutorial, you should have an understanding of the steps involved in programming and uploading data from the portable with PPG. Refer to chapter PPG Application Design on page 15 for more information on creating a custom portable program.

User’s Guide

99

Page 112

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

PPG Tutorial

Studying a Sample Program The easiest way to find out how a portable program works is to study an existing one. PPG comes with four sample program files. This tutorial looks at the simplest of the four. Later, you will load it into your portable and collect and upload data with it. Complete the following steps to see how a sample program works: 1. If PPG is not already started on your PC, from the Windows Start menu, select Programs > PT Program Generator > PT Program Generator to load PPG. 2. Click on the Maximize button at the top right of the title bar to expand the PPG window to a full screen. 3. Choose File > Open and select sample.scr from the displayed list of files in the c:\Program Files\PSC\PPG50 directory. Press Open to load the file into the PPG window (refer to Figure 70). Figure 70. A Sample Program File

4. Click on the Maximize button on the top right of the Smp1New title bar to expand the frame window to its full size.

100

PT Program Generator (PPG) v5.0

Page 113

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

Studying a Sample Program

•

The program is initially shown at what is called the Program level. This level contains a flow chart of the program's main functions. Each shape in the flowchart is either a function node or an operation node. Most of the nodes are Linked together with arrows, indicating the flow of the program.

•

This sample program includes a Main Menu frame that branches off into three tasks: collecting data, uploading data, and erasing data. Each of the tasks also allows you to return to the Main Menu.

•

The shape labeled Pad Zeros in the bottom-left corner is a Subroutine. It doesn’t Link directly to the other frames, but it is jumped to from other parts of the program by Call nodes.

The current frame is always indicated by a shape filled with color. To select a frame, click on it with the left mouse button.

5. Move the mouse pointer to the Upload frame and click the right mouse button (or select the frame and choose Edit > Properties from the menu). The Frame Properties dialog box will appear (refer to Figure 71). This is where you define the text displayed in the frame. Figure 71. The Frame Properties Dialog Box

6. Select Cancel or press ESC to close the dialog box. User’s Guide

101

Page 114

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

PPG Tutorial

7. Each program frame has sublevel flow charts, which break a program down into component parts. Double-click the Main Menu frame to view its flow chart. Figure 72. The Contents of the Main Menu frame

Within the Main Menu frame, each shape represents an Operation node. Operation nodes give the program detailed instructions, such as where to store scanned data. You specify these instructions by setting the properties for each Operation node.

8. Double-click the Display: Options node to view its Properties (refer to Figure 73). Figure 73. The Display: Options Properties

9. To close the Display: Options properties dialog, press Cancel.

102

PT Program Generator (PPG) v5.0

Page 115

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

Studying a Sample Program

10. Select the X (close button) on the top right of the Main Menu title bar to return to the higher level of the program. •

Or choose the View > Show Calling Function to go back to the Sample Frame level.

You can also use View > Frames and View > Nodes in the menu to jump between levels.

11. Double-click the Collect frame to view its contents (refer to Figure 74). Figure 74. The Contents of the Collect frame

•

Two Display nodes prompt the user to scan or enter first an item code (Display: Enter Item) and then a quantity value (Display: Quantity). Both entered values are displayed together on the screen (via the Output nodes) and are then copied to a file for storage (via the Copy node).

•

The Input nodes send control back through the Exit node to the Main Menu frame if a function key is pressed. The Call node jumps to the Pad Zeros subroutine back in the Sample frame level, padding the input value with zeros, if necessary, to meet a required number of digits.

12. Close the Collect frame window to go back to the Program level. User’s Guide

103

Page 116

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

PPG Tutorial

13. Double-click the Upload frame to view the upload nodes (refer to Figure 75). Figure 75. The Contents of the Upload frame

14. Close the Upload frame window to go back to the Program level. 15. Double-click the Erase frame to view its nodes (refer to Figure 76). Figure 76. The Contents of the Erase frame

16. Close the Erase frame node to return to the Program level. 17. The Pad Zeros subroutine (Program level) is called from the Collect frame. It adds zeros in front of a value to force it to a specific number of digits. Double-click the Subroutine node to open it.

104

PT Program Generator (PPG) v5.0

Page 117

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

Studying a Sample Program

Figure 77. The Contents of the Pad Zeros subroutine

18. Close the Pad Zeros subroutine window and to return to the Program level. By looking at all the pieces of this program file, you can get a general idea of how the program is put together. The Program flow chart defines the major tasks of the program: Main Menu, Collect, Upload, Erase, and Pad Zeros. Each frame and the subroutine is associated with a more detailed flow chart. Together, the function and operation nodes work to outline every detail of the data-collection process.

Want a Break?

If you are ready for a break, you can easily stop here. You have not made any changes that need saving, so you won’t lose any work if you exit PPG or turn off your computer.

User’s Guide

105