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

TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Section 7: Extended Commands, pages 215 to 222

Pages 215 to 222 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 215

Section 7

Extended Commands "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Extended commands govern abilities unique to terminals. You can use extended commands to transmit or receive data over the terminal’s RS-232 port, send information to an RS-232 device (such as a printer or bar code printer), or collect data. The following chart lists the commands. Name

Characters

Transmit and Receive On RS-232 Port Transmit Only On RS-232 Port Receive Only On RS-232 Port Set Parameters (supported on 6400, 5020, 5055, 59XX, 17XX, 11XX) Return Version Tone Scan

#F #P #G #H #V #T #S

To use extended commands, you must enable the extended command option through the TE configuration menus. See Section 4 for information about enabling the command on a terminal.

Transmit and Receive On RS-232 Port (#F) Use the #F extended command to transmit and receive data on the terminal’s RS-232 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, where “yy” is the hexadecimal representation of the output byte). The last character must be a “#” (pound sign). The terminal 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 assures that all data is present before the extended command is parsed (removed). There are two ways to send the #F extended command. The conventional method involves writing the command to the screen on line one, writing the data to be printed on the second line, then writing a “#” character on the first line to activate the print. The other method is to use the control characters APC (0x9F) and ST (0x9C) to encapsulate the command. Using the control characters method is faster since they are not written to the display. TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

7-1

Page 216

SECTION 7

Extended Commands

Conventional Method This is an example of Transmit and Receive using the conventional method. Note that the descriptions for the “This is the Data to be sent” command are listed under the control character sequence method. Command

Action

CSI 2J CSI 1;3H

Clears the screen. Move the cursor to top row, Column 3. Start the print command.

F4N8100005500A0102bb00

CSI 2;1HThis is the Data to be sent# Moves cursor to Row 2, Column 1 and sends the data to be printed CSI 1;2H# Move the cursor to top row, Column 2 and start the print job.

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. 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 terminal sends the data to the RS-232 port until it detects a “#” character and the string terminator sequence. Below are the descriptions of each group of characters. Note that “b” indicates a 1-byte space.

^9F#F4N8100005500A0102bb00This is the Data to be sent#^9C Data to send

^9F

APC character 0x9F

#F

Extended command for transmit and receive

4N81

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

000

Flow control options (disabled)

05

Flow timeout (5 seconds)

50

Maximum receive characters

0A

Delimiting character

01

Number of delimiting characters to wait for

02

Start character (STX)

b

Start character return (do not return start character)

b

Parity error flags (do not flag parity errors)

00

Receive timeout (use 5-second default)

Data to send

7-2

#

Data termination character

^9C

ST character 0x9C

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 217

SECTION 7

Extended Commands

The output stream appears in ASCII character format. For bytes that are not displayable ASCII characters, you may insert the “=yy” characters, where “yy” is the hexadecimal representation of the output byte. Table 7-1 describes the line and columns where characters must appear, and their meanings. Note that “b” indicates a 1-byte space. Table 7-1 Transmit and Receive Characters Line 1, Columns 2--24 Column Description

Character

10 11--12 13--14

Extended command Transmit and Receive on RS-232 Port command Speed (bits per second) Data parity Data bits Stop bits For 6400, 5020, 5055, 59XX, 17XX, 11XX: CTS flow control For 2415, 2425, 2435A, 2455, 248X: Reserved For 5020, 5055, 59XX, 17XX, 11XX: DTR flow control For 2415, 2425, 2435A, 2455, 248X, 6400: Reserved XON/XOFF flow control Flow control timeout value 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

2 3 4 5 6 7 8

9

# F 1=1200; 2=2400; 3=4800; 4=9600; 5=19200; 6=38400 N=None; 0 (zero)=None; b=None; E=Even; O=Odd 7=Seven; 8=Eight 1=One; 2=Two 0=Disable; 1=Enable b 0=Disable; 1=Enable b 0=Disable; 1=Enable XX=Number of seconds 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 the end of data to be received. Range: 00--7E. Default of 00 or bb implies no start character. XX=Number of characters accepted before sending return code to host. Range: 00--99. Default of 00 or bb implies no start character. AA=Hexadecimal ASCII code. 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 a 5-second default when field contains spaces.

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

7-3

Page 218

SECTION 7

Extended Commands

Flow Control The Transmit command supports these types of flow control: " RTS/CTS (6400, 5020, 5055, 59XX, 17XX, 11XX) " DTR/DSR (59XX only) " XON/XOFF Use CTS and DSR flow control lines to show XON/XOFF conditions from the output device. Also use them to prevent output when the terminal has no output device. The output device DTR should connect to either the DSR or CTS lines. On the 59XX Terminal, DTR is normally low and is raised to indicate that the terminal is prepared for an RS-232 data exchange. XON/XOFF is the same XON/XOFF flow control most devices support. The timeout value tells the terminal 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 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. X The return code listed in the following chart. CC or CCCC The character count of the data returned. 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. Code Description

Column

Good status, transaction complete. (None) Not enough memory. Or, incorrect setting for speed, number of data bits or stop 4, 6, 7, 11--12 bits, or flow control timeout. 2 No delimiter (#) on data stream. (None) 3 Timeout while using CTS flow control (6400, 5020, 5055, 59XX, 17XX, 11XX). (None) 4 Timeout while using DTR flow control (6400, 5020, 5055, 59XX, 17XX, 11XX). (None) 5 Timeout while using XON/XOFF flow control. (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 C Incorrect setting for CTS, DSR, or XON/OFF flow control. 8, 9, 10 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; an error from the RS-232 device. (None) p/P* Data parity or framing error. (None) R Syntax error from RD5500 Remote Display (not the expected character; no charac- (None) ter 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-4

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 219

SECTION 7

Extended Commands

Transmit Only On RS-232 Port (#P) The Transmit Only On RS-232 Port extended command lets the terminal send information to a slaved RS-232 device, such as a receipt printer or bar code printer. The command uses the RS-232 communications port to send data to the device. The terminal checks data from the host computer for a transmit sequence, then sends the requested data. The host computer signals the terminal 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 a “#” (pound sign). The terminal sends the data to the RS-232 port until it detects a “#” character.

Conventional Method This is an example of Transmit Only using the conventional method. Note that the descriptions for the “Data to send” command are listed under the control character sequence method. Command

Action

CSI 2J CSI 1;3HP5E72010008Data to send=0A=0D# CSI 1;2H #

Clears the screen. Moves the cursor to top row, Column 3 Moves the cursor to the beginning.

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 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. 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 terminal sends the data to the RS-232 port until it detects a “#” character and the string terminator sequence. Below are the descriptions of each group of characters.

^9P#P5E7201008Data to send=0A=0D#^9C ^9P #P 5E72 010 08 Data to send # ^9C

PC character 0x9F Extended command for transmit only 19200 baud, even parity, 7 data bits, 2 stop bits Enable DTR Flow control Wait up to 8 seconds for DSR to be returned Sending string with CR, LF Extended command terminating character ST character 0x9C TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

7-5

Page 220

SECTION 7

Extended Commands

The output stream takes the form of ASCII characters. For nondisplayable ASCII characters, you may insert the “=yy” characters, where “yy” is the hexadecimal representation of the output byte. Table 7-2 describes the line and columns where characters must appear, and their meanings. Note that “b” indicates a 1-byte space. Table 7-2 Transmit Only Characters Line 1, Columns 2--12 Column Description 2 3 4 5 6 7 8

8

10 11--12

Extended command Transmit Only On RS-232 Port command Speed (bits per second) Data parity Data bits Stop bits For 6400, 5020, 5055, 59XX, 17XX, 11XX: CTS flow control For 2415, 2425, 2435A, 2455, 248X: Reserved For 6400, 5020, 5055, 59XX, 17XX, 11XX: DTR flow control For 2415, 2425, 2435A, 2455, 248X: Reserved XON/XOFF flow control Flow control timeout value

Character # P 1=1200; 2=2400; 3=4800; 4=9600; 5=19200; 6=38400 N=None; 0 (zero)=None; b=None; O=Even; E=Odd 7=Seven; 8=Eight 1=One; 2=Two 0=Disable; 1=Enable b 0=Disable; 1=Enable b 0=Disable; 1=Enable XX=Number of seconds

Flow Control Transmit Only supports RTS/CTS, DTR/DSR, and XON/XOFF. For descriptions, see page 7-4.

7-6

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 221

SECTION 7

Extended Commands

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

Description

Column

Good status, transaction complete. (None) Not enough memory. Or, incorrect setting for speed, number of data bits, number 4, 6, 7, 11--12 of stop bits, or flow control timeout. 2 No delimiter (#) on data stream. (None) 3 Timeout while using CTS flow control (6400, 5055, 59XX, 17XX, 11XX). (None) 4 Timeout while using DTR flow control (6400, 5055, 59XX, 17XX, 11XX). (None) 5 Timeout while using XON/XOFF flow control. (None) 6 Improper return field. (None) C Incorrect setting for CTS, DTR, 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) (applies to the 17XX Terminal). o/O* Overrun of UART receive register. (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). (Applies 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

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

7-7

Page 222

SECTION 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 CSI 1;3HG3E81bbbbbX1000X03010202FP06 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. Note that “b” indicates a 1-byte space.

^9F#G3E81bbbbbX1000X03010202FP06^9C

7-8

^9F

APC character 0x9F

#G

Extended command for receive only

3E81

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

Reserved

X1000X

Receive 1000 bytes

03

Delimiting character (ETX)

01

One delimiting character

02

Start character (STX)

02

Number of start characters (2)

F

Return start characters

P

Flag parity errors

06

Receive all data within 6 seconds

^9C

ST character 0x9C

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide