background image

Example Frames

142

PT Program Generator (PPG)  v5.0

6. Displays the result (

pass/fail

).

Figure 114. Displays Pass or Fail 

Verifying Input Size

To verify that a scanned or entered code is a given number of characters or 
within a given range, use the 

Size to Register

 option in the 

Input

 node collect-

ing the data. This option stores the number of characters of the given input in 
a separate register, which can then be checked with a 

Verify

 node. 

This example is illustrated in 

Tip05.scr

, which is shown in 

Figure 115 on 

page 143

.

Output Fail

Output Pass

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

Summary of Contents for PT Program Generator

Page 1: ...PT Program Generator User s Manual 2342 book Page 0 Thursday July 22 2004 8 35 AM...

Page 2: ...971177 4991692 5001406 5015831 5019697 5019698 5086879 5115120 5144118 5146463 5179270 5198649 5200597 5202784 5208449 5210397 5212371 5212372 5214270 5229590 5231293 5232185 5233169 5235168 5237161 5...

Page 3: ...re You Start 6 What s New in PPG v5 0 6 PPG License Agreement 6 Registering Your Copy of PPG 6 PPG Installation 6 PPG System Requirements 6 Required Hardware 6 Operating Systems 7 Supported Portables...

Page 4: ...Creating Operation Nodes 18 Actual vs Virtual Display 19 Defining Program Flow 20 Sending and Receiving Files 20 Additional Resources 21 The PPG Menubar 23 Overview 23 File Menu 23 Creating a New Fil...

Page 5: ...C 42 Modify Ctrl Alt Y 43 Math Ctrl Alt M 43 Call Ctrl Alt L 43 Link Ctrl Alt N 43 Data 43 Register 43 File 43 Template 43 Field 43 Window Menu 44 Cascade Windows 45 Tile Windows 45 Filename Frame 46...

Page 6: ...Tab 72 Operation Mathematical Function 72 Call Nodes 72 Call Subroutine 73 Links 73 Creating Links 73 Adjusting Links 74 Moving Links 74 Deleting Links 74 Automatically Generated Nodes 75 Start Nodes...

Page 7: ...inks 107 Main Menu Access 108 Creating the Main Menu Nodes 109 Saving Your Program 113 Creating and Setting Up the Collect Data Nodes 113 The Display Enter Item Node 115 The Input Item Node 115 The Ve...

Page 8: ...Files 153 Reviewing a File 155 Sounding a Beep 157 Padding a Number with Leading Zeros 157 The PPG Library 159 Overview 159 PPG Program Source Files 159 PPG System Commands 163 Overview 163 Using Pred...

Page 9: ...mes with PSC or any third party from whom PSC has obtained a licensed right 1 2 Each Software license permits End User to install the Software on a single computer only A separate Software license mus...

Page 10: ...o End User During this period for all reproducible nonconformities for which PSC has been given written notice PSC will use commercially reasonable efforts to remedy nonconformities determined by PSC...

Page 11: ...ons at FAR 52 227 14 g or 52 227 19 or in the Rights in Technical Data and Computer Software clause at DFARS 252 227 7013 c 1 ii whichever is applicable If End User uses the Software outside the Unite...

Page 12: ...PPG Software End User License Agreement x PT Program Generator PPG v5 0 NOTES 2342 book Page x Thursday July 22 2004 8 35 AM...

Page 13: ...PPG menubar and how to access all PPG s features using the menubar including creating saving and editing applications Creating Using Nodes on page 49 gives you detailed information on Frames Subroutin...

Page 14: ...ions Formatting conventions are used throughout this document to provide a con sistent method for representing various screen shots buttons controls key board characters notes and cautions while you a...

Page 15: ...integrity or data failure Cautions always have the Caution icon to the left Notes provide additional information on a topic including technical details excep tions to instructions and other pertinent...

Page 16: ...Introduction 4 PT Program Generator PPG v5 0 NOTES 2342 book Page 4 Thursday July 22 2004 8 35 AM...

Page 17: ...n page 6 Required Hardware on page 6 Operating Systems on page 7 Supported Portables on page 7 Installing PPG on page 7 Upgrading to PPG v5 0 on page 8 Launching and Exiting PPG on page 8 Overview of...

Page 18: ...ans 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 Prod uct Registration form located on PSC s we...

Page 19: ...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 sc...

Page 20: ...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 sele...

Page 21: ...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...

Page 22: ...oad 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 do...

Page 23: ...ons their basic functions and a Link to the section that discusses the function in detail PPG Toolbar Buttons sample3 scr sample3 scr is an expanded version of sample2 scr that includes review and edi...

Page 24: ...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 Dis...

Page 25: ...orking 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 remo...

Page 26: ...d 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 po...

Page 27: ...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 prob...

Page 28: ...lecting and uploading data you can provide a menu that will allow the user to select an action 5 Visualize the individual steps involved in each major action For example will the user be collecting di...

Page 29: ...constructed with PPG contain two general types of nodes Func tion Nodes which include Frames and Subroutines and Operation Nodes Each Frame in a program flow chart represents a major function or optio...

Page 30: ...ns that are used in multiple places in the applica tion Use Call nodes to link Subroutines to the location within the Operation Node or Frame where they will be called Using Your Flow Chart Using the...

Page 31: ...bar codes or enter more data than can fit in a single line of the virtual display the data automatically wraps to the next line Because applications for the PT40 can contain and use different fonts th...

Page 32: ...the copy opera tion is successful to continue on to a Menu node For information on the mechanics of creating modifying and deleting Links refer to Links on page 73 Refer to Data on page 43 for a brie...

Page 33: ...n these files to see how they are constructed and use them as building blocks in constructing your own application Refer to Example Frames on page 135 for information on the example frames included wi...

Page 34: ...PPG Application Design 22 PT Program Generator PPG v5 0 NOTES 2342 book Page 22 Thursday July 22 2004 8 35 AM...

Page 35: ...rs on page 11 for a brief overview of the PPG menubar File Menu The following sub topics are covered in this section Creating a New File Ctrl N on page 24 Opening an Existing File Ctrl O on page 25 Cl...

Page 36: ...ke most software programs PPG stores data in files To save a program flow chart you store it as a file Once you have saved the file you can open it and modify it Use the File menu to create a new file...

Page 37: ...and select OK If no application is currently open the specified file is loaded into the PPG window If an application is already open a second copy of PPG will start and open the file you selected Clos...

Page 38: ...The Save As Dialog Type a name for the new file in the File Name field The pull down list dis plays the names of all existing source program files in the PPG directory Unless you want to overwrite the...

Page 39: ...Press OK to send the displayed frame to the printer Only one view of a flow chart can be printed at a time Page Setup Select File Page Setup to change the printing options Refer to Figure 10 on page...

Page 40: ...nto the portable The PPG Compiler window opens downloads the file and then closes automatically Refer to PT40 Communication on page 89 for complete instructions on download ing and transferring files...

Page 41: ...he fields pull down lists Default PDT type Determines the PSC por table defaults Select from one of two PSC portable types Default Language Determines the language and font size in which prompts appea...

Page 42: ...nt changes affect all text in the flow chart not just the selected node or frame All objects in the current flow chart are affected immediately Corresponding settings for previously created applicatio...

Page 43: ...s Press No to apply your changes only to the current application Press Cancel to cancel your changes Customize Display Ctrl Y File Customize Display from the menubar to open the Display Options dia lo...

Page 44: ...ew grid points Enable this option to display grid points on the flow chart window Dimensions Default width height 10 pixels between points Appearance You can change the shape and color for each type o...

Page 45: ...Select a outline color for the node from the pull down list Default Navy More Colors Click on More Colors to open a standard Windows dialog box for creating custom colors Startup Select the checkbox...

Page 46: ...tem you want to use from the menubar as shown in Figure 16 on page 34 Figure 16 The Edit Menu Selecting Objects Select multiple objects using standard Windows selection methods Select one object Hold...

Page 47: ...ames and nodes just like they do on text or graphics in other Windows applications Moving Links To move a node while retaining the position of anchored jointed links press and hold the Shift and Ctrl...

Page 48: ...me and description Figure 17 Subroutine Properties Dialog Box To keep modifications press OK a new name shows on the node Press Cancel to close the dialog without keeping your modifications CAUTION PP...

Page 49: ...tarting on page 49 to view the proper ties dialog for each node type Figure 18 Display Node Properties Dialog Box To approve the changes press OK to view the new name on the node Press Cancel to close...

Page 50: ...g Function Select View Show Calling Function to show the parent frame of an open child frame Refer to Node Types and the Parent Child Relationship on page 17 for more information on the Parent Child r...

Page 51: ...Figure 21 View Toolbars menu PPG Select View Toolbar PPG Selecting this menu item toggles the PPG Toolbar on and off Program Nodes Select View Toolbar Program Nodes Selecting this menu item toggles th...

Page 52: ...indow to the desired location Status Bar Select View Status bar to toggle the bottom status bar on or off When you print to a menu or toolbar command the status bar displays a text description of the...

Page 53: ...l Alt Y on page 43 Math Ctrl Alt M on page 43 Call Ctrl Alt L on page 43 Link Ctrl Alt N on page 43 Data on page 43 Register on page 43 File on page 43 Template on page 43 Field on page 43 Refer to Cr...

Page 54: ...y Nodes on page 56 Input Ctrl Alt I Input nodes specify how the portable will receive data You can indicate how the input is accepted and where it is stored Refer to Input Nodes on page 57 Output Ctrl...

Page 55: ...ble has its own data storage methods Refer to Managing Data on page 77 for information on Data Files Fields Templates and Registers Register Registers store data temporarily For complete information o...

Page 56: ...red menu item Cascade Windows on page 45 Tile Windows on page 45 Filename Frame on page 46 Figure 23 Window Menu Select More Windows at the bottom of the Window menu to view a list of open frames if y...

Page 57: ...verlapping tiles Refer to Figure 25 on page 45 to view cascading windows Figure 25 Windows Arranged by Cascading Tile Windows Select Windows Tile from the menubar to arrange open windows as non overla...

Page 58: ...G v5 0 Figure 26 Windows Arranged by Tiling Filename Frame Select Windows Filename Frame from the menubar to bring a window hid den behind other windows to the top or to expand a minimized Frame 2342...

Page 59: ...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 PP...

Page 60: ...The PPG Menubar 48 PT Program Generator PPG v5 0 NOTES 2342 book Page 48 Thursday July 22 2004 8 35 AM...

Page 61: ...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 N...

Page 62: ...on 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...

Page 63: ...ntain 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...

Page 64: ...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 a...

Page 65: ...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 eac...

Page 66: ...e 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 sel...

Page 67: ...e 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 Displa...

Page 68: ...when that function key is selected Any function keys not activated in the Menu node dialog box will have no effect when pressed Display Nodes Display nodes display text on the portable s screen The d...

Page 69: ...de Input Nodes Input nodes specify how the portable will receive data You can use the dialog box for an Input node to indicate which sources of input scanner data keys etc you want to accept Figure 34...

Page 70: ...store the data For serial input with a file as the destination the number of records in the file is saved as the size in the register Scanner Allows data input from the bar code scanner The program p...

Page 71: ...an exact starting position The clearing option allows you to further control the display To remove exist ing data from the line on which the input data is displayed select either To end of line or Cou...

Page 72: ...t Field from the Write Type pull down list Specify or define a template and select the field refer to Creat ing a Template on page 85 To store the data in a file select File from the Data Destination...

Page 73: ...Information to Output Tab Output To specifies the channel over which data is sent Output To Select an option to Output To Display Writes the data to the portable s screen starting at the current curs...

Page 74: ...n Figure 39 Figure 39 The Output Operation dialog Information to Output The Information to Output options specify the data or com mand to be transmitted string or the register or file containing the d...

Page 75: ...given numeric or alphabetic range Usually a Verify node Links to one node if the data passes the test and to another node if it doesn t For example a Verify node might check to see if the value scanne...

Page 76: ...e The Sorted setting uses a binary search algorithm to speed up the file searches This option works only with presorted files Use the displayed sub dialog box to specify the exact register or file Usi...

Page 77: ...mmas dollar sign and slash Refer to ASCII Hex Conversion Table on page 167 for a table of ASCII values NOTE Use the ASCII setting only if you don t care if the data is numbers or letters Numeric value...

Page 78: ...e A Copy node can also copy data from a portable file to a register where it can be referenced or displayed You can also use a Copy node to copy a constant value to a register or file or to copy data...

Page 79: ...pied to either a register or a file Select the destination from the available options For more information refer to Using a Register as a Destination on page 79 and Using a File as a Destination on pa...

Page 80: ...u select Record refer to Using a File as a Source on page 82 Modification Type This option allows you to select how the data is modified Select from the fol lowing To Upper case Changes all lowercase...

Page 81: ...ister For example if the register value were 123456 this option would reverse the order of characters in the string to 654321 Delete Erases the data from the specified register field or file Clear 8th...

Page 82: ...e results of the math operation must be within the range of 999 999 999 through 999 999 999 and are always rounded to the nearest integer Floating Point Math PPG supports floating point math Decimal v...

Page 83: ...n on files and registers refer to Registers on page 78 and Files on page 81 Result Tab Register File specifies where the result of the math operation is stored in either a field register or file The l...

Page 84: ...on Call Nodes Call nodes execute a branch to a subroutine A subroutine contains nodes that perform a routine function such as copying data to a file or verifying data A subroutine can be called from m...

Page 85: ...es directing the program to the next step A Link pointing to a frame or node shows how it is accessed A Link pointing away from a frame or node shows where the program goes next To create a Link compl...

Page 86: ...button If two or more Links overlap you can select them separately by moving the arrow pointer to a joint or arrowhead and holding down the left mouse but ton The selected Link appears dashed To sele...

Page 87: ...d returns to its parent frame Exit nodes are created automatically by PPG when you create a Link from one frame to another Refer to Node Types and the Parent Child Relationship on page 17 for more inf...

Page 88: ...Creating Using Nodes 76 PT Program Generator PPG v5 0 NOTES 2342 book Page 76 Thursday July 22 2004 8 35 AM...

Page 89: ...n page 79 Using a Register as a Destination on page 79 Specifying a Register Field on page 80 Register Example Parsing Data on page 81 Files on page 81 Using a File as a Source on page 82 Data Locatio...

Page 90: ...in a register before it is copied into a portable file You can also use registers to store user response to a prompt the index of a record in a file and so on Files Holds data in the portable until it...

Page 91: ...play a list of templates and fields within the register For more information on register fields refer to Specifying a Register Field on page 80 Using a Register as a Destination When you choose Regis...

Page 92: ...pull down lists Select the template you want to use from the Template pull down list and then select the field To create a new template select the New Template button refer to Creating a Template on p...

Page 93: ...her the character in the Region field is N and if it is proceeds to a Copy node that copies the contents of the input register to a file called North 3 Create a second Verify node that checks whether...

Page 94: ...he New File button to create a new file Enable the Record checkbox to see additional options Data Location The Data Location field lets you specify where the data you want to use is cur rently located...

Page 95: ...Options Select from the File pull down list or press the New File button to create a new file Index Index lets you indicate a register where the number of the record you want to use is stored You are...

Page 96: ...ds in a single record Data in the file would be arranged either in fields of a fixed size as in the fol lowing 2348493848 48 393948 8 293832 9 832928 185 392038 28 282930 Insert Places the data before...

Page 97: ...tion field the second value goes into an Item Number field and the program pairs the values appropriately Another use of templates is to break down data stored in one register into two or more registe...

Page 98: ...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 Figu...

Page 99: ...ams 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 co...

Page 100: ...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 l...

Page 101: ...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 compute...

Page 102: ...dow 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 th...

Page 103: ...ntly loaded applications from the Falcon PT40 Figure 63 Select an Application from the List of Options Download the new operating system This option removes all applications currently stored on the Fa...

Page 104: ...g 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 PPG...

Page 105: ...ate Flow Control Proto col 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 Conn...

Page 106: ...r 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...

Page 107: ...when a received file already exists Source Longer or Newer Overwrites the existing file if the received file is longer or newer CRCs Don t Match Overwrites the existing file if the CRCs of both files...

Page 108: ...Files below for specifics on sending files Refer to Receive Files on page 98 for specifics on receiving files Log To File Specifies that the log is to be written to a text file Log To Screen Specifie...

Page 109: ...s 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 2...

Page 110: ...les 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...

Page 111: ...ing 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 hour...

Page 112: ...dy started on your PC from the Windows Start menu select Programs PT Program Generator PT Program Gener ator to load PPG 2 Click on the Maximize button at the top right of the title bar to expand the...

Page 113: ...ain 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 5 Move the...

Page 114: ...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 Within the Main Menu frame eac...

Page 115: ...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 sen...

Page 116: ...m 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 sub...

Page 117: ...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 operatio...

Page 118: ...ata and Upload Data The program will start with the Main Menu frame which offers access to the other frames You can return to the Main Menu from either the Collect Data or Upload Data frames Create th...

Page 119: ...lick the right mouse button and select Properties to open the Frame Properties dia log Enter Collect Data in the Name field and select OK 6 Select Create Frame move the FRAME box to the bottom right a...

Page 120: ...90 angle Complete the following steps 1 Select Create Link and click on the Collect Data frame 2 Instead of clicking directly on the other frame move the cursor straight up until it is level with the...

Page 121: ...he Main Menu frame This is a simple frame creating a path to either of the other two frames You will create a Menu node that advances to the Collect Data frame if the user presses F3 and to the Upload...

Page 122: ...to Link the nodes together to indicate program flow Select Create Link from the menubar or press the Link button 7 Use the mouse to draw the Links shown in Figure 81 To reposition a node move the mou...

Page 123: ...tions node and select Properties to display the node s Properties The dialog includes a text entry area called Display that represents the portable s screen refer to Figure 82 Figure 82 The Menu Optio...

Page 124: ...hese keys specify which node to progress to for each function key 12 Enable check the F3 checkbox Click on the down arrow button in the Next node pull down list on the right side of the F3 line A pull...

Page 125: ...ed so you won t lose any work if you exit PPG or turn off your computer now Creating and Setting Up the Collect Data Nodes The Collect Data frame allows the user to scan bar codes and enter data throu...

Page 126: ...from the file list Select OK to load the file into the PPG window 2 At the Program level double click the Collect Data frame to access its contents Because this frame has two Links one to it and one f...

Page 127: ...alog box refer to Figure 85 on page 115 2 Type Enter Item on the first line of the text entry area 3 Use the keyboard navigation keys to move to the fourth line and enter Menu 4 Select OK to save your...

Page 128: ...ntered with the data keys on the portable s screen To specify the exact position on the screen select Specify Position 4 Select the Specify Position checkbox Position boxes become avail able allowing...

Page 129: ...roperties Dialog Store Info Tab 6 Click on the Store Info tab Select Register from the Data Desti nation pull down list as shown in Figure 89 on page 117 Figure 89 Pull down List of Available Program...

Page 130: ...or 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 Nume...

Page 131: ...e 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...

Page 132: ...he Data Destination pull down 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...

Page 133: ...essful display a message indicating so for 45 sec onds 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...

Page 134: ...t 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 th...

Page 135: ...p 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 t...

Page 136: ...gure 98 Figure 98 Display text for successful upload 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 I...

Page 137: ...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 M...

Page 138: ...PPG window select File Download Program If you are prompted to save your changes answer Yes The PSC Portable Compiler window appears while PPG compiles the program When compiling is complete the PSC...

Page 139: ...ed correctly you should hear a single beep You will not see the scanned codes on the portable s screen because they are overwritten by the redisplayed menu once the data is input When you scan the las...

Page 140: ...xpect to see related values on the same line as in the following 3849293 5 9385834 12 984849 8 In this arrangement each line is referred to as a record and each item on the line is called a field The...

