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 13 of 26

TriCoder Users Manual, pages 121 to 130

Pages 121 to 130 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 121

to the program number being transmitted from the other TriCoder or host. After making a selection, the TriCoder displays: RECEIVING PROGRAM PLEASE At this point, you can start the transmitting TriCoder or host program. Once the transmission is complete, the receiving TriCoder displays: END OF PGM. RECV HIT ANY KEY_ Press any key to return to the Mode Menu.

If the TriCoder has a problem during the transmission, the transfer will end and the TriCoder will display the following error message: DATA XMIT ERROR CYCLE POWER If you receive this message while receiving a program, the program transfer is incomplete and the transmit/receive session will have to be restarted. To avoid any problems, do not press any keys on the TriCoder once the transmission has started.

10-3

Page 122

This page is a scan with no text; see it in the PDF.

Page 123

Chapter 11

Partitioning memory for data files and tables Storage memory in the TriCoder can be divided and used for different purposes. Some memory can be allocated to store collected data while the remaining memory might be set aside to store table data (see Chapter 12, Tables and Pick Lists for details). Memory is allocated or “partitioned” using the Partitions setup parameter. Up to 3 data files and 3 tables can be defined in the Partitions parameter. The 512K of memory in the TriCoder is divided into eight 64K blocks called "pages". The TriCoder can have a maximum of 3 data files and 3 tables which can be of varying memory sizes, as long as they add up to 512K.

Partitioning Memory Each 64K block of memory is called a “page”. The TriCoder has 8 pages of memory available. Memory is partitioned by assigning a number of pages to a particular data file or table. Once you are in the Partitions setup parameter, you will see the following information on your TriCoder screen: PARTITIONS? abcdef_ where: a b c d e f is the allocation for data file #1 is the allocation for data file #2 is the allocation for data file #3 is the allocation for table #1 is the allocation for table #2 is the allocation for table #3 PARTITIONS? 700100_

The total number of pages must equal 8. In this example above, data file #1 is allotted 7 pages (448k), data files #2 and #3 none, table #1 is allotted 1 page (64K) and tables #2 and #3 are given none (0k). The size of a table will determine how much memory needs to be set aside for it. In our example, the largest table allowed would be 64K.

Using Multiple Data Files Creating multiple data files in the TriCoder makes it easier to use different programs in the TriCoder concurrently. If you have your memory partitioned for only 1 data file, you can collect data for 1 program only – you cannot collect data for another program until you have uploaded and deleted the current data file. A good example might be that you have created separate programs for shipping and receiving and need to be able to 11-1

Page 124

switch back and forth between them at any time. With only 1 data file defined, this is not possible. By partitioning the TriCoder memory into 2 data files, you can assign one file to your shipping program and the other file to your receiving program, switching back and forth as necessary. Once you have partitioned the memory into multiple data files, when you begin data collection, you will see the following series of prompts: DATA COLLECTION?_ KEY [YES/NO]?_ (press YES) 1. SAMPLE PROGRAM 2. 3. PROGRAM NO. [0-3]?_

(enter the program number, if you have programs in slots 2 and 3, you would see their program names listed)

DATA FILE NO.? KEY [1-3]?_

Linking a data file with a data collection program Once you choose a data file number and collect some data, the TriCoder remembers which program you used. If you currently have data in the data file and try to use the same data file to collect data using a different program, the TriCoder displays: FILE USED BY Pn HIT ANY KEY_ where n is the program number, 0-3. This prompt forces you to choose another data file number to collect data in this program.

Continuing to collect data using an existing data file If you have used a particular program and data file to collect data and have not uploaded the data, you have the option of collecting more data in that program and data file by “appending” the new data to the end of the existing file. After selecting your program number and data file number (one that is still current in the TriCoder and has not been uploaded), the TriCoder will display the following prompt: APPEND DATA FILE?_ KEY [YES/NO]?_ This prompt is simply letting you know that if you press YES, you will add data to an existing data file. If you press NO, you will go back to the DATA FILE NO. 11-2

Page 125

If you try to select a data file number that has not been defined, the TriCoder will display: FILE NOT DEFINED HIT ANY KEY_

Using the STATUS key to view data file partitions Once you have partitioned your memory, you can use the STATUS key to review the amount of memory left in each data file and to see which program a data file is linked to. Normally, pressing the STATUS key simply displays the date and time information along with the total amount of unused memory. When you have data files partitioned, the STATUS key returns a two-screen status report that looks as follows: first screen:

mm/dd/yy hh:mm:ss xxxk BYTES FREE

LI – press ENTER second screen:

LI – P1-015K PX-064K PX-000K

In the example above, the first screen displays the date (mm/dd/yy) and time (hh:mm:ss) on the first line, then the number of bytes of memory free (xxxk, where xxx is the number) on the second line. The third and fourth line is the battery status (see Appendix A; Powering the TriCoder for details). The second screen again displays the battery status (lines 1&2), the displays the status of the data files on lines 3&4. In the example above it shows:

•

P1-015k - Data file 1 is defined, is currently used by Program 1 and has 15k of memory available (some memory has been used).

•

PX-064K - Data file 2 is defined, is not currently in use by any program and has 64K of memory available (no memory has been used). The X shows that a program does not currently use this file.

•

PX-000k - Data file 3 has not been defined – the 000K designates that no memory has been allocated for this file.

11-3

Page 126

The same rules that apply to single data files apply to multiple data files: 1.

You won’t be able to change anything in the program itself except for the Upload Prefix and Upload Suffix while you have data in the TriCoder.

2.

You cannot re-define your memory partitions using the Partitions setup parameter while you have data in the TriCoder.

Partitioning memory for tables Memory partitions for tables are specified in the second half of the Partitions setting and follow the same parameters as data files. Memory is allocated in 64K “pages” and is specified as the number of pages in the Partitions setting. The constraining factor in partitioning memory for tables comes from the table size itself – you must allow enough memory in the table partition to accommodate the table. See Chapter 12, Tables and Pick Lists for details on using and creating tables.

11-4

Page 127

Chapter 12

Tables and Pick Lists The TriCoder has a valuable feature that allows you to download information into the TriCoder (a table) and then reference that table of information during data collection. There are 3 functions that the table feature performs: • • •

Table data validation Table data maintenance Pick Lists

Partitioning memory for table use In order to use tables with the TriCoder, the TriCoder memory must first be partitioned into areas for table data and areas for data storage. Memory is allocated using the Partitions setup parameter, either by scanning the bar coded Setup Menu or accessing the TriCoder Setup via the keypad. TriCoder memory is partitioned into 64K pages, with 8 pages total. The TriCoder Partitions parameter is as follows: PARTITIONS? abcdef_ where: a b c d e f is the allocation for data file #1 is the allocation for data file #2 is the allocation for data file #3 is the allocation for table #1 is the allocation for table #2 is the allocation for table #3 PARTITIONS? 700100_

The total number of pages defined must equal 8. In this example, data file #1 is allotted 7 pages (224k), data files #2 and #3 none, table #1 is allotted 1 page (64K) and tables #2 and #3 are given none (0k). The size of the table will determine how much memory needs to be set aside. In our example, the largest table allowed would be 64K.

Data Validation using Tables Lets say you have a warehouse application where you want to use the TriCoder to record items being loaded onto a truck. You can use a table of data downloaded into the TriCoder to validate what is being loaded on the truck. When the worker scans the item to be loaded, the TriCoder checks the item number against the item numbers in the table; if they match, the item number is written to the data file and he moves on to the next item. If the item number he scans is not found in the table, the TriCoder would alert the worker that the item he is loading is not on the list, avoiding a possible mis-shipment or loss. 12-1

Page 128

Data Validation validates a single field of entered data against a table constructed of single pieces of data. The TriCoder uses the DATA ID field to specify which table you want to use to validate the data entered for that statement. Data ID entry

Description

A1A validate data using table 1

A2A validate data using table 2

A3A validate data using table 3

When the operator enters an item found in the table, the TriCoder writes the item to the data file and goes to the next statement in the program. If the item is not found in the table, the TriCoder displays: ITEM NOT FOUND HIT ANY KEY_ and displays the statement prompt over again.

