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

Native Terminal Emulation Programmer's Guide: Chapter 6: Terminal Commands, pages 227 to 236

Pages 227 to 236 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 227

Chapter 6, Terminal Commands

WtD/ \yU (Update Table) WtD/\yU allows the operator to change a portion of a table without downloading an entire table. You can accomplish this by one the following methods: S Replace the prompt and input fields pair together. S Replace only the prompt field. S Replace only the input portion of the prompt and input field pair. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtDo/\yU\i\{Fp\fx} or {Pp} or {Ifx}0<cr>

DCS or Gateway Response OK<cr>

R Response tK\\z<cr>

Note: Alternative replacements are in braces { }. The “...” indicates that you may use this command multiple times.

Command Variables S t S o

S y S i S F S p S f S x S P S I

Terminal number (000–126) Erase options S D=Erase Table S E=Erase All Tables Table number (0–99; Length is 16725 bytes; # pairs is 25) Input field number (0–99) Update the prompt and input fields together Prompt field (Maximum field size) Input field control byte (001XXXXX) (see “Input Field Control Byte” on page 201) Input field Update prompt field only Update input field only

| (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

207

Page 228

Chapter 6, Terminal Commands

R Response Variables S z

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 1 Host command: W000DD/\0S\DATE:|03\$02-01-00\TIME:|03\$13:48.00 \ PROMPT ONE|05\(|16\ PROMPT TWO|05\8|16<cr> Response: OK<cr> R response: 000K\\0<cr>

DOWNLOADING TABLE PLEASE WAIT

This is a sample terminal display.

Example 2 Host command: W000DBCUWQS/\0<cr> Response: OK<cr> R response: 000K\\0<cr> DATE: 02-01-00 TIME: 13:48.00 PROMPT ONE PROMPT TWO

This is a sample terminal display.

208

Native Terminal Emulation Programmer’s Guide

Page 229

Chapter 6, Terminal Commands

Example 3 Host command: W000D/\0U\|\I14:01.32<cr> Response: OK<cr> R response: 000K\\0<cr> DATE: 02-01-00 TIME: 14:01.00 PROMPT ONE PROMPT TWO

This is a sample terminal display.

Replacing Pairs Together The syntax “Fp\fx” updates field “i” with a new prompt and input field pair, “p\fx”, where: S p=prompt field S f=input field byte S x=input field spaces or data

Restrictions S If the field is already defined but is not the last field entered, the length of the new prompt and input field must be shorter than the original prompt and input field. S The new pair uses the same screen buffer space as the original pair. S If the new field is last, and the original field is defined, the new field can be as large as screen size within the 1600 total maximum. S If the new field is last, and the original field is not defined, the new field must be one or more greater than the number previously assigned but less than 25. S The table must not exceed the 1600-character limit.

Replacing the Prompt Field The syntax “Pp” updates prompt field “i” with a new prompt “p”, where: p=prompt field Note that: S The field must have been defined. S The new prompt field must be less than or equal to the length of the original prompt field.

Native Terminal Emulation Programmer’s Guide

209

Page 230

Chapter 6, Terminal Commands

Replacing the Field Only The syntax “Ifx” updates input field “i” with a new field, “fx,” where: S f=field input byte S x=input field spaces or data Note that: S The field must have been defined. S The new input must be less than or equal to the length of the original input field.

210

Native Terminal Emulation Programmer’s Guide

Page 231

Chapter 6, Terminal Commands

WtD/ \yV (Update and Display Table) WtD/\yV combines the WtD/\yU (Update Table) command, which allows the operator to change a portion of a table without downloading an entire table, and the WtD/\y (Display Table) command. You can accomplish this by one the following methods: S Replace the prompt and input field pair together. S Replace only the prompt field. S Replace only the input portion of the prompt and input field pair. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtDo/\yV\i\{Fp\fx} or {Pp} or {Ifx}0<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>

Note: Alternative replacements are in braces { }. The “...” indicates that you may use this command multiple times.

Command Variables S t

Terminal number (000–126)

S o

Options (see the “WtD/\y (Display Table) Options” table on page 203)

S y

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

S i

Input field number (0–99)

S F

Update the prompt and input fields together

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

S P

Update prompt field only

S I

Update input field only

| (0x7C)

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

Native Terminal Emulation Programmer’s Guide

211

Page 232

Chapter 6, Terminal Commands

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.

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 (K=Keyboard; S=Scanner)

S x

Input field

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.)

S z

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 Host: W000DD/\2S\User Name: |06\ |3\Department: |05\ |16\Job Title: |06\ |16 <cr>

R response: 003K\\0<cr> Host: W000DBCUQ/\2<cr> Response: OK<cr>

User Name: Department: Job Title:

This is a sample terminal display.

212

Native Terminal Emulation Programmer’s Guide

Page 233

Chapter 6, Terminal Commands

Suppose the user enters the following data:

User Name: John Doe Department: Applications Job Title: Programmer II

This is a sample terminal display.

When the user presses [ENTER], the R response is: 003K\2\0\KJohn Doe\1\ KApplications\2\KProgrammer II<cr>

If you want to change the first prompt and input field pair to receive the user ID number without changing the information displayed, the WtD/\yV (Update and Display Table) command allows the host to transmit to the terminal only the necessary changes. A command may be: Host: W003DBCQ/\2V\0\FUser Number: |04\”|16<cr> Response: OK<cr> Note that: S The terminal does not return a status on the display commands until it transmits the data back to the host. S The length of the prompt and input fields stayed the same. S The input field control byte changed to accept numeric data only. The terminal displays: User Number: Department: Applications Job Title: Programmer II

The user might then input: User Number: 111223333 Department: Applications Job Title: Programmer II

When the user presses [ENTER], the R response is: 003K\2\0\K111223333\1\KApplications\2\KProgrammerII<cr>

Native Terminal Emulation Programmer’s Guide

213

Page 234

The text of this page cannot be shown here; see it in the PDF.

Page 235

Chapter 6, Terminal Commands

WtD/ \B (Set Bank) WtD/\B predefines data strings to be used as macros for the Write Display Table and Print commands, to reduce the number of characters the host transmits to the terminal. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtD/\B\x\x\0\x<cr>

DCS or Gateway Response OK<cr>

R Response tK\\z<cr>

Command Variables S t S x | (0x7C)

Terminal number (000–126) Blank data (macro) Allows the Bank, Blank, and Pass-Through Hex Stream command extensions (see “Command Extensions” on page 196).

R Response Variables S t S z

Terminal number (000–126) Response code S 0=Command Executed S 2=Bank Length is 0 S 3=Bank Area Filled S 4=Bad Bank Number S 9=Format Error The following information applies to banks: S Banks store 100 strings (total of 4000 bytes). S Bank commands are appended to previous bank commands. S A command begins a new bank; the delimiter concludes it. S A bank cannot be nested or recursively call itself.

Example Host command: W000D/\B\Hello \World<cr> R response: 000K\\0<cr> Host command: W000DP16H10C/|D00|D01<cr> R response: OK<cr>

Hello World

Native Terminal Emulation Programmer’s Guide

215

Page 236

Chapter 6, Terminal Commands

WtD/ \BU (Update Bank) WtD/\BU updates existing macros for use by the Write, Display, Table, and Print commands. The Update Bank data field must be less than or equal to the original bank length. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtD/\BU\nn\x<cr>

DCS or Gateway Response OK<cr>

R Response tK\\z<cr>

Command Variables S t S nn S x

Terminal number (000–126) Bank number (00–99) Bank data (or macro)

| (0x7C)

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

R Response Variables S t S z

Terminal number (000–126) Response code S 0=Command Executed S 2=Bank Length is 0 S 4=Bad Bank Number S 9=Format Error

Example 1 Host: W000D/\B\Hello \World\Data String\13 Characters<cr> R Response: 000K\\0<cr>

Example 2 Host: W000D/\BU\01\Longer String<cr> R Response: 000K\\2<cr> (Longer String is longer than Data String)

Example 3 Host: W000D/\BU\00\Short<cr> R Response: 000K\\0<cr>

Example 4 Display command: W000D/|D00<cr>

Short

216

Native Terminal Emulation Programmer’s Guide