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

Native Terminal Emulation Programmer's Guide: Chapter 6: Terminal Commands, pages 217 to 226

Pages 217 to 226 of 340, from Native Terminal Emulation Programmer's Guide

The original document is the PDF (2.9 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 2435

Page 217

Chapter 6, Terminal Commands

Pass-Through Hex Stream This extension enables ASCII representations of hexadecimal values. The “|X|” starts the hex stream. The “|A” ends it.

Syntax |X<literal>|A

Example “|XDAC4B3|A” translates the literal “DAC4B3” to hex values 0xDA, 0xC4, and 0xB3 and displays the following:

Pass-Through Hex Character This extension sends hexadecimal characters to the terminal. It is a passthrough mode that bypasses the data collection server or gateway’s handling of this character. For example, if you want to send a carriage return to a printer attached to a terminal, and if the host program sent the <cr> character, the data collection server or gateway would terminate the command. By sending a ^0D, the host sends these three characters through the data collection server or gateway to the terminal. The terminal converts the three characters into one byte.

Syntax ^xx

Example 1 This command sends the string “Hello World<cr><lf>” out the terminal’s RS-232 port: W000D/\P\Hello World^0D^0A<cr>

Example 2 This command displays “ABCD” on the terminal’s screen. This command is equivalent to command W000DDBC/ABCD. W000DDBC/^41^42^43^44<cr>

Native Terminal Emulation Programmer’s Guide

197

Page 218

Chapter 6, Terminal Commands

WtD// (Extended Write Display) Use WtD// to download more than one data block to a terminal and enable terminal response mode. WtD// concatenates (appends) strings of data. It also permits setting up input parameters for the terminal’s response. The single input field returns to the host upon data entry.

Command WtD//Fx<cr> WtD//Mx<cr> WtDo//Lx<cr>

DCS or Gateway Response OK<cr>

R Response tKrd<cr> tSbcm<cr> tK\\z<cr>

Command Variables S t

Terminal number (000–126)

S F

First in chain

S M

Middle of chain

S L

Last in chain

S o x

Options (see the “Write Display Options” table on page 195) Data

| (0x7C) Allows all command extensions

(see “Command Extensions” on page 196)

R Response Variables

198

S t

Terminal number (000–126)

S K

Keyboard data

S z

Response code S 0=Good Status S 1=Syntax Error

S S

Scanned data

S b

Bar code type

S c

Bar code data

S m

MOD 10 check digit (if enabled)

S d

Keyboard input data

S r

Optional ASCII display row number

Native Terminal Emulation Programmer’s Guide

Page 219

Chapter 6, Terminal Commands

When using the WtD// command, designate the first, middle, and last segments of a chain as follows: S /F=(first in chain), The terminal clears all chained data and replaces it with new data starting with the marked sequence. S /L=(last in chain), The terminal attaches the current field, and executes the Write Display command using options set for the /L command. S /M=(middle of chain), The terminal attaches the sequence to what is stored.

Example 1 Command: W003D//FFIRST IN CHAIN <cr> Response: OK<cr>

Example 2 Command: R<cr> Response: 003K\\0<cr>

Example 3 Command: W003D//MMIDDLE IN CHAIN <cr> Response: OK<cr>

Example 4 Command: R<cr> Response: 003K\\0<cr>

Example 5 Command: W003DBS//LLAST IN CHAIN<cr> Action: Terminal 003 sounds its tone and enables its scanner. FIRST IN CHAIN MIDDLE IN CHAIN LAST IN CHAIN

This illustrates a sample terminal display for this command.

Native Terminal Emulation Programmer’s Guide

199

Page 220

Chapter 6, Terminal Commands

WtD/ \yS (Download Table) A table is a block of prompt and input field pairs downloaded to the terminal. The terminal can store a number of tables at the same time. Host commands activate individual tables. While a table appears, the terminal operator can enter data to any or all its input fields before the input data is transmitted to the host. WtD/\yS defines and sends a table to the terminal. The terminal stores the table definition until a WtD/\y (Display Table) command is issued. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtDo/\yS\p\fx\0\p\fx<cr>

DCS or Gateway Response OK<cr>

R Response tK\\z<cr>

Command Variables S t S o

S y S p S f

Terminal number (000–126) Erase options D=Erase Table E=Erase all tables Table number (0–99, Length is 16725 bytes; # pairs is 25) Prompt field (Maximum field size) Input field control byte (001XXXXX) (see “Input Field Control Byte” on page 201) Input field

S x | (0x7C) Allows the Bank, Blank, and Pass-Through Hex Stream command extensions (see “Command Extensions” on page 196).

R Response Variables S t S o

200

Terminal number (000–126) Table response codes S 0=Message Received S 1=Bad Command S 2=Field Length is 0 S 3=Data Overflow S 4=Bad Table Number S 5=Prompt Field, No Input Field S 6=Field Does Not Exist S 7=Missing Prompt and Input Field Pair S 8=Field Pair Number Out of Range S 9=Format Error or Syntax Error

Native Terminal Emulation Programmer’s Guide

Page 221

Chapter 6, Terminal Commands

Input Field Control Byte The input field control byte sets parameters for the fields. To set field parameters, choose the required options, then convert the control byte to its ASCII character. (Several options combine into 1 byte.) The following illustration defines the bits. For example, set the byte for a field that will receive scanned data. The first 3 bits, 001, identify the control byte. The “Scanning Enabled” position (bit 3) is set to 1 while the other four bits remain 0. The complete byte is 00101000 (28 hex). The ASCII character designated by the binary number 00101000 (28 hex) is “(”. Therefore, placing the character “(” into the first position in an input field enables scanning in that field. Bit Position

7

6

5

4

3

2

1

0

Hidden Field

Numeric Field

Protected Field

Auto Scan Transmit Scanning Enabled

Control Bits

0 0 1 X X X X X

Control Bits -- 001 identifies the input field control byte Auto Scan Transmit -- Automatically transmits table after a good scan Scanning Enabled -- Enables bar code scanner Protected Field -- No data entry allowed; data always returns to the host Numeric Field -- Numeric data only, no alphabetic, etc. Hidden Field -- Input data not displayed

This illustrates the definition input field control byte bits.

Native Terminal Emulation Programmer’s Guide

201

Page 222

Chapter 6, Terminal Commands

Rules for Designing Tables The following rules apply to tables: S A table can consist of up to 25 prompt and input field pairs. S A prompt field must be followed by an input field. S A prompt and input field pair must be smaller than the terminal’s screen. S Table length=(characters)+(field characters)+ 2S(input pairs) Note: The total number of prompt field characters in tables plus the total number of input field characters in all pairs plus two times the number of pairs must be less than 1600 for tables 0 through 4 and be less than 400 for tables 5 through 99 The maximum length of the command is 1020 bytes. For longer tables, you can use more than one WtD/\yS (Download Table) command. The D (erase table) or E (erase all tables) option is required before overwrite.

Example Host: W010DD/\0S\1ST BARCODE:|04\(|16\QTY? \”|11<cr> Response: OK<cr>

Table 0 in terminal 010 erases and a new set of prompt and input field pairs loads. The first prompt is “1ST BARCODE:” followed by a blank extension of 4 spaces. This moves the input field to the next line on a 16-character display. The first character in the input field is the input field control byte. A “(” (28 hex) enables bar code scanning. A blank extension of 16 characters follows the input field control byte. This defines the length of the input field. The second prompt is “QTY?”. The control byte is the ASCII character ” (22 hex), which enables numeric keyboard data only. This field contains 11 spaces after the ASCII control byte character, setting the input field length to 11. FIRST BARCODE: QTY?

This is a sample terminal display.

202

Native Terminal Emulation Programmer’s Guide

Page 223

Chapter 6, Terminal Commands

WtD/ \y (Display Table) WtD/\y displays table y defined by the WtD/\yS (Download Table) command, and enables input to the table. Data transmits to the host in response to an R (Read) command.

Command WtDo/\y<cr>

DCS or Gateway Response OK<cr>

R Response tK\y\n\gx\0\n\gx<cr> tK\yM\n\gx\0\n\gx<cr>

Command Variables S t

Terminal number (000–126)

S o

Options (see the following table)

S y

Table number (00–99; Length is 16725 bytes; # pairs is 25)

WtD/\y (Display Table) Options o

Description

Default

B

Sounds tone (StD/ sets the duration).

Tone off

C

Displays terminal cursor.

Not displayed

F

Sends all data in a single block, not 112 bytes per R (Read) command.

Maximum of 112 bytes

Lx

Designates prompt and input field pair to appear at the top of the screen (x=prompt and input field pair number).

0

M

Skips protected fields when scrolling through a table.

Not enabled

N

Sets keyboard to SHIFT mode.

Not shifted

O

Resets all modified flags.

Not reset

Px

Desired prompt and input field pair starting position in table. x=0 up to the number of field pairs in the table minus 1.

0

Q

Enables autoadvance scanning mode. A good scan automatically advances the cursor to the next input field.

Not enabled

S

When the input field is filled by scanning or keyboard input, the cursor automatically moves to the next input field.

U

Set all input fields to blank and reset the modified flags (protected fields unaffected).

Not affected

W

Enable display wrap (top-bottom, bottom-top).

Not enabled

Native Terminal Emulation Programmer’s Guide

203

Page 224

Chapter 6, Terminal Commands

R Response Variables S t

Terminal number (000–126)

S y

Table number (0–99; Length is 16725 bytes; # pairs is 25)

S n

Input field number (0–99)

S g

Input data type. If g=S and x=bar code type S K=Keyboard S S=Scanner

S x

Data

S M

Indicates more data to come. Host continues to send an R (Read) command until it receives a response without the “more data” flag. (The R response without M means all data has been sent.)

Example Using the table from the WtD/\yS (Download Table) command: Host command: W010DQ/\0<cr> Response: OK<cr> Terminal allows the operator to enter data in table 0 of terminal 010. Scanning autoadvance is enabled. The terminal automatically advances to the next input field after getting a valid scan. After the user presses [ENTER], the terminal responds to an R (Read) command from the host by uploading the stored input field data.

204

Native Terminal Emulation Programmer’s Guide

Page 225

Chapter 6, Terminal Commands

WtD/ \yT (Download and Display Table) WtD/\yT combines the WtD/\yS (Download Table) and WtD/\y (Display Table) commands. It downloads prompts and input fields into a buffer memory of the terminal for processing, displays the table, and enables data input. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtDo/\yT\p\fx\p\fx\p\fx\ 0\p\fx<cr>

DCS or Gateway Response OK<cr>

R Response tK\y\n\gx\0\n\gx<cr> tK\yM\n\gx\0\n\gx<cr> tK\\z<cr>

Command Variables S t

Terminal number (000–126)

S o

Erase options S D=Erase Table S E=Erase All Tables

S y

Table number (0–99; Length is 16725 bytes; # pairs is 25)

S p

Prompt field (Maximum field size)

S f

Input field control byte (001XXXXX) (see “Input Field Control Byte” on page 201)

S x

Input field

| (0x7C)

Allows the Bank, Blank, and Pass-Through Hex Stream command extensions (see “Command Extensions” on page 196).

Note: See “Rules for Designing Tables” on page 202 for information about: S Replacing the prompt and input fields together. S Restrictions. S Replacing the prompt field only. S Replacing the input field only.

Native Terminal Emulation Programmer’s Guide

205

Page 226

Chapter 6, Terminal Commands

R Response Variables S t

Terminal number (000–126)

S y

Table number (0–99)

S n

Input field number (0–99)

S g

Input data type. If g=S and x=bar code type S K=Keyboard S S=Scanner

S x

Input field

S M

S z

Indicates more data to come. Host continues to send an R (Read) command until it receives a response without the “more data” flag. (The R response without M means all data has been sent.) Response code S 0=Message Received S 1=Bad Command S 2=Field Length is 0 S 3=Data Overflow S 4=Bad Table Number S 5=Prompt Field, No Input Field S 6=Field Does Not Exist S 7=Missing Prompt and Input Field Pair S 8=Field Pair Number Out of Range S 9=Format Error or Syntax Error

Example Command: W000DBCUWQS/\0T\DATE:|03\$02-01-00\TIME:|03\$13:48.00\ PROMPT ONE|05\8|16\ PROMPT TWO|05\8|16<cr>

R Response: OK<cr>: DATE: 02-01-00 TIME: 13:48.00 PROMPT ONE PROMPT TWO

This is a sample terminal display.

206

Native Terminal Emulation Programmer’s Guide