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

TriCoder Users Manual, pages 31 to 40

Pages 31 to 40 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 31

File Formats By default, the TriCoder transmits its data in the following order: ID + Prefix + data + Checksum chs + Suffix + Terminator You should keep the above order in mind when determining how to upload your data. Before we actually upload any data, lets discuss some of the most common file formats. The program you are using to process your data will determine what format the uploaded file needs to use. There are several commonly used formats – Carriage Return separated, Comma separated; Tab separated, and Flat File formats. By default, the TriCoder uploads using the CR (Carriage Return) separated format. We will cover each format in order of ease of use, with the default uploading format first.

Carriage Return Separated Files By default, the TriCoder uploads its data in the following format: DATA(CR) DATA(CR) data looks like: DATA(CR)

11111111 22222222 33333333

This format is called Carriage Return separated. Each piece of data is followed by a Carriage Return (or Carriage Return/ Line Feed if Serial Interface), causing each piece of data to appear on a separate line. The TriCoder does this by using the Terminator Character. The Terminator Character is the character that follows each piece of data either when the TriCoder is uploaded or when data is transmitted in NON PORTABLE mode. The default Terminator Character for a keyboard wedge is CR (carriage return) and CR/LF (carriage return/line feed) for a serial interface. To upload the TriCoder with a Carriage Return delimited file, simply leave the Terminator Character set to the default settings and upload the TriCoder.

Comma Separated Files Another common file format is a Comma Separated File. A TriCoder setup to upload in this format uploads data like this: “DATA”,”DATA”(CR) “DATA”,”DATA”(CR) “DATA”,”DATA”(CR)

data looks like:

“111111”,”22” “222222”,”33” “333333”,”44”

Each data item is surrounded by double quotes, creating a field. Fields of data are separated by commas. The double quotes allow commas to be used as actual data as well as separators (see the example below). At the end of 4-6

Page 32

all of the fields of data, a Carriage Return is added to create a complete record. Modifying Program #1 as an example, the data uploaded would look like this: “ITEM NUMBER”, “QUANTITY” “ITEM NUMBER”, “QUANTITY” “ITEM NUMBER”, “QUANTITY”

“0123456,12oz”, “15” “889384,8oz”, “940” “32834,20oz” , “7” where ITEM NUMBER is the first field, QUANTITY is the second field, and both fields together make a record. To program the TriCoder to upload in this format, the first thing we must do is set the Terminator Character to “None”. The idea is first, to stop the TriCoder from automatically sending the same character after each field of data, then second, customize the program in the TriCoder to transmit a double quote before and after each data item, a comma after each field and a carriage return after each record. To customize the program in the TriCoder, we use the Upload Suffix to specify which character we want to precede or follow each particular field. Using Program #1 as our example, we will walk through the steps required to upload Program #1 in a Comma delimited format: 1.

Set the Terminator Character to NONE Change the Terminator Character either by scanning the bar coded setup menu , by TriCoder keypad in PROGRAMMING MODE, or if you are using High Speed USB, you can change the TriCoder setup via the TriCoder Utilities program. To change it using the bar coded Setup Menu; scan these bar codes in the following order:

• • • •

Scan START SETUP Scan TERMINATOR CHARACTER Scan 2 (sets it to None) Scan END SETUP

4-7

Page 33

To change the Terminator Character using the keypad: • get into PROGRAMMING MODE • choose 5 for Change Setup • choose 1 for Computer • Press ENTER until you see TERMINATOR CHAR. • Press 2 • Press F1 • Press F1 again to exit PROGRAMMING MODE To change it using TriCoder Utilities and high speed USB: • open TriCoder Utilities • choose Tools, then TriCoder Setup from the menu. • Click the Computer tab, then click the button that corresponds to "no Terminator Character" • Click OK 2.

Program the Upload Prefix and Upload Suffix After setting the Terminator Character to NONE, the next step is to enter PROGRAMMING MODE and program the Upload Prefix and Upload Suffix for each field of data. For Program #1, we will program the Upload Prefix and Upload Suffix as follows: Statement Prompt

