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 36 of 47

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

Pages 314 to 322 of 416, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide

The original document is the PDF (3.6 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 314

Chapter 7, Extended Commands

Receive Only On RS-232 Port (#G) Note: There are no flow control settings for extended command #G. The Receive Only On RS-232 Port extended command provides a way to use the RS-232 port on the terminal to collect data. A scale is one example of a use for this command. The host computer sends “#G” characters to alert the terminal for activity on the port.

Conventional Method This is an example of Receive Only using the conventional method. Note that the descriptions for the middle command are listed under the control character sequence method and that “b” indicates a 1-byte space. Command

Action

CSI 2J

Clears the screen.

CSI 1;3HG3E81bbbbbX1000X03010202FP06

Moves the cursor to the top row, Column 3

CSI 1,2H #

Moves the cursor to the beginning.

Control Character Sequence Method This is the same example using the control character sequence method. You do not need to clear the screen or move the cursor in the example because the print command executes in the background. Note that “b” indicates a 1-byte space. ^9F#G3E81bbbbbX1000X03010202FP06^9C

290

S ^9F

APC character 0x9F

S #G

Extended command for receive only

S 3E81

9600 baud, even parity, 8 data bits, 1 stop bit

S bbbbb

Reserved

S X1000X

Receive 1000 bytes

S 03

Delimiting character (ETX)

S 01

One delimiting character

S 02

Start character (STX)

S 02

Number of start characters (2)

S F

Return start characters

S P

Flag parity errors

S 06

Receive all data within 6 seconds

S ^9C

ST character 0x9C TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 315

Chapter 7, Extended Commands

The following table describes the line and columns where characters must appear, and their meanings. Note that “b” indicates a 1-byte space. Receive Only Characters, Line 1, Columns 2–24 Column Description

Character

2

Extended command

#

3

Receive Only On RS-232 Port command

G

4

Speed (bits per second)

1=1200; 2=2400; 3=4800; 4=9600; 5=19200; 6=38400

5

Data parity

N=None; 0 (zero)=None; b=None; E=Even; O=Odd

6

Data bits

7=Seven; 8=Eight

7

Stop bits

1=One; 2=Two

8–12

Reserved bbbbb

13–14

Maximum characters to receive dd or Xd…dX, where: dd=00–99. Default: 99. d…d=Any number of decimal digits from 0–2000, inclusive. Default: 99.

15–16

Delimiter character

AA=Hexadecimal ASCII code that marks end of valid data to be received. Range: 00–7E. Default: 00.

17–18

Number of delimiter characters

XX=Delimiter characters received before transmitting return code to host. Range: 00–99. Default: 00.

19–20

Start character

AA=Hexadecimal ASCII code for start character. Range: 00–99. Default of 00 or bb implies no start character.

21

Return start character to host

F=Return character; b=Do not return character

22

Flag parity errors

P=Flag; b=Do not flag

23–24

Receive timeout length

XX=Number of seconds the terminal waits for input from the RS-232 port before it sends a timeout error. Uses 5-second default when this field contains spaces.

Return Codes for Receive Only The Receive Only return code is the status sent to the host computer. The terminal returns data and the extended command’s status to the host computer in the \\X\CC\DATA<CR> or \\X\CCCC\DATA<CR> format. S X

The return code listed in the following chart.

S CC or CCCC The character count of the received data. CC is 00–99. CCCC is 100–2000. S DATA

The RS-232 data received from the RS-232 device attached to the terminal (if any data was received). The terminal simulates the [Enter] key to return the code to the host.

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

291

Page 316

Chapter 7, Extended Commands

Code Description

Column

0

Good status, transaction complete.

(None)

1

Not enough memory. Or, incorrect setting for speed, number of data bits, or number of stop bits.

4, 6, 7

2

No delimiter (#) on data stream.

(None)

6

Improper return field.

(None)

7

Hexadecimal value is outside the range of 00–0F.

15–16, 19–20

8

Reserved.

(None)

9

Incorrect setting for maximum characters to receive.

13–14

A

Incorrect setting for delimiter character.

15–16

B

Incorrect setting for number of delimiter characters.

17–18

D

Incorrect setting for start character.

19–20

E

Incorrect setting for data parity.

5, 22 f/F*

Timeout.

(None)

o/O*

Overrun of UART receive register.

(None)

p/P*

Data parity or framing error.

(None)

R

Syntax error from RD5500 Remote Display (not the expected character; no character error was detected). (Applies only to the 17XX Terminal.)

(None)

*

An uppercase letter indicates an error from the RS-232 device. A lowercase letter indicates an error from the RD5500 Remote Display (applies only to the 17XX Terminal).

292

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 317

Chapter 7, Extended Commands

Set Parameters (#H) Note: This extended command is supported only on 6400, 5055 DOS, 59XX, 17XX, and 11XX Terminals. Use Set Parameters to set TE configuration parameters that you would otherwise set at the terminal. The parameters are part of the configuration menus. Set most of the parameters once per terminal. You can set them when you install a network or when you add terminals to the network. Unless the terminal fails (perhaps a dead battery) or a user does something destructive (such as a RAM test), you probably will not need to set them again. Note that “b” indicates a 1-byte space.

Conventional Method When constructing a Set Parameters command, the data to be sent should be placed at Line 2, Column 1. Note that the descriptions for the middle command are listed under the control character sequence method. Command

Action

CSI 2J

Clears the screen.

CSI 1;3H H099bbb3b1255022003100010016008020 Moves the cursor to the top row, Column 3 CSI 1;2H #

Moves the cursor to the beginning.

Control Character Sequence Method This is the same example using the control character sequence method. You do not need to clear the screen or move the cursor in the example because the print command executes in the background. ^9F#H099bbb3b1255022003100010016008020^9C S ^9F

APC character 0x9F

S #H

Extended command for setting terminal parameters

S 099

Set backlight timer to 99 seconds

S bbb

Three 1-byte spaces Do not change sleep time

S 3

Set cursor mode to block

S b

Do not change screen mode

S 1

Remote display is attached

S 255

Set beeper volume to 255

S 022

Set beeper frequency to 22

S 003

Set beeper length to 3 seconds

S 1

Delete key returns 0x9F to host

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

293

Page 318

Chapter 7, Extended Commands

S 0

Enter key returns ON 0x0D to host

S 0

Host will echo characters back to terminal

S 010

Set screen size to 10 rows

S 016

Set screen size to 16 columns

S 008

Alternate screen size is 8 rows

S 020

Alternate screen size is 20 columns

S ^9C

ST character 0x9C

The following table lists columns in which characters must appear. Note that “b” indicates a 1-byte space. Note: Some parameters do not apply to all terminal models. Refer to the terminal’s user manual for applicable parameters. Set Parameters Characters, Line 1, Columns 2–36 (6400, 5055 DOS, 59XX, 17XX, 11XX) Column Description

Character

2

Extended command

#

3

Set Parameters command

H

4–6

Backlight timer bbb=No change from current setting; 000=On continuously; 001–255=Seconds to remain on

7–9

Sleep timer delay (for legacy RT3210 Terminals)

bbb=No change from current setting; 000=Off; 001–255=Seconds of inactivity before sleep

10

Cursor mode b=No change from current setting, 1=Underline (default); 2=Underline blink; 3=Block; 4=Block blink

11

Screen mode (value must be sent, but it is ignored) b=No change from current setting; 1=Center cursor; 2=Corner; 3=Page

12

Remote display (17XX, 11XX)

b=No change from current setting; 0=Not attached; 1=Attached

13–15

Beeper volume bbb=No change from current setting; 000–255=Range from quiet to loud

16–18

Beeper frequency bbb=No change from current setting; 000–030=Range from low to high

19–21

Beeper length bbb=No change from current setting; 000–010=Duration in seconds from short to long (keyboard response time)

22

Delete key mapping b=No change from current setting; 0=Delete key is delete (7F hex); 1=Delete key is backspace (08 hex)

23

CR expansion mapping b=No change from current setting; 0=CR; 1=CR/LF

24

Local host echo b=No change from current setting; 0=Host echo; 1=Local echo

25–27

Primary screen row size bbb=No change from current setting; 000–255=Number of rows per display screen

28–30

Primary screen column size bbb=No change from current setting 000–255=Number of columns per display screen

294

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 319

Chapter 7, Extended Commands

Set Parameters Characters, Line 1, Columns 2–36 (6400, 5055 DOS, 59XX, 17XX, 11XX) (continued) Column Description

Character

31–33

Alternate screen row size bbb=No change from current setting 000–255=Number of rows per display screen

34–36

Alternate screen column size bbb=No change from current setting 000–255=Number of columns per display screen

Return Codes for Set Parameters Line 24, Column 1, has the return status field. The code returned in this position tells the host the status of the extended command. The Set Parameters return code is the status sent to the host computer. Code Description

Column

0

Good status, transaction complete.

(None)

1

Backlight timer parameter invalid.

4–6

2

Sleep mode timer parameter invalid.

7–9

3

Normal cursor set parameter invalid.

10

4

Insert cursor set parameter invalid.

11

5

Remote display parameter invalid.

12

6

Shift key unlock parameter invalid.

13

7

Keyboard lock parameter invalid.

14

8

Beeper volume parameter invalid.

15–17

9

Beeper frequency parameter invalid.

18–20

A

Beeper length parameter invalid.

21–23

B

Stream scan parameter invalid.

24

E

Incorrect setting for number of rows.

25–27

F

Incorrect setting for number of columns.

28–30

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

295

Page 320

Chapter 7, Extended Commands

Return Version (#V) The Return Version extended command returns the current terminal emulation name and version to the host computer. The following table lists columns in which characters must appear. Return Version Characters, Line 1, Columns 2–3 Column Description

Character

2

Extended command

#

3

Return Version command

V

The return code is the status sent to the host computer and indicates if the extended command was successful. The terminal returns data and the extended command’s status to the host computer in the following format. For example: \\0\FWP240H0 V6.52 <CR> \\0\<Program name> <Version> <CR>

S 0 Return code, which indicates “good status, transaction complete.” S <Program name> TE program name. S <Version> Program version.

Conventional Method Note: The descriptions for the second command are listed under the control character sequence method. Command

Action

CSI 2J

Clears the screen.

CSI 1;2H #V#

Moves the cursor to the top row, Column 2

Control Character Sequence Method This is the same example using the control character sequence method. You do not need to clear the screen or move the cursor in the example because the print command executes in the background. ^9F#V#^9C

296

S ^9F

APC character 0x9F

S #V#

Extended command to get program name and version

S ^9C

ST character 0x9C TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 321

Chapter 7, Extended Commands

Tone (#T) The Tone extended command causes the terminal to make a tone of a specified volume, frequency, and length (). Note: For Trakker Antares terminals, volume and frequency are ignored. The volume is user-selectable via the Trakker Antares firmware menus. The frequency is set to 1200 Hz.

Conventional Method Note that the descriptions for the middle command are listed under the control character sequence method. Command

Action

CSI 2J

Clears the screen.

CSI 1;3HT25015008

Moves the cursor to the top line, Column 3

CSI 1,2H #

Moves the cursor to the beginning.

Control Character Sequence Method This is the same example using the control character sequence method. You do not need to clear the screen or move the cursor in the example because the print command executes in the background. ^9F#T125015008^9C S ^9F APC character 0x9F S #H Extended command for the tone command S 125 Sets beeper volume to 125 S 015 Sets beeper frequency to 15 S 008 Set beeper length to 8 seconds S ^9C ST character 0x9C The following table describes the line and columns where characters must appear, and their meanings. Note that a “b” indicates a 1-byte space. Tone Options, Line 1, Columns 2–12 Column Description

Character

2

Extended command

#

3

Tone command

T

4–6

Volume bbb=No change from current setting; 000–255=Range from quiet to loud

7–9

Frequency bbb=No change from current setting; 000–030=Range from low to high

10–12

Length bbb=No change from current setting; 001–010=Duration in 500 ms from short to long (keyboard response time)

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

297

Page 322

Chapter 7, Extended Commands

Return Codes for Tone 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.

298

Code Description

Column

0

Good status, transaction complete.

(None)

8

Incorrect setting for volume.

4–6

9

Incorrect setting for frequency.

7–9

A

Incorrect setting for length.

10–12

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide