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

Native Terminal Emulation Programmer's Guide: Chapter 6: Terminal Commands, pages 247 to 256

Pages 247 to 256 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 247

Chapter 6, Terminal Commands

WtD/ \PF (Send and Get Data from an External Device) WtD/\PF transmits data to, and receives data from, an external device. It sends a request and receives its response via the terminal’s RS-232 port. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtDo/\PFi\y<cr>

DCS or Gateway Response OK<cr>

R Response tK\\x<cr> tK\\z<cr>

Command Variables S t

Terminal number (000–126)

S o

RS-232 port options (see the “RS-232 Port Options” table on page 219)

S i

RS-232 input options (see the “WtD/\PG RS-232 Input Options” table on page 224)

S y

Data transmitted to external device

| (0x7C)

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

R Response Variables S t

Terminal number (000–126)

S x

Data from external device

S z

External Device Response Codes S tK\\9 Syntax error S tK\\A Printer time-out on CTS S tK\\B Printer time-out on DSR S tK\\C Printer time-out XON/XOFF S tK\\E Error with E option (00 < xx < FF) S tK\\K If Txx=00 and a key is pressed, no input data is returned S tK\\M Error with M option (00 < xx < 99) S tK\\N Error with N option (00 < xx < 99) S tK\\P Data parity error on RS-232 input S tK\\S Error with S option (00 < xx < FF) S tK\\T Error with T option (00 < xx < 99) S tK\\X Time-out error waiting for input S tK\z x=RS-232 input data

Native Terminal Emulation Programmer’s Guide

227

Page 248

Chapter 6, Terminal Commands

Example W000P10L1/\PFS0AE0AFN01M50T20\ DATE: 02-23-00^0D^0A

This example sets the following response options: S P10 7 data bits, 1 stop bit, even parity S L1 4800 bps S PF Write “DATE: 02-23-00<cr><lf>” before receiving data input S S0A Start character is<If> S E0A End character is <If> S F Return the start character S N01 End data input S M50 Get 50 characters maximum S T20 Wait for 20 seconds maximum for data input before time-out

228

Native Terminal Emulation Programmer’s Guide

Page 249

Chapter 6, Terminal Commands

WtD/ \yP (Print Table) WtD/\yP prints data in a table to the RS-232 port. The RS-232 port setup parameters are set by the WtD/\PS (Set RS-232 Port Options) command.

Command WtD/\yP<cr>

DCS or Gateway Response OK<cr>

R Response tK\\z<cr>

Command Variables S t

Terminal number (000–126)

S y

Table and data to print

R Response Variables S t

Terminal number (000–126)

S z

Response Code S 0 Data Printed Correctly S 9 Syntax Error S A CTS Time-out S B DSR Time-out S C XON/XOFF Time-out

Data in a table can encode characters with hexadecimal values by using ^xx, where xx is the two-digit hexadecimal number for the data. A <cr> must be sent this way. (The carriage return “<cr>” character is sent as ^0D.)

Native Terminal Emulation Programmer’s Guide

229

Page 250

Chapter 6, Terminal Commands

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

Command WtDo/\yR\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 S y S i S F S p S f

Terminal number (000–126) Table number (0–99, Length is 16725 bytes; # pairs is 25) Input field number (0–99) Update 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 data Update prompt field only Update input field only

S x S P S I | (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.

230

Native Terminal Emulation Programmer’s Guide

Page 251

Chapter 6, Terminal Commands

R Response Variables S t S y S n S g

Terminal number (000–126) Table number (0–99) Input field number (0–99) Input data type S K=Keyboard S S=Scanner S x Input field 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.) S o Print table controls (see the following table) 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 S A=CTS Time-out S B=DSR Time-out S C=XON/XOFF Time-out WtD/\yR (Update and Print Table) Options o

Description

C

XON/XOFF control

D

DSR XON/XOFF

Option

Hx Time-out for RS-232 port ready in x sec Lx x=speed

0=9600 bps (default) 1=4800 bps 2=2400 bps 3=1200 bps 4=300 bps 5=19200 bps 6=38400 bps

O

Print prompt fields only

Print all fields

P

Sum of “P value” choices. See the “P Value” table page 220

Q

Print CR/LF after prompt field

No CR/LF

S

Print CR/LF after input field

No CR/LF

U

Print input fields only

Print all fields

W

CTS busy

Native Terminal Emulation Programmer’s Guide

231

Page 252

Chapter 6, Terminal Commands

WtD/ \yQ (Update, Display, and Print Table) WtD/\yQ allows change to a portion of a table without downloading an entire table. It displays the table to the terminal screen and sends it to the RS-232 port. The update process can replace the prompt field or the input field, or both. Individual hexadecimal characters can be escaped with the “^xx” extension. For more information, see “Pass-Through Hex Character” on page 197.

Command WtDo/\yQ\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/\yR Options” table on page 231)

S y

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

S i

Input field number (0–99)

S F

Update 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

Data

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

232

Native Terminal Emulation Programmer’s Guide

Page 253

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

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 S A=CTS Time-out S B=DSR Time-out S C=XON/XOFF Time-out

Native Terminal Emulation Programmer’s Guide

233

Page 254

Chapter 6, Terminal Commands

WtD/ \T (Tone) WtD/\T sets the volume, frequency (pitch), and length (duration) of the tone.

Command WtD/\Tvvvffflll

DCS or Gateway Response OK<cr>

R Response tK\\z

Command Variables S t

Terminal number (000–126)

S v

Volume (000–255)

S f

Frequency or pitch (000–030)

S l

Length or duration (001–010)

R Response Variables S t

Terminal number (000–126)

S z

Response code S 0=Parameters Set Correctly S V=Volume Out of Range S F=Frequency Out of Range S L=Length Out of Range

Example This example indicates that the length of “011” is outside the acceptable range of 001-010: Command: W000D/\T255030011<cr> R Response: 000K\\L<cr>

234

Native Terminal Emulation Programmer’s Guide

Page 255

Chapter 6, Terminal Commands

DtV (Terminal Emulation Version) Use DtV to return the terminal emulation version running in the terminal. The command variable is t, the terminal number (000-126). Following are R response variables and characters.

Command DtV<cr>

DCS or Gateway Response OK<cr>

R Response tDFWP<ab0H0> V<v.vv><cr>

Command and R Response Variables S t

Terminal number (000–126)

S D

Diagnostic command or response

S FWP Terminal emulation program S ab

First two numbers in the terminal model name: S 24=2415, 2425, 2435A, 2455, 2475, or 248X Terminals S 64=6400 Hand-Held Computer S 65=5055 Data Collection PC S 59=59XX Terminal S 17=17XX Terminal S 11=11XX Terminal

S H

Represents the combined Native, 3270, 5250, and VT/ANSI terminal emulation programs. The 2415, 2425, 2435A, 2455, 2475, and 248X Terminals do not support the “FWP” program’s Native option.

S v

Terminal emulation program’s version number

Example Command: D003V<cr> R Response: 003DFWP240H0 V6.17<cr> Terminal 003 is a 2415, 2425, 2455, 2475, or 248X running terminal emulation program FWP240H0, version 6.17.

Native Terminal Emulation Programmer’s Guide

235

Page 256

Chapter 6, Terminal Commands

DtE (Echo-Back Diagnostic) DtE tests the communication cycle. The host sends a data string to a terminal, which it immediately returns for comparison. The “D” in the R response indicates “diagnostic command or response.”

Command DtE/x<cr>

DCS or Gateway Response OK<cr>

R Response tDx<cr>

Command and R Response Variables S t

Terminal number (000–126)

S x

Data (1–112 characters)

Example Command: D002E/ABCD1234<cr> Terminal response: 002DABCD1234<cr> Terminal 002 returns the same data in response to the next R (Read) command.

236

Native Terminal Emulation Programmer’s Guide