AML M3000 Betriebsanweisung Seite 110

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 156
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 109
8Advanced Operations
8-5
When used with a data file during FUNCTION INPUT, this lookup will:
Display "Widget A" for a match for input data "123456"
Accept mismatches
Exact case matches only
Lookup File with a Partial Match
In the following example we have intentionally shortened the number of leading characters in the
first field to illustrate the partial match option.
L
LOOKUP3
<Blank Line>
123
789012
345678
901234
567890
The following lookup definition accepts partial matches for a lookup file named "LOOKUP3":
FP,LOOKUP3
Since we used the partial match option, the M3000 will accept any input that begins with all the
leading characters of a lookup field. In this example, the M3000 will accept 123, 123456 or any
other combination of characters beginning with "123", but will reject entries such as 1, 12, or 3.
Creating and Using an ASCII Data File
Understanding how to create and import ASCII files is crucial to the utilization of data files.
When using an ASCII data file, some of the data fields of an input record contain data; other fields
can be left blank and require user input. Program options control whether or not the user can
append new data to the file during input, and whether the user can create data files for the program
in use.
Typical ASCII Data File Applications
Typical data file applications include, but are not limited to:
Delivery routes
Utility meter reader routes
Sales order pick lists
Inspection check lists
Creating the ASCII Data File
In the following example you will create an ASCII data file for built-in program P2. We'll show
you how to modify P2 to use "Receive Data Files Only", and then how to import the file into the
M3000 from the PC. To create the data file, use a text editor such as the text editor supplied with
DOS 5.0 and later DOS releases, to enter and format the data file text. The size of this file is
limited only by M3000 memory. Unless your data file has several thousand lines of text, it is
unlikely you will ever approach this limit.
The first three lines of a data file are reserved for use by the program. These three lines supply
M3000 file header information and identify the type of file, the file name and the owner program
name. All remaining lines are data. The data structure must conform exactly to the data input
structure as defined in the owner program. When a program has header inputs, those header inputs
must be placed between the M3000 file header information and the record input data.
Seitenansicht 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 155 156

Kommentare zu diesen Handbüchern

Keine Kommentare