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 33

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

Pages 216 to 224 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 216

SECTION 9 "

Extended Commands

Following is an example of data transmitted and received on the wireless station’s RS-232 port. A space and “#” character start and end the data.

9-10

Column

Character

Description

1

(Space)

2

#

This column typically contains a space. Extended command.

3

F

Transmit and Receive command.

4

4

9600 baud.

5

N

No parity.

6

8

Eight data bits.

7

1

One stop bit.

8

0

No CTS flow control.

9

0

No DTR flow control.

10

0

No XON/OFF flow control.

11--12

00

No flow control timeout value.

13--14

50

15--16

0A

17--18

01

Receive a maximum of 50 characters. Delimiter character is 0A hexadecimal (line feed). Data will be sent to host after one delimiter character has been received.

19--20

02

21

(Space)

22

(Space)

23--24

10

Start character is 02 hexadecimal (STX). Start character will not be returned. Do not flag parity errors. Receive timeout length is 10 seconds.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 217

SECTION 9

"

Extended Commands

Transmit Only On RS-232 Port (#P) The Transmit Only On RS-232 Port extended command lets the wireless station send information to a slaved RS-232 device, such as a printer or bar code printer. The command uses the RS-232 communications port to send data to the device. The wireless station checks data from the host computer for a transmit sequence, then sends the requested data. The host computer signals the wireless station for a transmit command by inserting the characters “#P” into the display at Line 1, Columns 2 and 3. Characteristics of the transmission immediately follow the #P command. When constructing a Transmit Only 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 “#.” 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). Control characters 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 takes the form of ASCII characters. For nondisplayable ASCII characters, you may insert the characters “=yy,” where “yy” is the hexadecimal representation of the output byte. Table 9-2 lists columns in which characters must appear.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-11

Page 218

SECTION 9 "

Extended Commands

Line 1, Columns 2- 12 Column Character *

Table 9-2 Transmit Only Characters Description

2

#

Extended command.

3

P

Transmit Only 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) O E

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

7 8

Seven. Eight.

6

7

Number of stop bits. 1 2

8

One. Two. CTS flow control.

0 1

Disable. Enable.

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

9-12

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 219

SECTION 9

"

Extended Commands

Table 9-2 (Continued) Transmit Only Characters

Line 1, Columns 2- 12 Column Character * 9 DTR flow control. 0 1

Disable. Enable. 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. XON/XOFF flow control.

10 0 1 11--12

Description

Disable. Enable. Flow control timeout value.

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

Flow Control Transmit Only 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. 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. For the wireless station, DTR is normally low and is raised to indicate the wireless station is prepared for an RS-232 data exchange. VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-13

Page 220

SECTION 9 "

Extended Commands

Return Codes for Transmit Only The Transmit Only return code is the status sent to the host computer. The wireless station returns the extended command’s status to the host computer in the following format: \\X<CR> where “X” is the return code listed in the following chart. The wireless station simulates the [Enter] key to return the code to the host. Code

Description

Column

0

Good status, transaction complete.

(None)

1

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

4, 6, 7, 11--12

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

(None)

6

Improper return field.

(None)

C

Incorrect setting for CTS flow control, DTR flow control, or XON/OFF flow control.

8, 9, 10

E

Incorrect setting for data parity.

5 f*

Timeout; no acknowledgment was received from the RD5500 Remote Display.

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

(None)

o/O *

Overrun of UART receive register.

(None)

*

9-14

An uppercase letter indicates an error from the RS-232 device. A lowercase letter indicates an error from the RD5500 Remote Display.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 221

SECTION 9

"

Extended Commands

Examples of Transmit Only 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 mark data, all of 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

^9F#P3N8100005This is data to 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 b#P3N8100005 This is data to send.#

Line 2

Following is an example of data transmitted on the wireless station’s RS-232 port. A space and “#” character start and end the data. VT220/ANSI Terminal Emulation Programmer’s Reference Guide

9-15

Page 222

SECTION 9 "

Extended Commands

Column Character

Description

1

(Space)

This column typically contains a space.

2

#

Extended command.

3

P

Transmit Only command.

4

3

4800 baud.

5

N

No data parity.

6

8

Eight data bits.

7

1

One stop bit.

8

0

No CTS flow control.

9

0

No DTR flow control.

10

0

No XON/XOFF flow control.

11--12

05

Flow control timeout is 5 seconds.

Receive Only On RS-232 Port (#G) The Receive Only On RS-232 Port extended command provides a way to use the RS-232 port on the wireless station to collect data. A scale is one example of a use for this command. The host computer sends “#G” characters to alert the wireless station for activity on the port. Table 9-3 lists columns in which characters must appear.

Line 1, Columns 2- 24 Column Character *

Table 9-3 Receive Only Characters Description

2

#

Extended command.

3

G

Receive Only On RS-232 Port command.

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

9-16

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 223

SECTION 9

Description

4

Speed (bits per second).

5

Extended Commands

Table 9-3 (Continued) Receive Only Characters

Line 1, Columns 2- 24 Column Character *

1 2 3 4 5 6

"

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

N 0 (zero) (Space) O E 6

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

7 8 7

Seven. Eight. Number of stop bits.

1 2

One. Two.

8

(Space)

Reserved (ignored by wireless station).

9

(Space)

Reserved (ignored by wireless station).

10

(Space)

Reserved (ignored by wireless station).

11--12

(Spaces)

Reserved (ignored by wireless station).

* 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-17

Page 224

SECTION 9 "

Extended Commands

Table 9-3 (Continued) Receive Only Characters

Line 1, Columns 2- 24 Column Character *

Description

13--14

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 17--18

Hexadecimal ASCII code which marks the end of valid data to be received. Range is 00--7E. Default is 00. Number of delimiter characters.

XX 19--20

Delimiter characters received before transmitting return code to host. Range is 00--99. Default is 00. Start character.

AA 21

Hexadecimal ASCII code for start character. 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 this 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-18

VT220/ANSI Terminal Emulation Programmer’s Reference Guide