The text of a manual · part 2 of 21
PT Program Generator User's Manual, pages 8 to 17
Pages 8 to 17 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 8
2342.book Page vi Thursday, July 22, 2004 8:35 AM
Example Frames ................................................................................. 135 Setting the Date and Time ............................................................................................ 136 Changing the Auto-Off Timeout...................................................................................... 136 Displaying the Contents of a Register ............................................................................. 137 Sample Verification Methods.......................................................................................... 138 Verifying a Numeric Value ....................................................................................... 138 Verifying that a Number is an Integer ....................................................................... 139 Verifying Input Size ............................................................................................... 142 Downloading a File to a PSC Portable .............................................................................. 145 Finding the Number of Records in a File .......................................................................... 147 Searching for a Partial Match ......................................................................................... 148 Searching for Data in a File ........................................................................................... 149 Splitting Records into Two Files...................................................................................... 151 Referencing Two Different 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 Predefined Defaults ............................................................................................. 164 Alternate Parameters.................................................................................................... 165
ASCII/Hex Conversion Table.............................................................. 167 Useful Bar Codes ................................................................................ 169 Troubleshooting ................................................................................. 171 Overview .................................................................................................................... 171 Fixing Corrupted Files ................................................................................................... 171 Downloading the Program to the Portable........................................................................ 172 Error Messages ............................................................................................................ 173 PPG Error Messages ......................................................................................... 173 PPGComp Error Messages ................................................................................. 175 PPGXfer Error Messages ................................................................................... 176 Technical Support ........................................................................................................ 178 PSC Website Support ....................................................................................... 178 PSC Website TekForum .................................................................................... 178 Reseller Technical Support ................................................................................ 178 Telephone Technical Support............................................................................. 178
Glossary ............................................................................................. 179 Index .................................................................................................. 183 vi
PT Program Generator (PPG) v5.0
Page 9
2342.book Page vii Thursday, July 22, 2004 8:35 AM
PSC Inc. PT Program Generator
(PPG) Software End User License Agreement NOTICE TO END USER: PSC is providing you with a license for the Software you have acquired, subject to the terms and conditions of this Agreement. If you use the Software, you will be deemed to have accepted the terms and conditions of this Agreement. If you do not intend to be bound by the terms of this Agreement, PSC is not willing to license the Software to you, you may not use or copy the Software, and you must contact the party from whom you acquired the Software promptly for instructions. This End User License Agreement (“Agreement”) is a legally binding agreement governing the licensing of the Software by PSC Inc. and its wholly owned subsidiaries and affiliates (“PSC”) to the entity or person who has acquired the Software (“End User”). For purposes of this Agreement, “Software” means the PT Program Generator, whether obtained directly or indirectly from PSC, including any related update or upgrade such as enhancements or modifications, and including all accompanying documentation. Any software that is associated with a separate end-user license agreement is licensed to you under the terms of that license agreement. PSC and End User hereby agree as follows: 1. Scope of License Granted. 1.1 PSC grants to End User a non-exclusive, non-transferable, perpetual license to use the Software, in machine-readable form only, solely for End User's internal business purposes. This Agreement does not convey ownership of the Software to End User. Title to the Software shall be and remain at all times 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 must be acquired for each computer on which the Software operates. 1.3 End User may make one copy of the Software for backup purposes, provided that End User reproduces all proprietary notices on the copy, including patent, copyright, trademark, and other similar notices of PSC's proprietary interest in the Software. 1.4 End User shall not sell, assign, sublicense, distribute, lend, rent, give, or otherwise transfer the Software to any third party unless such third party agrees with PSC in writing to be bound by the terms and conditions of this Agreement. Any such transfer of the Software absent such agreement shall be null and void. 1.5 Other than as provided in this Agreement, End User shall not copy or modify the Software. Under no circumstances shall End User decompile, disassemble, reverse engineer, or otherwise reproduce or remanufacture the Software, whether modified or unmodified, without PSC's prior written consent. 1.6 Any copying, installing, reproduction, reverse-engineering, electronic transfer, or other use of the Software 1) on other than the number of computers for which End User has paid for a Software license, or 2) on any non-PSC equipment, will be a material breach of this Agreement. However, PSC may elect not to terminate this Agreement or the granted license, but instead may elect to notify End User that End User is deemed to have ordered and accepted a license for each breaching use. End User shall pay PSC the applicable list price fees for each such license as of the date of breach as determined by PSC.
User’s Guide vii
Page 10
2342.book Page viii Thursday, July 22, 2004 8:35 AM
(PPG) Software End User License Agreement 2. Intellectual Property. End User acknowledges that the Software constitutes valuable trade secrets of PSC and that the Software is protected by intellectual property laws and treaties. The license set forth in this Agreement does not transfer to End User any ownership of PSC's copyrights, patents, trademarks, service marks, trade secrets, or other intellectual property rights and End User shall have no right to commence any legal action to obtain such rights. End User shall not remove, modify, or take any other action that would obscure any copyright, trademark, or other intellectual property notices contained in the Software. 3. Proprietary Information. 3.1 “Proprietary Information” means all (a) source code, object code, software, documentation, and any related internal design, system design, data base design, algorithms, technology, technical data or information, implementation techniques, and trade secrets related to the Software, (b) any other trade secrets marked appropriately or identified as proprietary or confidential, and (c) any information that End User, under the circumstances, should recognize as confidential. Proprietary Information does not include any information that the receiving party can establish was (1) in the public domain, (2) already in the receiving party's possession or rightfully known prior to receipt, (3) rightfully learned from a third party not in violation of any other's proprietary rights, or (4) independently developed. 3.2 End User acknowledges that Proprietary Information is the confidential, proprietary, and trade secret property of PSC and End User acquires no right or interest in any Proprietary Information. 3.3 End User shall not disclose, provide, or otherwise make available PSC's Proprietary Information to any person other than End User's authorized employees or agents, all of whom must be under confidentiality agreement at least as restrictive as the terms of this Section 3, and End User shall not use the Proprietary Information other than in conjunction with use of the Software exclusively for End User's internal business purposes. End User shall take steps to protect the Proprietary Information no less securely than if it were End User's own intellectual property. 3.4 The provisions of this Section shall survive and continue for five (5) years after the termination of this Agreement. 4. Limited Warranty. 4.1 PSC warrants that, under normal use and operation, the Software will conform substantially to the applicable documentation for a period of thirty (30) days from delivery to 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. End User agrees to supply PSC with all reasonably requested information and assistance necessary to help PSC in remedying such nonconformities. For all defects reported to PSC within the warranty period, PSC's liability is limited to providing End User with one copy of corrections or refunding the amount End User paid for the Software license, at PSC's discretion, and responding to End User's software problem reports according to PSC's standard assistance practices. PSC does not warrant that the Software will meet End User's requirements or that use of the products will be uninterrupted or error free, or that PSC's remedial efforts will correct any nonconformance. This limited warranty does not cover any software that has been customized, subjected to damage or abuse, whether intentionally, accidentally, or by neglect, or to unauthorized repair, unauthorized alteration, or unauthorized installation, and shall be void if End User modifies the Software, uses the Software in a manner other than as established in the applicable documentation, or if End User breaches any of the provisions of this Agreement. 4.2 THE SOFTWARE IS PROVIDED “AS IS” AND, EXCEPT AS PROVIDED IN THIS SECTION, PSC MAKES NO WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, WRITTEN OR ORAL, WITH RESPECT TO THE SOFTWARE, AND SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 5. Infringement. 5.1 PSC will defend End User against any claim in a lawsuit that the Software furnished hereunder infringes a United States patent or copyright of a third party and PSC will pay any damages finally awarded against End User by a court of competent jurisdiction that are attributable to such claim or will pay End User's part of any settlement that is attributable to such claim, provided, that 1) End User notifies PSC promptly in writing of the claim, 2) PSC controls the defense or settlement of the claim, and 3) End User cooperates fully with PSC in such defense or settlement. All notices of a claim should be sent to PSC Inc., Legal Department, 111 SW Fifth Ave. Suite 4100, Portland, OR 97204-3644. 5.2 In the defense or settlement of any such claim, PSC may, at its option, 1) procure for End User the right to continue using the Software, 2) modify the Software so that it becomes non-infringing, 3) replace the Software with an equivalent product not subject to such claim, or 4) provide End User an opportunity to return the Software and receive a refund of the amount End User paid for the Software license, less a reasonable allowance for use.
viii
PT Program Generator (PPG) v5.0
Page 11
2342.book Page ix Thursday, July 22, 2004 8:35 AM
PT Program Generator 5.3 PSC shall have no liability to End User for claims of infringement based upon 1) the use of the Software in combination with any product which PSC has not either furnished or authorized for use with such Software, 2) the use of any Software designed, manufactured, or modified to the specifications of End User, or 3) End User's customization or modification of the Software. 5.4 THE FOREGOING STATES PSC'S COMPLETE AND ENTIRE OBLIGATION TO END USER CONCERNING CLAIMS OF INTELLECTUAL PROPERTY INFRINGEMENT, CANCELS AND SUPERCEDES ANY PRIOR AGREEMENTS, WHETHER ORAL OR WRITTEN, BETWEEN PSC AND END USER CONCERNING SUCH CLAIMS, AND WILL NOT BE MODIFIED OR AMENDED BY ANY PAST, CONTEMPORANEOUS, OR FUTURE AGREEMENTS OR DEALINGS BETWEEN PSC AND END USER, WHETHER ORAL OR WRITTEN, EXCEPT AS SET FORTH IN A FUTURE WRITING SIGNED BY AN AUTHORIZED REPRESENTATIVE OF EACH PARTY. 6. Limitation of Liability. PSC'S LIABILITY FOR DAMAGES, IF ANY, WHETHER BASED UPON CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY, STRICT LIABILITY, WARRANTY, OR ANY OTHER BASIS, SHALL NOT EXCEED THE AMOUNT END USER PAID FOR THE SOFTWARE LICENSE. UNDER NO CIRCUMSTANCES SHALL PSC BE LIABLE FOR LOST PROFITS, LOST DATA, INTERRUPTION OF SERVICE, OR FOR ANY SPECIAL, CONSEQUENTIAL, CONTINGENT, INDIRECT, INCIDENTAL, PUNITIVE, EXEMPLARY, OR OTHER SIMILAR DAMAGES, EVEN IF PSC HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 7. Technical Support. End User is entitled to one (1) free technical support call in connection with End User's use of the Software. Technical support does not include assisting End User in developing applications. End User may obtain additional support for the Software from PSC at PSC's standard support fees and under PSC's standard support terms and conditions in effect at the time End User acquires the Software. 8. Government Restricted Rights; International Use. The Software is provided with Restricted Rights. Use, duplication, or disclosure by the U.S. Government is subject to the restrictions for computer software developed at private expense as set forth in the U.S. Federal Acquisition Regulations 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 United States, End User must comply with the local laws of the country in which the Software is used, with U.S. export control laws, and with the English language version of this Agreement. The provisions of the “United Nations Convention on International Sale of Goods” shall not apply to this Agreement. 9. Termination. 9.1 Either party may terminate this Agreement or any license granted under this Agreement at any time upon written notice if the other party breaches any provision of this Agreement. 9.2 Upon termination of this Agreement, End User immediately shall cease using the Software and shall return to PSC or destroy all Software covered by this Agreement, and shall furnish PSC with a certificate of compliance with this provision signed by an officer or authorized representative of End User. 10. General Provisions. 10.1 Entire Agreement; Amendment. This Agreement contains the entire agreement between the parties relating to the Software and supersedes all prior or contemporaneous agreements, written or oral, between the parties concerning the Software. This Agreement may not be changed, amended, or modified except by written document signed by an authorized representative of each party. 10.2 Notice. All notices required or authorized under this Agreement shall be given in writing, and shall be effective when received, with evidence of receipt. Notices shall be sent to End User at such address as End User shall provide to PSC in writing, and shall be sent to PSC Attn: Contract Administration, PSC Inc., 959 Terry Street, Eugene, OR 97402. 10.3 Waiver. A party's failure to enforce any of the terms and conditions of this Agreement shall not prevent the party's later enforcement of such terms and conditions. 10.4 Governing Law. This Agreement shall be governed by the laws of the State of Oregon, United States of America, excluding choice of law provisions. 10.5 Attorneys Fees. In the event an action is brought to enforce the terms and conditions of this Agreement, the prevailing party shall be entitled to reasonable attorneys' fees, both at trial and on appeal. -END-
User’s Guide ix
Page 12
2342.book Page x Thursday, July 22, 2004 8:35 AM
(PPG) Software End User License Agreement
NOTES x
PT Program Generator (PPG) v5.0
Page 13
2342.book Page 1 Thursday, July 22, 2004 8:35 AM
Chapter 1 Introduction This document assumes that you are familiar with Microsoft Windows®. If you do not know how to launch applications, select menu options, or use dialog boxes, please refer to your Microsoft Windows documentation before proceeding with PPG.
Document Overview This document is divided into seven chapters and eight appendices: •
Introduction on page 1, provides an overview of PPG, describes the conventions used in this manual, and tells how to access PSC Technical Support.
•
Getting Started on page 5, tells you how to install and run PPG. It also gives you an overview of PPG concepts and usage. •
PPG Application Design on page 15, provides information on programming concepts including how to design your program, define program modules and specify program flow. •
The PPG Menubar on page 23 describes the 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, Subroutines, Nodes, and Links. •
Managing Data on page 77, describes the use of Registers, Fields, Files, and Templates. •
PT40 Communication on page 89, show you how to download applications to the PDT and how to transfer data to and from the portable device. •
User’s Guide
PPG Tutorial on page 99, is a step-by-step tutorial to use in learning PPG.
1
Page 14
2342.book Page 2 Thursday, July 22, 2004 8:35 AM
Introduction
•
Example Frames on page 135, contains sample code for commonly used functions. •
The PPG Library on page 159, describes the applications that come with
PPG. •
PPG System Commands on page 163, identifies the system commands that can be used with PPG. •
ASCII/Hex Conversion Table on page 167, contains a table of ASCII characters for your reference. •
Useful Bar Codes on page 169, contains bar codes that can be used to program your portable data collection unit. •
Troubleshooting on page 171, provides troubleshooting information and table of possible error messages.
•
Glossary on page 179, is a glossary of the specific PPG programming terms used in this manual.
Style Conventions Formatting conventions are used throughout this document to provide a consistent method for representing various screen shots, buttons, controls, keyboard characters, notes, and cautions while you are working with PPG.
Manual Formatting Conventions Keyboard Keys Keyboard keys, such as ENTER, are in Bold. When keyboard keys are Linked with a plus sign (for example, SHIFT+ENTER, or Ctrl+C), hold down the first key while pressing the second key once.
Keystrokes Input characters, filenames, file paths, field selections from a pull-down list, and data or keystrokes entered by the user are shown in courier bold. Input characters are usually given in lowercase (no capital letters); you may enter them in lowercase, uppercase, or a combination. When input characters are given in uppercase or a combination of lowercase and uppercase, type the characters exactly as shown.
2
PT Program Generator (PPG) v5.0
Page 15
2342.book Page 3 Thursday, July 22, 2004 8:35 AM
Style Conventions
Windows Controls Words in Bold are selections that appear in the PPG program, such as frame names, subroutine names, node names, file, field, template, and register names, menu options, buttons, dialog boxes, field names, and radio-buttons. Words in Bold separated by an arrow (>) are menu actions you make in the order provided. For example, File > Run means select the File menu and then select Run from that menu.
Cautions indicate an action where there is a possibility of damage to data integrity or data failure. Cautions always have the Caution icon to the left. CAUTION Notes provide additional information on a topic, including technical details, exceptions to instructions and other pertinent information. Notes always have the notepad icon to the left.
Mouse Actions Click or Select
Press and immediately release the left mouse button without moving the mouse. Clicking is used to select specific buttons on various forms and tables.
Double Click
Click the left mouse button twice in rapid succession. Used to initiate an application.
Right Click
Press and hold the right mouse button without moving the mouse.
Portable Keys Keys on the portable data terminal (PDT) unit are bracketed with < >, to identify that they refer to the portable data collection unit, rather than the PC.
User’s Guide
<F1>, <F8> Keys
The Function keys, <F1> – <F8>, are used specifically on the PT40 portable data collection units.
<ENTER> Key
To differentiate the <ENTER> key on the portable from the Enter key on the PC’s keyboard, portable keys are formatted as “press <ENTER>”.
3
Page 16
2342.book Page 4 Thursday, July 22, 2004 8:35 AM
Introduction
NOTES
4
PT Program Generator (PPG) v5.0
Page 17
2342.book Page 5 Thursday, July 22, 2004 8:35 AM
Chapter 2 Getting Started Overview Refer to this section as you prepare to install and use the PT Program Generator (PPG). The following general topics are covered: •
•
Before You Start on page 6
• • •
What’s New in PPG v5.0? on page 6.
• • • • • •
PPG System Requirements on page 6.
Registering Your Copy of PPG on page 6. PPG Installation on 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 PPG on page 9
• • • • • • •
User’s Guide
PPG License Agreement on page 6.
PPG Tutorial on page 10. User Interface on page 11. Menus and Toolbars on page 11. PPG Toolbar Buttons on page 11. Program Nodes Toolbar on page 12. Working with PPG Windows on page 13.
•
Navigation on page 13. Generating the Program on page 14.
•
Downloading the Program on page 14.
•
Transferring Data on page 14.
5