The text of a manual · part 27 of 33
TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Section 7: Extended Commands, pages 223 to 230
Pages 223 to 230 of 278, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide
The original document is the PDF (4.0 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 6400
Page 223
SECTION 7
Extended Commands
Table 7-3 describes the line and columns where characters must appear, and their meanings. Note that “b” indicates a 1-byte space. Table 7-3 Receive Only Characters Line 1, Columns 2--24 Column Description
Character
2 3 4 5 6 7 8–12 13--14
Extended command Receive Only On RS-232 Port command Speed (bits per second) Data parity Data bits Stop bits Reserved Maximum characters to receive
15--16
Delimiter character
17--18
Number of delimiter characters
19--20
Start character
21 22 23--24
Return start character to host Flag parity errors Receive timeout length
# G 1=1200; 2=2400; 3=4800; 4=9600; 5=19200; 6=38400 N=None; 0 (zero)=None; b=None; O=Odd; E=Even 7=Seven; 8=Eight 1=One; 2=Two bbbbb dd or Xd}dX, where: dd=00--99. Default: 99. d}d=Any number of decimal digits from 0--2000, inclusive. Default: 99. AA=Hexadecimal ASCII code that marks end of valid data to be received. Range: 00--7E. Default: 00. XX=Delimiter characters received before transmitting return code to host. Range: 00--99. Default: 00. AA=Hexadecimal ASCII code for start character. Range: 00--99. Default of 00 or bb implies no start character. F=Return character; b=Do not return character P=Flag; b=Do not flag 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.
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
7-9
Page 224
SECTION 7
Extended Commands
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.
Code
X
The return code listed in the following chart.
CC or CCCC
The character count of the received data. CC is 00--99. CCCC is 100--2000.
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.
Description
Column
Good status, transaction complete. (None) Not enough memory. Or, incorrect setting for speed, number of data bits, or 4, 6, 7 number of stop bits. 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 (None) character error was detected). (Applies only to the 17XX Terminal.) * 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). 0 1
7-10
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
Page 225
SECTION 7
Extended Commands
Set Parameters (#H) 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 CSI 1;3H H099bbb3b1255022003100010016008020 CSI 1;2H #
Clears the screen. Moves the cursor to the top row, Column 3 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 ^9F #H 099 bbb 3 b 1 255 022 003 1 0 0 010 016 008 020 ^9C
APC character 0x9F Extended command for setting terminal parameters Set backlight timer to 99 seconds Three 1-byte spaces Do not change sleep time Set cursor mode to block Do not change screen mode Remote display is attached Set beeper volume to 255 Set beeper frequency to 22 Set beeper length to 3 seconds Delete key returns 0x9F to host Enter key returns ON 0x0D to host Host will echo characters back to terminal Set screen size to 10 rows Set screen size to 16 columns Alternate screen size is 8 rows Alternate screen size is 20 columns ST character 0x9C TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
7-11
Page 226
SECTION 7
Extended Commands
Table 7-4 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. Table 7-4 Set Parameters Characters (6400, 5055, 59XX, 17XX, 11XX Terminals)
Line 1, Columns 2--36 Column 2 3 4--6
Description Extended command Set Parameters command Backlight timer
7--9
Sleep timer delay (for legacy RT3210 Terminals) Cursor mode
10
13--15
Screen mode (value must be sent, but it is ignored) Remote display (17XX, 11XX Terminals) Beeper volume
16--18
Beeper frequency
19--21
Beeper length
22
Delete key mapping
23 24 25--27
CR expansion mapping Local host echo Primary screen row size
28--30
Primary screen column size
31--33
Alternate screen row size
34--36
Alternate screen column size
11 12
7-12
Character # H bbb=No change from current setting; 000=On continuously; 001--255=Seconds to remain on bbb=No change from current setting; 000=Off; 001--255=Seconds of inactivity before sleep b=No change from current setting (default is underline) 1=Underline; 2=Underline blink; 3=Block; 4=Block blink b=No change from current setting; 1=Center cursor; 2=Corner; 3=Page b=No change from current setting; 0=Not attached; 1=Attached bbb=No change from current setting; 000--255=Range from quiet to loud bbb=No change from current setting; 000--030=Range from low to high bbb=No change from current setting; 000--010=Duration in seconds from short to long (keyboard response time) b=No change from current setting; 0=Delete key is delete (7F hex); 1=Delete key is backspace (08 hex) b=No change from current setting; 0=CR; 1=CR/LF b=No change from current setting; 0=Host echo; 1=Local echo bbb=No change from current setting; 000--255=Number of rows per display screen bbb=No change from current setting 000--255=Number of columns per display screen bbb=No change from current setting 000--255=Number of rows per display screen bbb=No change from current setting 000--255=Number of columns per display screen
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
Page 227
SECTION 7
Extended Commands
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 1 2 3 4 5 6 7 8 9 A B E F
Good status, transaction complete. Backlight timer parameter invalid. Sleep mode timer parameter invalid. Normal cursor set parameter invalid. Insert cursor set parameter invalid. Remote display parameter invalid. Shift key unlock parameter invalid. Keyboard lock parameter invalid. Beeper volume parameter invalid. Beeper frequency parameter invalid. Beeper length parameter invalid. Stream scan parameter invalid. Incorrect setting for number of rows. Incorrect setting for number of columns.
(None) 4--6 7--9 10 11 12 13 14 15--17 18--20 21--23 24 25--27 28--30
Return Version (#V) The Return Version extended command returns the current terminal emulation name and version to the host computer. Table 7-5 lists columns in which characters must appear. Table 7-5 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. \\0\<Program name> <Version> <CR> 0 Return code, which indicates “good status, transaction complete.” <Program name> TE program name. <Version> Program version. For example:
\\0\FWP240H0 V6.52 <CR> TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
7-13
Page 228
SECTION 7
Extended Commands
Conventional Method Note that the descriptions for the second command are listed under the control character sequence method. Command
Action
CSI 2J CSI 1;2H #V#
Clears the screen. 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 ^9F
APC character 0x9F
#V#
Extended command to get program name and version
^9C
ST character 0x9C
Tone (#T) The Tone extended command causes the terminal to make a tone of a specified volume, frequency, and length ().
Conventional Method Note that the descriptions for the middle command are listed under the control character sequence method. Command
Action
CSI 2J CSI 1;3HT25015008 CSI 1,2H #
Clears the screen. Moves the cursor to the top line, Column 3 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 ^9F #H 125 015 008 ^9C 7-14
APC character 0x9F Extended command for the tone command Sets beeper volume to 125 Sets beeper frequency to 15 Set beeper length to 8 seconds ST character 0x9C
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
Page 229
SECTION 7
Extended Commands
Table 7-6 describes the line and columns where characters must appear, and their meanings. Note that a “b” indicates a 1-byte space. Table 7-6 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 seconds from short to long (keyboard response time)
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. Code
Description
Column
0 8 9 A
Good status, transaction complete. Incorrect setting for volume. Incorrect setting for frequency. Incorrect setting for length.
(None) 4--6 7--9 10--12
Scan (#S) The Scan extended command allows host systems to have the same capabilities as terminals using the Native data stream to set bar code parameters and scan. By inserting characters “#S” in the display buffer at Line 1, Columns 2 and 3, the host computer tells the terminal to expect a Bar Code Scanner extended command. Appropriate descriptive characteristics should follow the “#S” characters. The terminal returns a code to indicate if the command was successful. Then it simulates the [Enter] key to return a value to the host computer. Note that “b” indicates a 1-byte space.
Conventional Method Note that the descriptions for the middle command are listed under the control character sequence method. Command
Action
CSI 2J CSI 1;3H S07F3201221132001208010806bbbbb# CSI 1;2H #
Clears the screen. Moves the cursor to the top row, Column 3 Moves the cursor to the beginning. TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
7-15
Page 230
SECTION 7
Extended Commands
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#S08F32012211320012080108060bbbb#^9C ^9F
APC character 0x9F
#S
Extended command for setting scan parameters
0
Laser with no redundancy
7
Auto enter scan
F 32
Enable stream scanning, return bar code type and concatenate bar code Set maximum length for all bar codes to 32 characters
01
Set minimum length for all bar codes to 1 character
2
Decode UPC-E system 0 and UPC-A bar codes
2
Enable EAN bar code symbology
1
Enable Encoded 39 bar code symbology
1
Enable Plessey bar code symbology
3 2
Keep MOD 10 first check digit for Plessey symbology Enable ABC Codabar bar code symbology
0
Disable Code 11 bar code symbology
0
Disable Code 93 bar code symbology
1
Enable Code 128 bar code symbology
2
Enable Straight 2 of 5 bar code symbology
08
Set maximum length to 8 characters
01 08
Set minimum length to 1 character Set first fixed length to 8 characters
06
Set second fixed length to 6 characters
0
Disable Interleave 2 of 5 bar code symbology bbbb#
Keep current value
^9C
ST character 0x9C
Due to possible system fragmentation of a data stream, the “#” in Line 1, Column 2 should be the last character placed on the screen. This will ensure that all data is present before the extended command is parsed (removed). Table 7-7 lists the command. Other tables list options. Table 7-7 Scan Bar Code Parameters Line 1, Columns 2–3
7-16
Column Description
Character
2
Extended command
#
3
Scan command
S
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide