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

PT Program Generator User's Manual, pages 98 to 107

Pages 98 to 107 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 98

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

Managing Data

2. In the Create Template Name field, enter the name of the template you want to create. 3. On the left, you will see a list of all currently defined fields. The list of fields currently contained in the template appears in the Available Fields list on the left. •

To add an existing field to the template, select the field name and press Add. The field name now appear in the Template Fields list on the right. To remove a field from the template, select the field name from the Template Fields list and press Remove.

•

Select the Create Field button at the bottom of the dialog to create a new field.

Refer to Fields on page 87 for more information on creating fields. Once you've created a template, it is added to the template pull-down list and you can use it with any register.

Modifying an existing template To modify an existing template, complete the following steps: 1. Locate the template in the PPG Explorer, and right-click on it to open a pop-up menu. Select Properties. 2. The Create Template window is displayed as shown in Figure 57 on page 85. 3. Follow the instructions described above in Creating a Template.

Template Example: Modifying Inventory You run a small TV-repair shop and keep track of parts inventory on a PC in the shop office. Instead of going to the office PC each time you use a part, you would prefer to use the portable to adjust your inventory during the day and update your PC inventory file each night. Create a portable application to download the latest inventory file from your PC and modify it to keep inventory current. Each time you remove a part from the shelf, scan its part number label. The application subtracts 1 from the quantity of items for that part number in the inventory. At the end of the day, upload the adjusted data from the portable to the PC. Use registers, files, and templates as shown in the following steps:

86

PT Program Generator (PPG) v5.0

Page 99

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

Fields

1. Create an Input node to download a inventory file from the PC to a portable file. 2. Use second Input node to store a scanned part number in a register named Part Number. 3. Copy the Part Number register to a Lookup register. 4. Append ,* to the lookup key (wild card lookup). 5. Lookup Lookup register against the inventory file. This assumes that the inventory file is comma delimited, and contains Part Number and Quantity fields.

Fields Fields are a breakdown of data in a single register. Most programs expect to see related values on the same line. Each line is referred to as a record, and each item on the line is called a field. The fields are either set to a fixed length (so that they appear in columns in the data file), or they are allowed a variable length with a separator (such as a comma) separating them. You can also use a template to break apart data stored in a register into separate fields. To create a new Field, select Create > Data > Field from the menubar to open the Create Field dialog, shown in Figure 58. Figure 58. Create Field Dialog

To edit an existing Field: 1. Locate the field in the PPG Explorer; right-click to open a pop-up menu. 2. Select Properties.

User’s Guide

87

Page 100

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

Managing Data

3. The Edit Field dialog is shown in Figure 59. Figure 59. Edit Field Dialog

Using Fields in Templates The most common use of templates is to parse data in a register. A template defines the structure used to access data. The fields are either set to a fixed length (formatted into columns in the data file), or they are allowed a variable length with a separator (such as a comma) separating them. You can also use a template to divide a register’s data into separate fields.

88

PT Program Generator (PPG) v5.0

Page 101

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

Chapter 7 PT40 Communication Overview This chapter describes how to communicate with the PSC PT40 portable data terminal (PDT). The following topics are covered: • Downloading the Application to the PDT on page 89.

•

• •

What Happens During a Download? on page 91.

• • •

XFER32 Setup on page 92.

Specialized Download Situations on page 92. Using XFER32 on page 92. Sending and Receiving Data on page 96. Receive Files on page 98.

Downloading the Application to the PDT To load a program into your PSC portable, complete the following steps: 1. Connect the dock or serial cable with a 9-pin connector to a serial port on your computer. (Use a 25-to-9-pin adapter if necessary.) 2. Connect the other end of the dock or cable to the portable. 3. Turn the portable on. 4. In the PPG window, if the application to be downloaded is not already open, use the File > Open command to open it. 5. Select File > Download Program from the menu. If a dialog box appears, asking if you want to save changes to the file, answer Yes or No.

User’s Guide

89

Page 102

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

PT40 Communication

•

The PSC Portable Compiler window appears momentarily as PPG compiles the program, translating it into a language understood by the portable.

Figure 60. PSC Portable Compiler Window

•

• •

•

The original *.scr file remains intact, and the compiled file is given the same name, but with a *.hex extension. It is this *.hex file that is downloaded into the portable. When compilation is complete, the PPGXFER window opens, displaying the message Initiating Download. If a connection between the PC and the PDT is successfully established, the window shows further messages as the compiled *.hex file is loaded into the portable. Refer to What Happens During a Download? on page 91 for more information. When downloading is complete, you'll see the message Portable successfully programmed in the PPGXFER window, and your application’s initial window appears in the portable’s display.

Figure 61. PPGXFER Window

6. Double-click on the PPGXFER window's Control Menu box or select File > Exit to close the PPGXFER window.

90

PT Program Generator (PPG) v5.0

Page 103

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

Downloading the Application to the PDT

What Happens During a Download? During the application download process, a number of steps take place. First, the downloader checks the version number of the PT40’s operating system. 1. The downloader allows you to choose from three different options. Figure 62. Updating the Operating System’s Download software.