Page 141: ...lues as a pair You will also alter the existing Input node to use a template Creating the New Nodes Create the new nodes by completing the following steps 1 If PPG is not already started on your PC fr...

Page 142: ...e and from the Input node to the Exit node so that they are no longer jointed 6 Add the new nodes and Links shown in Figure 81 and rename the nodes as shown Figure 101 The New Collect Data nodes To de...

Page 143: ...o to Display checkbox Select Specify Position from the pull down list enter 1 in the Row pull down list and 0 in the Col box Press OK Creating the Fields Create the template fields by completing the f...

Page 144: ...eate Field button to display a Create Field dialog Figure 103 The Define Field Dialog Box Define two fields for this template Item and Quantity Enter Item in the Field box To allow any length select t...

Page 145: ...he value input after the How Many prompt in the Quantity field of the Inventory register Press OK 8 Specify storing the input item number in the Item field of the register The program will work correc...

Page 146: ...it onto the portable When it has finished downloading you can experiment with collecting data using the new program After you enter the item and quantity values both entries are displayed together on...

Page 147: ...138 Verifying that a Number is an Integer on page 139 Verifying Input Size on page 142 Downloading a File to a PSC Portable on page 145 Finding the Number of Records in a File on page 147 Searching f...

Page 148: ...me To set the date Example displays the old time or date 5 Enter the new time or date if the time or date is correct press ENTER Changing the Auto Off Timeout By default the PSC portable powers off au...

Page 149: ...as follows Figure 104 Tip04 scr Flow Chart 1 Creates a new Output node called Position This Output node sends information to the existing display and position the cursor within the display screen Sel...

Page 150: ...from being written on the last line of the display which is not always desirable The second output node sends the contents of the Default Register to the display Sample Verification Methods Verifying...

Page 151: ...meric Data Type Verifying that a Number is an Integer Another type check that may be needed is to confirm that data is an integer rather than a fractional numeric value This is done using a combinatio...

Page 152: ...rms that data is an integer and performs the following steps 1 Display Verify Integer Figure 109 Display Integer Test 2 Enter the value to check Figure 110 Display Input Value 3 Verify that the value...

Page 153: ...that there is no e in the value floating point allows for expo nents i e 1 25e 6 is a valid floating point value Figure 112 Verify No e 5 Check for a decimal point values with fractions are not integ...

Page 154: ...of characters or within a given range use the Size to Register option in the Input node collect ing the data This option stores the number of characters of the given input in a separate register which...

Page 155: ...verifies that the input is between 6 and 10 characters long If the size is incorrect the display named Wrong prompts the user to try again If the size is correct the scan is copied to a file and the...

Page 156: ...are set as shown in Figure 117 Copy TO FILE Copies the scanned code from the default register into a file and loops back to the Input STORE node if the Input Size value is within the given range 6 to...

Page 157: ...ple you might have an inventory file that you need to check scanned codes against Tip06 scr shown in Figure 118 downloads a file from the host computer to a connected portable Figure 118 Tip06 scr Dow...

Page 158: ...Display DONE displays DOWNLOAD DONE F3 MORE F4 QUIT on the portable s screen Display TIMEOUT If downloading is unsuccessful Display TIMEOUT displays TIME OUT EXCEEDED F3 TRY AGAIN F4 QUIT on the por t...

Page 159: ...specified for storing the index value Since it won t find a match the program will return the file size storing it in the index register Another method copies a known value to the end of the file uses...

Page 160: ...result is 1000 Use that register in a Verify node as the Comparison type against the Default File to determine whether there is a match To search for a partial match complete the following steps 1 Inp...

Page 161: ...Type Register as the Comparison type and Default Register as the Register type Searching for Data in a File A search of a multiple field file for data in one field of the file may be accom plished us...

Page 162: ...of the entry so the result is 12347 Use the Lookup register in a Verify node as the comparison type against the Default File to determine the existence of a duplicate record To search for a data in a...

Page 163: ...sc1 item2 desc2 item3 desc3 you could divide it into two files as follows Instead of searching through both item numbers and descriptions your pro gram could search through File1 which contains item n...

Page 164: ...of the record to a different file 1st file and Copy 2ND FIL copies the other part of the record into another file 2nd file Modify DEL 1ST Deletes the first record in the original default file what was...

Page 165: ...tem whose number is entered by the user Figure 123 Tip10 scr References Two Different Files Display SCAN Prompts the user to enter an item number or press F4 to quit Input ITEM Stores the input entry...

Page 166: ...indexed position is put into a second register and Copy INDEX copies the record at that indexed position from the description file into the default register refer to Figure 125 on page 154 Output POS...

Page 167: ...r will determine which record is displayed Verify END Looks at the record at the position specified in the Index register If the record contains end this is the last record in the file and the program...

Page 168: ...es the user the ability to search through records in both directions First find the end of the file refer to Finding the Number of Records in a File on page 147 Next output the first record and give t...

Page 169: ...low beep followed by another high beep Padding a Number with Leading Zeros Many database programs use fixed length fields which means that values stored in them must be a given number of characters l...

Page 170: ...INPUT SIZE register Modify REVERSE1 Reverses the order of digits in the INPUT SIZE register Copy ZEROS Copies six zeros to the end of the value in the INPUT SIZE register Copy 1ST SIX Copies the first...

Page 171: ...via modem and receive the data AUTO BAT A batch file that uses the SAMPLE2 SCR program and automati cally pulls files from the collect mode BASIC SCR A program with options for Menu Upload and Erase n...

Page 172: ...help nurses track patient medications and used items It also has a reminder feature and a way to review each patient s file INSPECT SCR A program that prompts the user with questions about a scanned...

Page 173: ...ntered and followed by a test number In or out of range is then displayed TRACKER SCR A sample of a minutes counter A pick list is downloaded and when a function is chosen time in minutes is counted u...

Page 174: ...The PPG Library 162 PT Program Generator PPG v5 0 NOTES 2342 book Page 162 Thursday July 22 2004 8 35 AM...

Page 175: ...user The following bar codes are provided in this section Using Predefined Defaults on page 164 Alternate Parameters on page 165 Additional setting bar codes are provided in the Programming chapter in...

Page 176: ...efault Name Bar Code Description Predefined Default 0 D0 Turns every ON OFF param eter OFF and sets all mini mum and maximum lengths to zero Predefined Default 1 D1 Turns every ON OFF param eter ON se...

Page 177: ...ar Code Description Clear Mode Has the same effect as the CLR key Character Clear Mode Has the same effect as the CLR key for the last character entered Receive File Mode Prepares the portable to acce...

Page 178: ...PPG System Commands 166 PT Program Generator PPG v5 0 CAUTION Reset Mode Clears all memory and resets the portable 2342 book Page 166 Thursday July 22 2004 8 35 AM...

Page 179: ...69 LF 0A 2A J 4A j 6A VT 0B 2B K 4B k 6B FF 0C 2C L 4C l 6C CR 0D 2D M 4D m 6D SO 0E 2E N 4E n 6E SI 0F 2F O 4F o 6F DLE 10 0 30 P 50 p 70 DC1 11 1 31 Q 51 q 71 DC2 12 2 32 R 52 r 72 DC3 13 3 33 S 53...

Page 180: ...ASCII Hex Conversion Table 168 PT Program Generator PPG v5 0 NOTES 2342 book Page 168 Thursday July 22 2004 8 35 AM...

Page 181: ...de 169 Appendix F Useful Bar Codes File Dump Program Mode Set Date Set Time CR Only Protocol ACK NAK Protocol Xmodem Protocol C A 0 0 E E C A 0 1 E E C A 0 2 E E 2342 book Page 169 Thursday July 22 20...

Page 182: ...Useful Bar Codes 170 PT Program Generator PPG v5 0 Reset Factory Defaults S D 2 C 8 E E 2342 book Page 170 Thursday July 22 2004 8 35 AM...

Page 183: ...s can cause this problem Open the scr file using a word editor of some kind Avoid any editors such as Microsoft Word which tend to add special control characters to the file Notepad has been used succ...