ENTER ITEM NO. ENTER QUANTITY

• • •

Upload Prefix

“ (double quote) “ (double quote)

Upload Suffix

“, (double quote comma) “CR (double quote carriage return)

Put the TriCoder in PROGRAMMING MODE Press 1 at the Create Programs prompt (to edit program #1) Press YES at the EDIT PROGRAM #1? prompt

If you have no data collected in the TriCoder, press ENTER until you see: UPLOAD PREFIX _

01

If you have data collected in the TriCoder (assuming you are following the tutorial), you will see the Upload Prefix prompt immediately. This is because the TriCoder will allow you to edit ONLY the Upload Prefix and Upload Suffix if data is currently in memory. At the Upload Prefix 01 prompt, scan the “double quote” bar code on the Full ASCII Menu. UPLOAD PREFIX “_

01

Press the ENTER key to complete the change. Press the ENTER key 4-8

Page 34

again until you see: UPLOAD SUFFIX 01 _ Scan the bar code for “double quote” then scan the bar code for the “comma”. UPLOAD SUFFIX “,_

01

Press the ENTER key until you get to the UPLOAD PREFIX 02 prompt. At the prompt scan the “double quote” bar code. UPLOAD PREFIX “_

02

Press the ENTER key until you see the UPLOAD SUFFIX 02 prompt. Scan the “double quote” bar code, then, scan the “CR” bar code if using the TriCoder as a keyboard wedge, or the “CR” and the “LF” if using the TriCoder as a Serial interface: UPLOAD SUFFIX “?_

02

Press ENTER to complete the change. If you do not press ENTER after each change, the change will not be permanent. Press the F1 key to exit the program, then F1 again to exit PROGRAMMING MODE. The TriCoder is now programmed to upload its data in a comma separated file format.

Tab Separated Files Occasionally it is necessary to have Tab Separated files. Some requirements can be met by just changing the Terminator Character to Tab. 1.

Set the Terminator Character to TAB Change the Terminator Character either by scanning the bar coded setup menu ,by TriCoder keypad in PROGRAMMING MODE or if using high speed USB, via the TriCoder Utilities program. To change it using the bar coded Setup Menu; scan these bar codes in the following order: • • • •

Scan START SETUP Scan TERMINATOR CHARACTER Scan 2 (sets it to TAB) Scan END SETUP

4-9

Page 35

To change the Terminator Character using the keypad: • • • • • • • enter PROGRAMMING MODE choose 5 for Change Setup choose 1 for Computer Press ENTER until you see TERMINATOR CHAR. Press 2 Press F1 Press F1 again to exit PROGRAMMING MODE

To change the Terminator Character using TriCoder Utilities and high speed USB: • Start the TriCoder Utilities • Click Tools then TriCoder Setup from the menu • Click the Computer tab, then click the button for HT in the Terminator Character section. • Click OK When uploading as a keyboard into an Excel spreadsheet, it is not quite as simple. You will have to set the Terminator Character to None, and then you will have to Upload Prefixes in each for each program data collection step. Excel usually requires delays between moving to the next column. Let’s assume we are going to upload data collected in the default Program #1, Item and Quantity, into Excel. The suffixes in the default program are none. We will change them to adapt to Excel. 2.

Program the Upload Prefix and Upload Suffix After setting the Terminator Character to NONE, the next step is to enter PROGRAMMING MODE and program the Upload Suffix for each field of data. For Program #1, we will program the Upload Suffix as follows: Statement Prompt

ENTER ITEM NO. ENTER QUANTITY

− − −

Upload Suffix

TAB (HT on the full ASCII menu) DEL (ASCII 127) 05 CR (Enter)

(Left Arrow, ASCII 19) DEL (ASCII 127) 05

Put the TriCoder in PROGRAMMING MODE Press 1 at the Create Programs prompt (to edit program #1) Press YES at the EDIT PROGRAM #1? prompt

If you have no data collected in the TriCoder, press ENTER until you see: UPLOAD SUFFIX 01 _ Scan the bar code on the Full ASCII Menu for TAB, the one labeled HT (ASCII10). Then scan the bar code DEL (ASCII 127) on the Full ASCII 4-10

Page 36

Menu, followed by 0 and 5; this puts a ½ (0.5) second delay after the TAB key to give Excel time to reposition and update its files. Press the ENTER key until you see the UPLOAD SUFFIX 02 prompt. Now we are going to simulate the positioning of the cursor to the first column of the next row. To get back, we would key ENTER followed by the Left Arrow key. To make the bar code reader simulate those keystrokes, we will first scan the bar code for CR (ASCII 13), followed by Left Arrow (ASCII 19), followed by DEL (ASCII 127) and then 0 and 5 for a ½ (0.5) second delay. Press ENTER to complete the change. If you do not press ENTER after each change, the change will not be permanent. Press the F1 key to exit the program, then F1 again to exit PROGRAMMING MODE. The TriCoder is now programmed to do a keyboard data upload to an Excel spreadsheet.

Flat File Formats Flat Files are the most complicated file format of the three we are covering in the tutorial. The format of a Flat File is mostly dependent upon the host program you will use to process the data you are uploading. A Flat File uses what we call “Refer-backs”. Each record has at least one field that remains constant while other fields may contain variable data. “Refer-backs” allow the operator to enter the data for the constant fields only once, letting the TriCoder append the data to each record as it uploads. “Refer-backs” are specified in the Upload Prefix and Upload Suffix of each field. We will use a program that prompts for operator name, item number and finally a quantity to demonstrate how “Refer-backs” work. Lets say that the data for the first field in every record must be the operators initials (3 characters). The second field in each record must be an item number and the third field is a quantity. It doesn’t make sense to require the operator to enter their initials every time they scan an item number and enter a quantity. The solution is to create a program that uses a “Referback” to attach the data from prompt #1 (operator name) and the data for prompt #2 (item number) to the data for prompt #3 (quantity) every time. We do this by using the upload prefix or upload suffix. Specifying these characters: }xx where xx is the number of the statement you want to take data from, in the Upload Prefix or Upload Suffix of the statement you want to attach the “Refer-back” data to. The following TriCoder Coding Form shows the program we have described above (only the relevant entries on the form are shown):

4-11

Page 37

Stmt #

Entry Type

Prompt

Yes/Next Stmt

No/End Stmt

Upload Prefix

Upload Suffix

01 02 03

D D D

Operator Name Enter Item No. Enter Quantity

02 03 02

99 99 99

~0 ~0 }01}02

CR

Refer-back programming example The above program would prompt for Operator Name once, then repeatedly prompt for Item, then Quantity, attaching the Operator Name data and the Item data to the front of every quantity upon upload. If the data for Operator Name entered is WDS, and variable data is entered at each Item and Quantity prompt, the uploaded file would look like this: Operator Name

Item #

WDS

123456 892938 345890 99540

Quantity

124 880 3 75

Uploaded data looks like:

WDS123456124 WDS892938880 WDS3458903 WDS9954075

Flat File sample data The TriCoder is not limited to uploading using only the file formats Carriage Return delimited, Comma delimited, Tab separated, and Flat File - described above. By using different characters in the Upload Prefix and Upload Suffix of each program statement, you can create a file in just about any format – the three described above are simply the most commonly used. For more information on using the Upload Prefix and Upload Suffix, see Chapter 8; Creating custom programs in the PROGRAMMING section of this manual. For the tutorial, use either the Carriage Return separated or Comma delimited formats.

4-12

Page 38

Chapter 5

TriCoder Connection Interfacing with the computer is possibly the most critical operation. Without proper communication between the computer and TriCoder, all that data you collected for hours and hours really isn’t doing you much good. Whether you are using the USB interface, keyboard wedge interface, or the serial interface, before you even begin collecting data you need to establish communication in NON PORTABLE MODE, (See Chapter 3; Non-Portable Mode), and then move on to uploading stored data. There are several steps involved in establishing communication: • Connecting the hardware • Configuring the TriCoder • Testing in NON-PORTABLE MODE We will explain each of these steps for the USB, Keyboard Wedge and Serial Interface. If you are using your TriCoder with a USB connection, continue on with the next section. For serial interface, go to page 5-3, and if you are using your TriCoder as a Keyboard Wedge, turn to page 5-9 and begin there.

USB Interface – PC and Mac The TriCoder can be attached to a PC or Mac via a Universal Serial Bus (USB) port. The USB connection offers several advantages, which are:

•

A Jumper Block is not needed when TriCoder is removed from PC as with a Keyboard Wedge,

•

There are no “Timing” settings required as with Keyboard Wedges,

•

In Windows, you have the convenience of keyboard interface in Non-Portable Mode, but you can still download new firmware releases, upload/download programs, and download tables.

•

The USB cable is less expensive than a PC Y Cable or serial cable. You don’t have to use our USB cable–any USB A to B cable will work, and

•

With the high speed USB interface, data uploads and program transfers are up to 40 times faster than serial and 1000 times faster than keyboard. See Chapter 3; Non Portable Mode, First time USB use regarding Windows XP and USB.

The C21 USB Cable is required to connect the TriCoder to a USB port. The USB port does not power the TriCoder – it will operate on batteries or the Worth Data 5V power supply.

5-1

Page 39

1.

Plug the flat end of the C21 cable into the USB port located on the back of the PC or Macintosh. Only one end of the cable fits. If you don’t have Worth Data’s C21 cable, any USB cable will work.

2.

Plug the other end of the C21 USB cable into the USB port on the bottom of the TriCoder.

3.

If this is the first time you have connected the TriCoder to a USB cable, you could be asked to select the exact USB interface you desire, and you will be asked to install Windows USB driver(s). See Chapter 3: Non Portable Mode, First Time USB Use, especially if using Windows XP.

Testing Communication using NON PORTABLE mode To test communication as a keyboard wedge or USB, go to Chapter 3; Non Portable Mode for detailed instruction on how to use NON PORTABLE mode to establish communication between the TriCoder and the host computer. The key to testing communications is to keep it simple – you don’t want to have to determine whether it’s your software or the TriCoder causing a problem.

5-2

Page 40

Serial Interface Connecting the Hardware The TriCoder can operate as a serial interface reader on a PC. To us e the serial interface, you must have software reading the serial port directly, or a keyboard emulation program like PortKey, (allows a serial interface TriCoder to look like it’s working as a keyboard wedge). The TriCoder Utilities disk that is included with each TriCoder has Windows utilities that are extremely useful on a PC serial port. Use the following procedures and illustrations to connect the TriCoder to the PC serial port

Serial Installation on a PC The RS-232 serial ports on a PC are commonly called COM ports and are referred to as COM1, COM2, COM3, and COM4. Typically you will be using COM1 or COM2. 1.

If you ordered the TriCoder as a serial interface and planned to use it on a PC, you should have also ordered one of two cables, either the 25 pin F34 cable or the 9 pin F36 cable. The F34 25pin female null modem cable is designed to work directly off of a 25 pin PC serial port. The F36 9pin female straight cable is wired to connect directly to a 9 pin PC serial port. Both cables have a female 9 pin or 25 pin end and a RJ-45 modular (telephone style) 8 pin end.

2.

If the host port is female, it’s not serial port.

3.

If you have the wrong cable (9 pin cable and you have a 25 pin port, or vice versa) you can get a 9 to 25 or 25 to 9 adapter at your computer store.

4.

The easy part is the connection – simply plug the 25 pin or 9 pin end of your cable into the open serial port in the back of your computer. Plug the modular end of the cable into the port labeled COMPUTER on the side of the TriCoder. If your serial ports are labeled (COM1 or COM2), make a note of which port you are plugged into – the software you use will need to know which COM port you are using.

5-3