Download the new operating system

This option removes all applications currently stored on the Falcon PT40 and installs or updates the PT40 operating system.

Proceed without downloaded the new operating system

The application is sent to the PT40 without the latest operating system. If the PT40 has an outdated operating system, the newly downloaded application may not run correctly.

Cancel

The download process ends without downloading the application.

2. The downloader requests a list of currently loaded applications from the Falcon PT40. Figure 63. Select an Application from the List of Options.

User’s Guide

91

Page 104

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

PT40 Communication

3. The Falcon PT40 can hold up to four applications. Choose the location where you want to load your new application. • Once you select a location, your application is downloaded. • If there was previously an application in the location you select, that application will be removed and replaced with a new application.

Specialized Download Situations If you are downloading a program file to several portables, or if you switch between two or more programs in a portable, you can save time by downloading the program's compiled file, rather than recompiling the source file each time. To do so, launch the PPGXFER directly from Windows via Start > Programs > PT Program Generator > PPGXFER. Once you're in the PPGXFER window, use the File > Open command to select your previously compiled *.hex file. Once you select the file, downloading begins immediately.

Using XFER32 XFER 32 is the application used to send and receive files to and from the PDT. When you start XFER32, the XFER32 user interface, shown in Figure 64, opens. Figure 64. XFER32 User Interface

XFER32 Setup To prepare for data transfer between the PC and the PDT, click on the Setup button to open the Setup dialog box, which contains three tabbed sections:

92

PT Program Generator (PPG) v5.0

Page 105

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

Using XFER32

•

General Tab on page 93.

•

Transfer Tab on page 94.

•

Logging Tab on page 96.

The settings in these dialogs can be modified or customized to meet your communications requirements.

General Tab The General tab is the first tab displayed on the XFER32 Setup dialog box. Use this section to modify the PDT’s Connection, Baud Rate, Flow Control, Protocol (ACK/NAK is the only protocol used by the PT40), and Maximum Errors. Window Size and Crash Recovery are not supported by the PT40. Figure 65. General Tab

Connection

Enter the Connection port for file transfers. Select from the list of detected serial ports or modems.

Baud Rate

Select a Baud Rate for serial communications from the pull-down list. The default value for XFER32 is 19200. The default value for the PT40 is 9600. Note: The PT40 supports only baud rates up to 38400.

User’s Guide

93

Page 106

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

PT40 Communication

Protocol

Select either XModem or ACK/NAK as the file transfer Protocol for sending and receiving files. NOTE: The PT40 defaults to the ACK/NAK protocol unless you select XModem. XFER32 defaults to the ZModem Protocol. ACK/NAK and XModem protocol are the only two protocols supported by the PT40. NOTE: ZModem Protocol is NOT supported by the PT40.

Maximum Errors Enter the maximum number of Errors permitted before a file transfer is aborted. Range: 1 to 50. 0 specifies no limit to the number of file transfer errors. Flow Control Select the mechanism used to control the flow of data. Sender and receiver must agree on the flow control method. Note: RTS/CTS is the default. Use either None or RTS/CTS. XON/XOFF is not supported by the Falcon PT40. None

No flow control used.

XON/XOFF

NOTE: ZModem Protocol is NOT supported by the Falcon PT40. This feature is only available with ZModem protocol.

RTS/CTS

Hardware flow control that uses Request to Send (RTS), and Clear to Send (CTS) serial port lines to communicate when to suspend and resume data transfer.

Window Size

NOTE: ZModem Protocol is NOT supported by the Falcon PT40. This feature is only available with ZModem protocol.

Crash Recovery NOTE: ZModem Protocol is NOT supported by the Falcon PT40. This feature is only available with ZModem protocol.

Transfer Tab Select the Transfer tab to establish file transfer settings.

94

PT Program Generator (PPG) v5.0

Page 107

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

Using XFER32

Figure 66. Transfer Tab of the File Transfer Utility

Sender Timeout (Seconds)

Enter the maximum number of seconds to wait for a connection when sending files. A value of 0 waits indefinitely.

Receiver Timeout

Enter the maximum number of seconds to wait for a connection when receiving files. A value of 0 waits indefinitely.

Path/Filename Transmission

NOTE: ZModem Protocol is NOT supported by the Falcon PT40. This feature is only available with ZModem protocol.

Overwrite

Select to determine the action the receiver takes when a received file already exists.

Source Longer or Overwrites the existing file if the received file is longer or newer. Newer CRCs Don’t Match

Overwrites the existing file if the CRCs of both files don’t match.

Append

Appends the received file to the existing one.

Always

Overwrites the existing file with the one received.

Source Newer

Overwrites the existing file if the received file is newer.

Date/Length Don’t Match

Overwrites the existing file if the dates or lengths of both files don’t match.

Never

Skips the transfer if the received file already exists.

File Transfer Default

User’s Guide

Enter the File Transfer Default folder for storing received files. Use the Browse button to locate a new location.

95