Page 184: ...ample program earlier the portable may not be set to allow serial input or the serial parameters may not be set correctly In this case scan the following bar code or select options in the portable to...

Page 185: ...Removing these nodes could cause your applica tion to behave unexpectedly If you are sure you want to delete the nodes press Yes If you want to cancel the delete command press No Do you want to overw...

Page 186: ...btain the international version of PPG No active frame The scr file has been corrupted Contact Technical Support for assistance Please enter a name The node has a blank name Please enter a name up to...

Page 187: ...ns and try again If no other applications are open you may need to reboot your PC before trying again Error creating file name An error occurred while creating the file The directory may be write prot...

Page 188: ...h node is the problem open the application with PPG locate the problem node and view its properties Make sure all required options are selected Save the application and select File Download to compile...

Page 189: ...d the PDT Verify that the correct serial port has been selected and that the serial port is functioning Open COM error Set COM state error TimeOut exceeded WriteComm error Aborting PDT does not suppor...

Page 190: ...of PSC s home page Browse the TekForum at PSC s website to find answers to your questions about common technical issues Register with Tek Forum to submit a question to the PSC Technical Support Staff...

Page 191: ...f or access to a specified type of data Fields and their locations in a register are defined by tem plates file A file is a storage location for data Flow charts you create in PPG are stored in files...

Page 192: ...kind of action that can be performed by the program Detailed instructions for the action are specified by settings in a dialog box associated with the node A connected set of nodes makes up one frame...

Page 193: ...f rows allowed depending upon the selected language Subroutine A subroutine contains nodes that execute program steps very much like a frame The difference is that a subroutine is not connected to oth...

Page 194: ...Glossary 182 PT Program Generator PPG v5 0 NOTES 2342 book Page 182 Thursday July 22 2004 8 35 AM...

Page 195: ...nd nodes 30 32 breakpoints 179 buttons radio 116 C Call nodes 53 72 179 characters number of in registers 58 clearing display screen 59 eighth bit from data 69 clicking 3 clock bar code for 169 commun...

Page 196: ...translating 14 85 data collection defined 179 data flow controlling 77 data type verifying 65 date bar code for 169 default communications settings resetting bar code for 170 defaults predefined reset...

Page 197: ...g 69 moving data to and from 66 naming 120 program source 24 180 creating 24 directory for 26 downloading 14 126 opening 25 printing 26 saving 26 referencing multiple 153 reviewing contents of 155 spl...

Page 198: ...creating 74 108 overlapping 74 lowercase changing to uppercase 68 M Math nodes 69 180 linking to other nodes or frames 72 math operations 72 storing results of 71 maximize button location of 13 maximi...

Page 199: ...180 linking to other nodes or frames 63 66 67 69 Output Error Beep 119 123 Output to PC 122 pasting 35 setting options for 54 size 30 32 Verify 63 181 Verify Input 118 Nodes command 53 O objects 180...

Page 200: ...OGRAM FAILED message 165 program source files 24 180 creating new 24 directory for 26 downloading 14 126 opening 25 printing 26 saving 26 programming bar codes for 165 programming parameters predefine...

Page 201: ...61 shift key on portables 58 snap grid 30 32 software requirements 6 source files 26 style conventions 2 3 subroutines 181 calling 53 72 changing fonts in 30 creating 52 supported portables 7 system r...

Page 202: ...ldcards 63 windows enlarging 13 maximizing 13 minimizing 13 reducing 13 windows controls 3 X XFER32 general tab 93 logging tab 96 transfer tab 94 Z zeros padding values with 157 zoom in command 13 zoo...

Page 203: ...2342 book Page 191 Thursday July 22 2004 8 35 AM...

Page 204: ...49 0 61 51 93 58 58 Italy PSC S p A Vimercate MI Italy Telephone 39 0 39 62903 1 Fax 39 0 39 6859496 Japan PSC Japan K K Shinagawa ku Tokyo Japan Telephone 81 0 3 3491 6761 Fax 81 0 3 3491 6656 Latin...

Reviews: