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 43 of 52

TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Chapter 7: Extended Commands, pages 368 to 376

Pages 368 to 376 of 456, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide

The original document is the PDF (3.1 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 Intermec 2425

Page 368

Chapter 7, Extended Commands

Code 11 The following table lists Code 11 characters. Note that a “b” indicates a 1-byte space. Code 11 Characters, Line 1, Column 17 (59XX, 17XX, 11XX) Character

Description

0

Code 11 disabled

1

Code 11 enabled b

No change from current setting

Code 93 Code 93 and Code 128 options can be enabled. Note that a “b” indicates a 1-byte space. Code 93 Characters, Line 1, Column 18 (6400, 5055, 59XX, 17XX, 11XX) Character

Description

0

Code 93 disabled

1

Code 93 enabled b

No change from current setting

Code 128 The following table lists Code 128 characters. Note that a “b” indicates a 1-byte space. Code 128 Characters, Line 1, Column 19 (6400, 5055, 59XX, 17XX, 11XX)

344

Character

Description

0

Code 128 disabled

1

Code 128 enabled b

No change from current setting

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

Page 369

Chapter 7, Extended Commands

Straight or Computer Identics 2 of 5 If the Straight or Computer Identics bar code is enabled, select the maximum and minimum lengths and the first and second fixed bar code lengths according to your requirements. Note that a “b” indicates a 1-byte space. Refer to the manufacturer’s bar code specifications for more information. 2 of 5 Characters (6400, 5055, 59XX, 17XX, 11XX) Character

Description

20

0=Straight and Computer Identics 2 of 5 disabled; 1=Computer Identics 2 of 5 enabled; 2=Straight 2 of 5 enabled; b=No change from current setting

21–22

XX=Maximum length Straight or Computer Identics 2 of 5; bb=No change from current setting

23–24

XX=Minimum length Straight or Computer Identics 2 of 5; bb=No change from current setting

25–26

XX=1st fixed bar code length for Straight or Computer Identics 2 of 5; bb=No change from current setting

27–28

XX=2nd fixed bar code length for Straight or Computer Identics 2 of 5; bb=No change from current setting

Interleaved 2 of 5 If Interleaved 2 of 5 is enabled, select the maximum and minimum lengths and the first and second fixed bar code lengths according to requirements. Note that a “b” indicates a 1-byte space. Refer to the manufacturer’s bar code specifications for more information. Interleaved 2 of 5 Characters, Line 1, Columns 29-37 (6400, 5055, 59XX, 17XX, 11XX) Character

Description

29

0=Interleaved 2 of 5 disabled; 1=Interleaved 2 of 5 enabled; b=No change from current setting

30–31

XX=maximum length Interleaved 2 of 5; bb=No change from current setting

32–33

XX=minimum length Interleaved 2 of 5; bb=No change from current setting

34–35

XX=1st fixed length for Interleaved 2 of 5 Bar Code; bb=No change from current setting

36–37

XX=2nd fixed length for Interleaved 2 of 5 Bar Code; bb=No change from current setting

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

345

Page 370

Chapter 7, Extended Commands

Return Codes for Scan Bar Code The Scan Bar Code Parameters return code is the status sent to the host computer; the code indicates if the extended command was successful. The terminal returns data and the extended command’s status to the host computer in the \\X<CR> format where X is the return code listed in the following chart. The terminal simulates the [ENTER] key to return a value to the host computer. If a hexadecimal number is entered wrong, the return code defaults to “0.”

346

Code

Description

0

Good status, transaction complete

1

Bad status, transaction incomplete

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

Page 371

Chapter 7, Extended Commands

Get Optical Inputs (#I) Note: This extended command is supported on 248X Terminals only. The Get Optical Inputs extended command returns a value representing the state of all four optical inputs. This value is represented by an ASCII character in the A–P range. If the ASCII value of the letter “A” is subtracted from the value returned, the result will be a number from 0 to 15, representing the state of the four inputs by bit positions: bit 0 is the optical input 1; bit 1 is the optical input 2; etc. If a bit is “0” (or off), then the input is off. If a bit is “1” (or on), then that input is on. The following table itemizes all possible combinations. Get Optical Input Returned Values Value Returned

Optical Inputs:

1

2

3

4

A

Off

Off

Off

Off

B

On

Off

Off

Off

C

Off

On

Off

Off

D

On

On

Off

Off

E

Off

Off

On

Off

F

On

Off

On

Off

G

Off

On

On

Off

H

On

On

On

Off

I

Off

Off

Off

On

J

On

Off

Off

On

K

Off

On

Off

On

L

On

On

Off

On

M

Off

Off

On

On

N

On

Off

On

On

O

Off

On

On

On

P

On

On

On

On

Line 1, Columns 2 and 3, contains the extended command “#I”. Line 2, Column 1, receives the returned data in the following format, where “X” is the return value: \\0X<cr>

The status value returned here will be “0” (the character for zero, not the value zero) for a good status, indicating that the transaction is complete and without error. An error will occur if this command is attempted from the wrong type of terminal. However, no error is detected when you have a 248X Terminal without terminal blocks. The status value returned when an error occurs is “1” (the character, not the value). TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

347

Page 372

Chapter 7, Extended Commands

Relay (Set, Reset, Read) Commands (#R) Note: These extended commands are supported on 248X Terminals only. There are three relay commands: Set, Reset and Read. All three use the same extended command “#R” followed by two numeric characters. The first character is the relay number and the second is a command byte. The relay number can be “1”, “2”, “3” or “4”, since there are four relays in a 248X Terminal equipped with terminal blocks. Also, the relay number can be “5” when you want to choose all four relays at once. The command byte will be “0” for Reset, “1” for Set, and “2” for Read. Each Set and Reset command includes a Read, which provides verification that the chosen operation was successful. The Read command returns a value represented by an ASCII character in the A–P range. If the ASCII value of the letter “A” is subtracted from the value returned, the result will be a number from 0 to 15, representing the state of the four relays by bit positions: bit 0 is relay 1; bit 1 is relay 2; etc. If a bit is “0,” that relay is reset (or off); if “1,” it is set (or on). If you Set, Reset or Read a single relay, the value returned represents only the state of that relay, and not the state of the other three relays. If all four relays are Set, Reset, or Read as a group, the value returned represents all relays. The following table itemizes all possible combinations:

Relay Commands Returned Values Value Returned

348

Optical Inputs:

1

2

3

4

A

Off

Off

Off

Off

B

On

Off

Off

Off

C

Off

On

Off

Off

D

On

On

Off

Off

E

Off

Off

On

Off

F

On

Off

On

Off

G

Off

On

On

Off

H

On

On

On

Off

I

Off

Off

Off

On

J

On

Off

Off

On

K

Off

On

Off

On

L

On

On

Off

On

M

Off

Off

On

On

N

On

Off

On

On

O

Off

On

On

On

P

On

On

On

On

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

Page 373

Chapter 7, Extended Commands

Line 1, Columns 2 and 3, contains the extended command “#R”. Line 2, Column 1, receives the returned data in the following format, where “X” is the return value: \\0X<cr>

The status value returned here will be “0” (the character for zero, not the value zero) for a good status, indicating that the transaction is complete and without error. An error will occur if this command is attempted from the wrong type of terminal. However, no error is detected when you have a 248X Terminal without terminal blocks. The status value returned when an error occurs is “1” (the character, not the value).

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

349

Page 374

Chapter 7, Extended Commands

Magnetic Card Reader (#M) Note: The Magnetic Card Reader (#M) command for Magnetic Card Reader support is included in software build versions 7.12 and greater. On the following Intermec printers, you can access the Magnetic Card Reader from the host by sending an extended #M command to the TE 2000 application. S 782T CR S PW40 with CR S 6808 CR The Magnetic Card Reader extended command is supported for 3270, 5250, and VT/ANSI terminal emulations but not the Native terminal emulation. 3270 and 5250 terminal emulations require an input field to hold the card data. Data beyond the size of the field will be discarded. When the 700 Series Computer with the TE 2000 application receives the Magnetic Card Reader (#M) command, the display will show:

Please SWIPE Card NOW! (Press any key) to cancel.)

The operator should then swipe the card through the reader to cancel the process. The card reader data buffer is cleared just after displaying the waiting message, thus do not swipe the card until prompted by the display. Pressing a key instead of swiping a card will cancel the process (see return code “K” on the next page).

Extended Command Syntax The Magnetic Card Reader extended command syntax is in the #Mttddd format. Magnetic Card Reader Options, Line 1, Columns 2–8 Column Description

Character

2

Extended command

#

3

Magnetic Card Reader command

M

4–5

Timeout

01–99=2-digit data receive timeout in seconds. Default is 30 seconds when “tt” has two blank characters.

6–8

Maximum characters to accept

001–250=Limit of maximum characters to accept. Default is 250 when “ddd” has three blank characters. Data characters received past the maximum are discarded. For 3270 and 5250 emulation, data characters past the input field size are discarded.

350

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

Page 375

Chapter 7, Extended Commands

Return Codes for Magnetic Card Reader The return code is the status sent to the host computer; the code indicates if the extended command was successful. The terminal returns data and the extended command’s status to the host computer in the \\X<CR> format. X is the return code listed in the following chart. Code Description 0

Good status, transaction complete.

1

Not enough memory for card data buffer.

6

No 3270 or 5250 input field available to hold the magnetic card data.

9

Incorrect setting for maximum characters to receive.

C

Incorrect setting for timeout value.

F

Timeout error, no data.

K

Key pressed to abort card read.

P

Communication with the Magnetic Card Reader failed, check cabling, reader power, no data.

T

OK, the data is returned, but is truncated by the lesser of the input field size (for 3270 and 5250) or “ddd.”

#M will return the data in the following format: ”{T1:” <Track 1> ”|T2:” <Track 2> ”|T3:” <Track 3> ”}” where <Track n> is: S 0 to 81 alphanumeric data characters for Track 1. S 0 to 42 numeric data digits for Track 2. S 0 to 109 alphanumeric or numeric data characters (depending on ISO or AAMVA conformance) for Track 3. Note: If the track data is “B,” then the track was not read. An “N” means the track is not on the magnetic card. The maximum possible characters is 245.

Magnetic Card Reader CAB File For the Magnetic Card Reader to work, the MAGCARD.CAB file must be installed (which installs and registers the MAGCARD.DLL file). Contact your Intermec Representative to get this file, then install this file in your 700 Series Computer. The TE 2000 application will only look for the MAGCARD.DLL file when it gets a Magnetic Card Reader (#M) extended command from the host.

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide

351

Page 376

Chapter 7, Extended Commands

352

TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide