The text of a manual · part 14 of 26
TriCoder Users Manual, pages 131 to 140
Pages 131 to 140 of 246
The original document is the PDF (4.2 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.
Filed in the catalog under the Worth Tricoder T61, Worth Tricoder T62, Worth Tricoder T63, Worth TriCoder LT63, Worth Tricoder T50, Worth TriCoder T52 and Worth TriCoder T53
Page 131
Table Maintenance is specified in the DATA ID field while programming the TriCoder: DATA ID entry description
M1M data maintenance on table 1
M2M data maintenance on table 2
M3M data maintenance on table 3
Table Maintenance file format The file format for a table used for maintenance is similar to that used by table data validation in that it uses a header record to describe the table format to the TriCoder. The header consists of at least 11 characters plus a comment or reference name. The table maintenance header uses the following format: aaxbbxccxddcomment Position data allowed description x
U 0r F
U indicates field is UPDATABLE F indicated field is FIXED aa
01-20 determines the data length of the key field xbb x00-x20 determines data length of field #2, use x00 if field is not present xcc x00-x20 determines data length of field #3, use x00 if field is not present xdd x00-x20 determines data length of field #4, use x00 if field is not present comment
1-15 alphanumeric name of file or comment used for internal use; this field is not used by the TriCoder.
Lets say we wanted to create a file that had a 5 digit item number (the key field), a Fixed 16 character description, an Updatable 6 digit price, an Updatable 4 digit quantity count and a file reference of INVENTORY. The header for such a file would look like this: 05F16U06U04INVENTORY The entire file might look something like this: 05F16U06U04INVENTORY 11111TWINKIES - 4OZ $1.39 21 22222CANDLES - 3FEET $10.95 180 33333SALMON, SOCKEY12 $5.95 48 Ctrl Z (ASCII 26) 12-5
Page 132
There are several points to remember when creating a table maintenance file:
•
If you want to use variable length data in your key field, you must pad the data with TRAILING spaces until you reach the length set in your header. In the example above, your key field length is 5, so if you want to be able to enter the number 123, the data must actually be 123xx where xx are “space” characters.
•
There are no physical delimiters between fields; the TriCoder is using the field length from the header to determine each field length.
•
If the length of your data for a field is not the same as the data length you have specified in the header, you must pad the data out to the specified data length by adding spaces to the end of the data. Field #1 must always be the same length, regardless of the length of the actual data. The same is true for all fields. The example above shows this. When the operator edits data in the table, they do not have to include the spaces.
•
Each line in the file must be terminated with a CR/LF. CR is ASCII 13 and LF is ASCII 10. The file itself should be terminated with a Ctrl Z (ASCII 26)
•
It is critical that the header and file use the correct syntax and format. The TriCoder checks the file before it downloads it and will display the appropriate error message if it finds a problem:
Error Message
Condition/Solution
INVALID HEADER
There is a problem with the format or syntax of the header. Check the header for syntax errors.
HIT ANY KEY_ TABLE FORMAT ERR
There is a problem with the format of the actual table data. Check the table data for format and field lengths.
HIT ANY KEY_ TABLE TOO BIG HIT ANY KEY_
The table size is larger than the amount of memory you have allotted in the TriCoder or, there is a format error in one of the records. Increase the memory in the PARTITIONS setup parameter and if using TBLSEND.BAS to download the table, check the record just after the one displaying on the screen.
Output data file format for Table Maintenance When a record is accessed from the table during data collection, that entire record is written to one of the TriCoders data files. When it is time to upload the TriCoder, it is the data file, not the actual table that is uploaded. When a data file created during Table Maintenance is uploaded, it is uploaded in a “comma delimited” format. This format is used to make the 12-6
Page 133
data easier to process for most applications. The following example shows what the record looks like in the table: 11111TWINKIES - 4OZ $1.39 21 and what it will look like when it is uploaded to the computer: “111111”,”TWINKIES - 4OZ ”,”$1.39 ”,” 21”
Downloading a table to the TriCoder Tables are downloaded to the TriCoder through a Windows supported high speed USB or a serial port. Before you can download a table, you must have: • partitioned the memory using the PARTITIONS setup parameter • setup the TriCoder as either serial or high speed USB (Windows) A program to download a table to a TriCoder is supplied for Windows as part of the TriCoder Utilities CD. See Chapter 7; Using the TriCoder Utilities for instructions and details on downloading a table using the TriCoder Utilities.
Pick Lists Pick Lists are tables that provide instruction to the user. Typically they are used in an order-picking type application where the pick list instructs the user as to what product to pick, where to find it and how many to pick. The logic used for a pick list can be used for other applications such as meter reading (address of meter, where it is located, the meter reading). A Pick List is really just a table, similar to that used for data validation and data maintenance. To access a Pick List, use P1P -accesses table 1 P2P -accesses table 2 P3P -accesses table 3 in the DATA ID to reference the correct table. When the operator uses the data collection program, each item in the specified table (pick list) is sequentially displayed until all items are picked by the operator. A Pick List is downloaded to the TriCoder much the same way a regular table is downloaded. Just as with a table, you can download the pick list using the Windows TriCoder Utilities program or the DOS utilities. Upon uploading, if the TriCoder sends and SO (ASCII 14) as the EOF String, the TriCoder can prompt the host to download a new pick list without user intervention. Up to 4 fields are allowed in each pick list record. Each field can be from 1 to 19 characters long and can have one of the following properties:
12-7
Page 134
•
Fixed Displayable Only - nothing to enter or scan
•
Verifiable - used to verify that the user is at the correct location, item, etc., or to force no partial picks.
•
Updatable - items can be changed
If you do not want to use all four fields, put 00 in the field length.
Pick List Format Just as with regular tables, the first line of the pick list is the header record which defines the pick lists format. The following header example is a pick list that states: 1. 2. 3. 4. 5.
the location of the item the item description, the item number the quantity to pick the Pick List or Order Number 18F19V06U03PICK LIST 1 Aisle 23,Bin 14M Aspirin 12oz. PinkL111111014 Aisle 24,Bin 15H No-Doz Large Pills 222222012 Aisle 12,Bin 01L Vitamin C, Large Hi 333333005 Aisle 01,Bin 12L Soy Sauce Large Br444444001
The 18 in the header record is the length of the first field in the pick list. Since the first field in a table/pick list is always fixed, you don’t have to specify F for fixed. In the example above, the first field is the location: Aisle 23,Bin 14M Aisle 24,Bin 15H Aisle 12,Bin 01L Aisle 01,Bin 12L The next field is F19 - a fixed field, 19 characters long. This field is for display only and requires no action by the operator. In the example above, it is the description of each item: Aspirin 12oz. PinkL No-Doz Large Pills Vitamin C, Large Hi Soy Sauce Large Br The third field is V06 - indicating a Verifiable field with a length of 6 characters. Verifiable fields must be entered by the operator exactly as they appear on the TriCoder. When the pick list record is displayed by the TriCoder, the cursor stops on the first Verifiable or Updatable field and waits for the operator to enter data. In this example, the third field is the Item Number - the operator is forced to enter the item number of the item he is picking. It is typically scanned off of the item or bin: 12-8
Page 135
111111 222222 333333 444444 The fourth field is U03 - describing a field that is three characters long and is Updatable. Updatable fields can be changed by keying or scanning. The cursor of the TriCoder will stop at the Updatable field and wait for operator input. The fourth field in this example is the quantity to pick: 014 012 005 001 The last field in the header, Pick List 1, is the Order Number that may be uploaded as the first record in the data file. This allows the computer to tell which order was picked. This field can be from 1 to 20 characters long. If you do not specify that you want the Order Number written to the data file, it is ignored. If you want the Order Number to be written to the data file for uploading, you must specify O1O O2O O3O
-order number for table 1 -order number for table 2 -order number for table 3 in the DATA ID field of the programming statement when programming the TriCoder.
Programming the TriCoder for Pick Lists There are some special considerations to think about when programming the TriCoder to use a Pick List:
•
When using O1O, O2O or O3O to upload the order number for a pick list, remember that the program statement should be executed only once, and should be at the beginning of the program. This program statement will not cause the TriCoder to pause for operator input so the Prompt Text is not that important. An Upload Prefix and Suffix can be specified for the statement.
•
When the TriCoder executes a statement with P1P, P2P or P3P in the Data ID, the TriCoder displays the next incomplete item in the Pick List. When all items in the Pick List have been picked, and the TriCoder executes the PxP statement again, the TriCoder will display: PICK LIST COMPLETED HIT ANY KEY_
12-9
Page 136
Press a key and the TriCoder displays: DATA UPLOAD? KEY [YES/NO]?_ If you want to upload a partially picked Pick List, simply bypass the warning message the TriCoder will display indicating that the Pick List is incomplete.
Pick List Examples The following example illustrates a program that would both output the order number and output the items on the pick list: Stmt #
Entry Type
Data ID
Yes/Next
No/End
Description
1
D
O1O
02
00 outputs order number
2
D
P1P
02
02 outputs items picked
In the example above, if you press the END key while executing statement #2 you can bypass a record in the Pick List and go to the next one. A program that uses a Pick List can still utilize other statement types. In the following example, not only does the program access the Pick List but also records the serial number: Stm t#
Entry Type
Prompt Text
1
D
Picker No.?
2
D
3
D
4
D
Scan Serial #
Data ID
Yes/ Next
No/End
Description
02
99 outputs picker no.
O1O
03
00 outputs order number
P1P
04
03 outputs items picked
04
03 loops on serial #
In the example above, the program requires the operator to enter the number picked, then scan or enter the serial numbers of each item picked. When all serial numbers have been scanned or entered, the user presses the END key to get to the next record in the pick list. You can skip items in the Pick List by pressing the END key while executing statement #3. To prevent the user from skipping items, enter 00 in the No/END field of statement #3.
Computer/TriCoder Interface for Pick Lists To the TriCoder, Pick Lists are simply tables to download. To really utilize Pick Lists, the system should be as automated for the operator as possible. Here’s how we envision Pick Lists being used:
•
Take the orders and create a pick list to downloaded to a system server, making the file available from remote locations. 12-10
Page 137
•
At the remote warehouse location, the user plugs the TriCoder onto a workstation (PC or terminal) and selects Table Download from the TriCoder Mode Menu.
•
The user then starts a table-downloading program on the workstation, downloading a pick list that has been sorted by location to minimize the time needed to fill the pick list.
•
When the download is complete, the user starts the Data Collection program that references the pick list on the TriCoder.
•
When the Pick List is complete, the TriCoder displays PICK LIST COMPLETED HIT ANY KEY_ pressing any key brings this prompt: DATA UPLOAD? KEY [YES/NO]?_ At this point, the user takes the TriCoder back to the workstation, attaches the TriCoder, starts the uploading program on the computer, and then presses YES to start the Data Upload on the TriCoder. If the user has specified an EOF STRING of SO (ASCII 14), after finishing its upload, the TriCoder sends the EOF STRING of SO, indicating to the host computer that the TriCoder wants to receive a new Pick List.
•
After receiving the SO (ASCII 14) from the TriCoder, the host computer can do one of 6 things by transmitting a particular ASCII character to the TriCoder:
ASCII Character
Action
ASCII 01
Begins downloading pick list into Table #1, erases current data file.
ASCII 02
Begins downloading pick list into Table #2, erases current data file.
ASCII 03
Begins downloading pick list into Table #3, erases current data file.
ASCII 04 (EOT)
Does not download a new file.Erases current data file.
ASCII 06 (ACK)
Does not download a new file. Saves current data file.
ASCII 21 (NAK)
retransmits EOF String
After completing the upload, the TriCoder waits for 10 seconds to receive one of the above characters from the host. If it receives nothing, the TriCoder displays: 12-11
Page 138
DELETE DATA FILE KEY [Y/N]?_ If the TriCoder receives ASCII 01, 02 or 03, the TriCoder displays: DOWNLOADING TABLE PLEASE WAIT_
•
In order to make this operation truly automated, you need to have a way to for the TriCoder to query the host periodically as to whether or not the host has a pick list to download to the TriCoder. To do this, when the user sees the prompt: TABLE DOWNLOAD? KEY [YES/NO]?_ Instead of pressing YES or NO, the user presses the F2 key, causing the TriCoder to transmit its EOF STRING to the host computer.
•
If the user has set the EOF STRING as SO (ASCII 14), this transmission tells the host that the TriCoder is ready and waiting to receive a Pick List. The TriCoder will wait 10 seconds for a response from the host. If the host is not ready and does not respond, the TriCoder displays: HOST NOT RESPONDING HIT ANY KEY_
•
If the host is ready for the TriCoder, it sends back the ASCII character that corresponds to the action it wants to take (ASCII 01, 02, 03, 04, 06 or 21).
•
While a Pick List is downloading, the TriCoder displays TABLE DOWNLOADING PLEASE WAIT_ If there is no Pick List to download (ASCII 04 or 06), the TriCoder displays: NO TABLE AVAILABLE HIT ANY KEY_
•
It is highly recommended that operators be cautioned against uploading an incomplete Pick List. If the operator attempts to upload and incomplete Pick List, the TriCoder displays: PICK LIST INCOMPLETE ARE YOU SURE? KEY[Y/N]?_ 12-12
Page 139
If they press Y, the upload results may be unpredictable. If you key N, the TriCoder goes to the DATA COLLECTION prompt, allowing the operator to complete the Pick List.
•
If the operator wants to see what Order Number they are working on, they can: Press SHIFT Press F2 Press O (the letter O, not zero)
to display the following information:
• nnnnnnnnnn
-the order number or name xxx
-number of items picked yyy
-number of items remaining
You can review data while using a Pick List but blank spaces are replaced with an asterisk (*) character while in data review mode in order to differentiate between items picked (data file) and items not picked (Pick List).
Uploaded Data File Format In Pick Lists, the accessed records are written to one of the TriCoders three possible data files. When the TriCoder is finished with the Pick List and is uploaded, it is uploading the data file to the host computer, not the actual Pick List. When a Pick List data file is uploaded, it writes a “comma delimited” format, making it easy to process on the host computer. Table data is also uploaded with trailing spaces if they exist in the original table. For example, the following Pick List record looks like this when part of the Pick List: Aisle 23,Bin 14M Aspirin 12oz. PinkL
111111014 but looks like this when it uploads to the host computer: “Aisle 23,Bin 14M “,”Aspirin 12oz. PinkL
12-13
”,”111111”,”014”