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

PT Program Generator User's Manual, pages 128 to 137

Pages 128 to 137 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 128

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

PPG Tutorial

2. On the Input From tab, the Input From checkboxes let you indicate which sources of input you want the portable to accept. Select the Scanner, Data Key, and Function Key checkboxes. This allows the user to input data by scanning or pressing keys. Figure 86. The Input: Item Properties Dialog: Store Info Tab

•

A pull-down list appears next to each selected checkbox. Specify a separate Link To setting for each type of input allowed.

•

Select scanner and data-key input to Link to the Verify: Input node.

•

Select function key input to return the user to the Main Menu.

3. If you want the user to view the data while it is entered, enable the Echo to Display checkbox on the Display tab. This displays the characters entered with the data keys on the portable’s screen. To specify the exact position on the screen, select Specify Position. The Echo to Display option displays keyed-in characters only until the user presses the <Enter> key. Once the data is entered (or scanned), the program moves on through the next nodes and redisplays the menu text, overwriting the echoed characters. To avoid this, you must add Output nodes to reposition the cursor and display the echoed characters on a different line. This is demonstrated later in the tutorial.

4. Select the Specify Position checkbox. Position boxes become available, allowing you to indicate the exact row and column you want the echoed data to begin on.

116

•

Position it on the second row and first column.

•

Columns and rows are numbered starting with 0 instead of 1; so enter 1 in the Row field to indicate the second row and 0 in the Col field to indicate the first column.

PT Program Generator (PPG) v5.0

Page 129

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

Building a Custom Portable Program

Figure 87. The Input Properties: Display Tab

5. Create a special register for the input data to keep it separate from other data. Figure 88. The Input: Item Properties Dialog: Store Info Tab

A Register is a temporary holding place for data. Unless you specify otherwise, the program stores input data in a register named Default Register. \

6. Click on the Store Info tab. Select Register from the Data Destination pull-down list, as shown in Figure 89 on page 117. Figure 89. Pull-down List of Available Program Registers

User’s Guide

117

Page 130

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

PPG Tutorial

7. Press the New Register button to open a Create Register window. Enter Inventory in the Create Register field to create a new Register named Inventory. Press OK. 8. In the Write type pull-down list, select Overwrite to clear existing data from the register before storing newly input data. 9. Press OK to create the new Register. 10. Press OK to save your settings and exit the Input Item dialog box.

The Verify: Input Node The Verify node ensures that the data entered is numeric. If the data isn’t numeric, the node passes control to the Output and Display nodes, which sound a beep and display an error message. Complete the following steps to set up this node: 1. Double-click the Verify: Input node to display its Properties. Figure 90. The Verify: Input Dialog Box

2. On the Verify Options tab, select Numeric from Data Type pulldown list. Leave the Comparison pull-down list set to None to NOT verify a specific number. 3. The selections for Next nodes are automatically set according to the Links you create. The top Link always defines the Pass setting. It should be set to go to the Copy: To File node if the data is numeric (Pass) and the Output: Error Beep node if it's not (Fail). 4. Specify what register to verify in the Verify Information tab. Select Inventory from the Register pull-down list. Scroll through the list to find it if necessary. 5. Press OK to save your settings and exit the dialog box.

118

PT Program Generator (PPG) v5.0

Page 131

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

Building a Custom Portable Program

The Output: Error Beep Node Now you need to set the Output node to sound a beep. Complete the following steps: 1. Double-click the Output: Error Beep node to display its dialog box. Figure 91. The Output: Error Beep Dialog Box

2. On the Information to Output tab, select System as the Output To setting and Constant as the Data Source setting. •

In the constant field, enter the characters .+ (period and plus). This is the command to sound a high beep.

•

Or enter .– to sound a low beep.)

3. Press OK to save your settings and exit the dialog box.

The Display: Error Text Node You can have a special message appear when the error beep is sounded. Double-click on the Display: Error Text node, enter the text shown in Figure 92, and press OK. Figure 92. The Display: Error Text Dialog Box

User’s Guide

119

Page 132

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

PPG Tutorial

The Copy: To File Node Finally, you need to set up the Copy: To File node to copy data from the Inventory register to a portable file for transmittal back to the PC. Each time new data is scanned or entered, existing data in the Inventory register is replaced. Therefore, the data must be copied and appended to a data file. Complete the following steps: 1. Double-click the Copy: To File node to display the dialog box. Figure 93. The Copy: To File Dialog Box

2. On the Copy From tab, leave the Data Source field set to Register. 3. Select Inventory from the Register pull-down list. 4. On the Copy To tab, select File from the Data Destination pulldown list. 5. Press the New File button to open the Create File window. 6. Enter Monthly Inventory in the Name field. 7. Press OK to save your new file. 8. In the Write Type pull-down list, select Append. The file name can include spaces and more than eight characters.

9. Press OK to save your settings and exit the dialog box. 10. Press the Close button to return to the main Program level. 11. Select File > Save to save your changes to the application file. The Collect Data nodes you created prompt the user to enter data, and they accept that data either through scanning or data keys. If the data is verified as numeric, it is appended to a data file named Monthly Inventory. If it's not numeric, the portable beeps and displays an error message. Pressing a function key brings back the Main Menu.

120

PT Program Generator (PPG) v5.0

Page 133

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

Building a Custom Portable Program

Creating and Setting Up the Upload Data Nodes The last frame, Upload Data, allows the user to copy collected data from the portable’s file to a file on the PC. You will set up nodes that do the following: •

Display a menu asking if the user wants to upload data.

•

If the response is Yes (<F3>), send data over the serial connector to the PC. If the response is No (<F4>), exit to the Main Menu.

•

If the output is successful, display a message indicating so for 45 seconds (or until the user presses a key), and then clear the portable’s file and return to the Main Menu. If the output is unsuccessful, beep and display an error message, and then redisplay the prompt.

Create nodes for the Upload Data frame by completing the following steps: 1. Double-click on the Upload Data frame to view its contents. Figure 94. The Upload Data nodes

2. Reposition the Entry and Exit nodes as shown in the completed flow chart in Figure 94 on page 121. 3. Create and name the new nodes shown in Figure 94 on page 121, and add the Links as shown.

User’s Guide

121

Page 134

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

PPG Tutorial

When creating the Links from the Output: to PC node, create the Link to the Output: Error Beep node first. This Link will be selected for the Next Node/On Error option.

The Menu: Confirmation Node Complete the following steps to set up this node: 1. Double-click on the Menu: Confirmation node to open its dialog, and enter the text shown in Figure 95. Leave the second line blank. Figure 95. The Menu: Confirmation Dialog

2. Enable the <F3> checkbox. Select Output to PC in the Next Node column to begin data output when the user presses <F3>. 3. Select the <F4> checkbox, and select Exit Main Menu from the pull-down list. This will redisplay the Main Menu when the user presses <F4>. 4. Press OK to save your settings and exit the dialog box.

The Output: to PC Node Complete the following steps to set up this node: 1. Select the Output: to PC node to open its dialog (refer to Figure 96 on page 123). 2. On the Information to Output tab, select the Serial setting for Output To Device. This will send the output to the serial port of the portable, which should be connected to the serial port of the PC.

122

PT Program Generator (PPG) v5.0

Page 135

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

Building a Custom Portable Program

Figure 96. The Output To: PC Dialog Box

3. From the Data Source pull-down list, select File. From the File pull-down list select Monthly Inventory. 4. On the Next Nodes tab, select Display Successful from the Next Node field and Output Error Beep from the On Error field. 5. Press OK to save your settings and exit the dialog box.

The Output: Error Beep Node Complete the following steps to set up this node: 1. Select the Output: Error Beep node to open its dialog box. 2. On the Information to Output tab, select System as the Output To setting and Constant as the Source setting. 3. Enter .+ in the Source pull-down list. This is the code which tells the portable to sound a high beep. 4. On the Next Nodes tab, select Menu Error Text for both fields. 5. Press OK to save your settings and exit the dialog box.

The Menu: Error Text Node Complete the following steps to set up this node: 1. Select the Menu: Error Text node and enter the text shown in Figure 97. 2. Enable the <F3> checkbox and select Output to PC from the pull-down list to attempt a second output if the user presses <F3>.

User’s Guide

123

Page 136

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

PPG Tutorial

Enable <F4> and choose Exit Menu if the user presses <F4>.

Main Menu to return to the Main

Figure 97. New text for the Menu: Error Text node

3. Press OK to save your settings and exit the dialog box.

The Display: Successful Node Complete the following steps to set up this node: 1. Select the Display: Successful node to open its dialog. 2. Enter the text shown in Figure 98. Figure 98. Display text for successful upload

A Menu node is not required here, because only one option is given, and it is executed if any function key is pressed, not only <F4>. The Input node that follows this operation will accomplish this task.

3. Press OK to save your settings and exit the dialog.

The Input: Timeout Display Node Complete the following steps to set up this node: 1. Select the Input: Timeout Display node to open its dialog box. 2. Enable the Function Key checkbox. Select Modify Erase File in the box to the right of the Function Key.

124

PT Program Generator (PPG) v5.0

Page 137

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

Building a Custom Portable Program

3. Enable the TimeOut checkbox. Enter 45 in the Seconds pull-down list that appears next to TimeOut. This instructs the program to return to the Main Menu if the user presses a function key or if 45 seconds pass with no input. 4. Press OK to save your settings and exit the dialog.

The Modify: Erase File Node After you have uploaded data from the portable file, you will want to erase its contents. Otherwise, further data you collect is appended to the data you just uploaded, and your data file will quickly grow out of control. Complete the following steps: 1. Select the Modify: Erase File node to open its dialog box. 2. On the Data to Modify tab, select File in the Data Destination pulldown list. 3. Select Monthly Inventory from the File pull-down list. 4. On the Modification type tab, select Delete from the pull-down list. Figure 99. The Modify Type Tab: Erase File

5. On the Next Node tab, select Exit Main Menu from the pulldown list. 6. Press OK to save your settings and exit the dialog. The nodes for uploading data are now complete. Close the Upload Frame to return to the main program level. Then select File > Save to save your changes to the file. The nodes that you created for the Upload Data frame ask the user for confirmation of the upload task. If the user answers Yes, it outputs the data file over the serial port. If the upload is successful, a message is displayed, the portable’s file is cleared, and the Main Menu returns. If the upload is unsuccessful, the program beeps, displays an error message, and gives the user the option of trying again. Your portable program should now be complete.

User’s Guide

125