Data validation table file format The file format used to create a table for data validation is a simple ASCII text file with CR/LF delimiters. The first line in the data file is a variable-length header record that defines the data in the table. The first 2 digits indicate the data length of each record in the table. The next 9 digits are always 0’s (zero), indicating that the data is for validation only. The following characters can be whatever you want - it is optional and for reference only, the TriCoder does not use it. The following header would indicate a 6-digit length data table, using the word EXAMPLE1 as the reference: 06000000000EXAMPLE1 After the header come the lines of data to validate. The only constraint on the file size is the amount of memory you have allotted for the table data. If the data file is created in DOS, the file needs to have a Ctrl Z (ASCII 26 or Hex 1A) to indicate the END OF FILE. A sample file using the example header above might look like this: 06000000000EXAMPLE1 111111 222222 333333 324211 365667 Ctrl Z (ASCII 26) (use if a DOS file) In the example above, all data entries are 6 characters long, as specified in the header information. If you want to be able to use variable length data, you must set your header length to the longest number required (lets say 12-2

Page 129

your longest number is 8 digits long) and then any data shorter than 8 characters long, must be padded with TRAILING spaces; for example (x indicates a “space” character): 08000000000EXAMPLE2 11111111 22xxxxxx 33333xxx 44444444 Ctrl Z (ASCII 26) (use if a DOS file) EXAMPLE2 above would accept a scan or entry of 22 when EXAMPLE1 would not.

Preventing duplicate entry of data Sometimes you might want to make sure that an item in your table is not scanned or entered twice. You can prevent duplicate data when using a data validation table by specifying the following in the DATA ID field: Data ID entry description

D1D prevent duplicate entry for table 1 data

D2D prevent duplicate entry for table 2 data

D3D prevent duplicate entry for table 3 data

If you have specified DxD in the DATA ID field and happen to enter the same data twice, the TriCoder will respond with the following error message: DUPLICATE ACCESS HIT ANY KEY_ Hit any key to return to the statement prompt again. The file format to prevent duplicate access for table data validation looks almost identical to the above example for simple data validation with a few exceptions: As with the original example, the header record uses the first 2 digits to specify the data length, but the next 3 characters are F01 (specifies duplicate entry) and each data record has an additional 0 added to the low order position: 06F01000000EXAMPLE1 1111110 2222220 3333330 3242110 3656670 Ctrl Z (ASCII 26)

12-3

Page 130

The TriCoder uses the 0 (zero) at the end of each record to determine whether a record in the table has been accessed or not. When a record is accessed, the 0 (zero) changes to a 1. If the user enters the same data twice, the TriCoder will look at the table and see a 1 at the end of the matching data, indicating that the record had been accessed previously. Once accessed, the table cannot be reset to its original status. You would have to re-download the table to use the table in its original format.

Data Maintenance using tables Data maintenance refers to using a table consisting of multiple fields per record to maintain or update a master file. Tables that are used for maintenance can consist of up to 4 fields per record, including the “key” field. The “key” field is the data that is entered while collecting data by scanning or keying and then looked up in the table by the TriCoder. An example of this type of application might be a retailer who wants to use the TriCoder to verify that their shelf prices match the prices in the computer, or that their inventory counts in the computer match what is actually on the floor. The retailer can download a table of data into the TriCoder that consists of the item number (the “key” field), a short description, the price and finally, the inventory count. He can choose to make any or all of the fields “updatable” or “fixed”. Fixed fields cannot be changed by the user collecting the data; they are simply for information purposes only. The “key” field is also fixed as it is what the TriCoder uses to reference the data in the table. Updatable fields are fields that the user can change or update in the TriCoder when they access that particular record in the table. When the operator scans the item number, the TriCoder looks up the number in the table and displays the entire record (description, price, quantity), with the cursor stopped on the first “updatable” field. The operator compares the data displayed by the TriCoder to the item information on the shelf and edits the data in the TriCoder if needed. Pressing ENTER takes the operator to the next “updatable” field and he repeats the process. Once the record is edited, it is written to a data file for uploading to the host computer. The table maintenance may only be one step in a multi-statement program. After the table data is written to file, the TriCoder moves on to the next program statement. While collecting data, if the operator wants to display the key field again, he/she can press the F2 key, and then press it again to return to the rest of the data items in the table. When finished, the retailer can now use the edited table information to update their master records in the computer when he uploads.

12-4