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 33

VT220/ANSI Terminal Emulation Programmer's Reference Guide: Section 9: Extended Commands, pages 207 to 215

Pages 207 to 215 of 276, from VT220/ANSI Terminal Emulation Programmer's Reference Guide

The original document is the PDF (1.4 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 207

Section 9

Extended Commands "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Overview Extended commands govern abilities unique to wireless stations. You can use extended commands to print, scan bar codes, and send communications over the wireless station’s RS-232 port. You can also use extended commands to set wireless station parameters from the host computer. The host computer sends the commands to the wireless station. The following chart lists the extended commands. Name

Characters

Transmit and Receive On RS-232 Port

#F

Transmit Only On RS-232 Port

#P

Receive Only On RS-232 Port

#G

Set Parameters

#H

Return Version

#V

Tone

#T

Scan Bar Code Parameters

#S

To use extended commands, you must enable the extended command feature for the wireless station’s firmware. The following chart describes how to access the firmware’s main menu.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-1

Page 208

SECTION 9 "

Extended Commands

Series

Main Menu

RT1100 and RT1700

[GOLD]+[BLACK]

RT5900

[BROWN]+[SPACE]

PEN*KEYÒ 6400

[GOLD]+[BLUE]

PEN*KEY 6500

[GOLD]+[M]

To enable extended commands, select the following options in this order: SET-UP PARMS, PROTOCOL OPTS, EXTENDED CMDS, ENABLED.

Transmit and Receive On RS-232 Port (#F) Use the Transmit and Receive On RS-232 Port extended command to transmit and receive data on the wireless station’s RS-232 port. The command uses “#F” characters to request communication on the port. When constructing a Transmit and Receive command, the data to be sent should be placed at Line 2, Column 1. The data must be less than 1840 bytes in length (after “=yy” compression). The last character must be a “#” (pound sign). The wireless station sends the data to the RS-232 port until it detects a “#” character. 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 assure that all data is present before the extended command is parsed (removed).

9-2

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 209

SECTION 9

"

Extended Commands

Control character sequences for mnemonics APC (application program command) and ST (string terminator) can also start and end data. The last data character must be a “#” (pound sign). The wireless station sends the data to the RS-232 port until it detects a “#” character and the string terminator sequence. The output stream appears in ASCII character format. For bytes that are not displayable ASCII characters, you may insert the characters “=yy,” where “yy” is the hexadecimal representation of the output byte. Table 9-1 lists columns in which characters must appear.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-3

Page 210

SECTION 9 "

Extended Commands

Table 9-1 Transmit and Receive Characters

Line 1, Columns 2- 24 Column Character * Description 2

#

Extended command.

3

F

Transmit and Receive On RS-232 Port command.

4

Speed (bits per second). 1 2 3 4 5 6

5

1200. 2400. 4800. 9600. 19200 38400 Data parity.

N 0 (zero) (Space) E O 6

None. None. None. Even. Odd. Number of data bits.

7 8 7

Seven. Eight. Number of stop bits.

1 2

One. Two.

* Some wireless stations do not support some characters. Refer to the wireless station’s user guide for supported characters and options.

9-4

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 211

SECTION 9

"

Extended Commands

Table 9-1 (Continued) Transmit and Receive Characters

Line 1, Columns 2- 24 Column Character * Description 8

CTS flow control. 0 1

9

Disable. Enable. DTR flow control.

0 1 10

Disable. (To avoid improper operation of the RT3210 Radio Terminal and the remote display, DTR flow control should be set to Disable when a remote display is in use.) Enable. XON/XOFF flow control.

0 1 11--12

Disable. Enable. Flow control timeout value.

XX 13--14

Number of seconds. Maximum characters to receive.

dd (or) Xd¼dX 15--16

“dd” is a decimal digit from 00--99. Default is 99. “X” is an uppercase literal. “d¼d” is any number of decimal digits from 0--2000 inclusive. Default is 99. Delimiter character.

AA

Hexadecimal ASCII code that marks the end of data to be received. Range is 00--7E. Default 00 implies no start character.

* Some wireless stations do not support some characters. Refer to the wireless station’s user guide for supported characters and options.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-5

Page 212

SECTION 9 "

Extended Commands

Table 9-1 (Continued) Transmit and Receive Characters

Line 1, Columns 2- 24 Column Character * Description 17--18

Number of delimiter characters. XX

19--20

Number of characters accepted before sending return code to host. Range is 00--99. Default of 00 implies no start character. Start character.

AA 21

Hexadecimal ASCII code. Range is 00--99. Default of 00 implies no start character. Return start character to host.

F (Space) 22

Return character. Do not return character. Flag parity errors.

P (Space) 23--24

Flag. Do not flag. Receive timeout length.

XX

Number of seconds the wireless station waits for input from the RS-232 port before it sends a timeout error. Uses a default of 5 seconds when field is filled with spaces.

* Some wireless stations do not support some characters. Refer to the wireless station’s user guide for supported characters and options.

9-6

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 213

SECTION 9

"

Extended Commands

Flow Control Transmit supports three types of flow control: CTS, DSR (RT5900 Series only), and DTR. Use CTS and DSR flow control lines to show XON/XOFF conditions from the output device. Also use them to prevent output when the wireless station has no output device. The DTR of the output device should connect to either the DSR or CTS lines. On the wireless station, DTR is normally low and is raised to indicate that the wireless station is prepared for an RS-232 data exchange. XON/XOFF is the same XON/XOFF flow control supported by most devices. The timeout value tells the wireless station how long to wait for the flow control handshake before returning a one byte error value.

Return Codes for Transmit and Receive The Transmit and Receive return code is the status sent to the host computer. The wireless station returns data and the extended command’s status to the host computer in the following format: \\X\CC\DATA<CR> or \\x\cccc\DATA<CR>

“X” is the return code listed in the following chart. “CC” or “CCCC” is the character count of the data returned. “CC” is 00--99. “CCCC” is 100--2000. “DATA” is the RS-232 data received from the RS-232 device attached to the wireless station (if any data was received). The wireless station simulates the [Enter] key to return the code to the host.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-7

Page 214

SECTION 9 "

Extended Commands

Code

Description

0 1

Column

Good status, transaction complete. (None) Not enough memory. Or, incorrect 4, 6, 7, 11--12 setting for speed, number of data bits, number of stop bits, or flow control timeout. 2 No delimiter (#) on data stream. (None) 3 Timeout while using CTS flow control. (None) 4 Timeout while using DTR flow control. (None) 5 Timeout while using XON/XOFF flow (None) control. 6 Improper return field. (None) 7 Hexadecimal value is outside the range 15--16, 19--20 of 00--0F. 8 Reserved. (None) 9 Incorrect setting for maximum charac- 13--14 ters to receive. A Incorrect setting for delimiter charac15--16 ter. B Incorrect setting for number of delim17--18 iter characters. 8, 9, 10 C Incorrect setting for CTS flow control, DTR flow control, or XON/OFF flow control. D Incorrect setting for start character. 19--20 E Incorrect setting for data parity. 5, 22 f/F * Timeout. (None) p/P * Data parity or framing error. (None) (None) R Syntax error from RD5500 Remote Display (not the expected character; no character error was detected). o/O * Overrun of UART receive register. (None) * An uppercase letter indicates an error from the RS-232 device. A lowercase letter indicates an error from the RD5500 Remote Display.

9-8

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 215

SECTION 9

"

Extended Commands

Examples of Transmit and Receive Extended command characters can be started by an APC sequence and ended by an ST sequence, or started by a space and ended by a “#” character.

APC and ST Sequences When control character sequences for APC and ST start and end data, all the data is on Line 1. A “#” character is before the sequence for ST at the end of the line. Control character sequences are not displayed, which results in a faster transmission rate. Also, the cursor position is not lost. The following example shows data started and ended by control character sequences. Sequences are prefixed by the notation “ ^ ” which represents “control.” Column 2

Column 11

Column 23

^9F#F4N8100000500A0102bb10This is data to send send.#^9C

Space and “#” Character The following example shows a space as the start of the data and a “#” character as the end. The data is on two lines. A “b” indicates a space. Column 1

Line 1

Column 11

Column 23 b#F4N8100000500A0102bb10 This is data to send.#

Line 2

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-9