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 25 of 33

TE 2000 5250 Terminal Emulation Programmer's Guide: Section 7: Extended Commands, pages 203 to 210

Pages 203 to 210 of 270, from TE 2000 5250 Terminal Emulation Programmer's Guide

The original document is the PDF (4.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 203

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 the 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 the 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. Line 2, Column 1 begins the start of transmit data. The host application must set up the screen with a transmit field to locate the RS-232 port I/O data. the field can be anywhere on the screen, beginning at position 80). The host application must supply the receive field (for response from the RS-232 port to the host). The receive field can be anywhere on the screen except for the position allocated for the return status field. 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. For example, insert “=0D” if your printer requires a carriage return, or insert “=0A” for a line feed. Appendix B contains other hexadecimal values. TE 2000t 5250 Terminal Emulation Programmer’s Guide

7-1

Page 204

SECTION 7

Extended Commands

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

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 2415, 2425, 2435A, 2455, 248X: Reserved

# F

0=Disable; 1=Enable

10 11--12 13

For 5020, 5055, 59XX, 17XX, 11XX: DTR flow control For 6400, 2415, 2425, 2435A, 2455, 248X: Reserved XON/XOFF flow control Flow control timeout value Return AID key

14--15

Maximum characters to receive

16--17

Delimiter character

18--19

Number of delimiter characters

20--21

Start character

22 23 24--25

Return start character to host Flag parity errors Receive timeout length

2 3 4 5 6 7 8

9

7-2

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 b 0=Disable; 1=Enable XX=Number of seconds b=AID key is Enter (default); X=AID key character. Table 7-2 (page 7-3) has return AID key characters bb=Default; 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 RS-232 port before it sends a timeout error. Uses 5-second default when field contains spaces.

TE 2000t 5250 Terminal Emulation Programmer’s Guide

Page 205

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 DTR of the output device should connect to either the DSR or CTS lines. On the 59XX, 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 AID Key Characters Table 7-2 lists the extended command AID keys and characters returned to the host. For example, if you want an F1 AID key, use “A” as the character. Note that “b” indicates a 1-byte space. Table 7-2 Return AID Keys AID Key

Character

AID Key

Character

Enter Help Roll down/Page up Roll up/Page down Print Home Clear F1 F2 F3 F4 F5 F6 F7 F8 F9 b ) * + , . 7 A B C D E F G H I

F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24

J K L M N O P Q R S T U V W X

TE 2000t 5250 Terminal Emulation Programmer’s Guide

7-3

Page 206

SECTION 7

Extended Commands

Return Codes for Transmit and Receive 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 following chart lists the codes. 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 Error in AID code. (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, DTR, 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 (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-4

TE 2000t 5250 Terminal Emulation Programmer’s Guide

Page 207

SECTION 7

Extended Commands

Example of Transmit and Receive The following example and chart show what would be sent to a terminal to cause data to be transmitted and received. Note that “b” indicates a 1-byte space. Column 1

Line 1

Column 11

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

Line 2

Column Character

8 9 10 11--12 13 14--15 16--17 18--19 b # F 4 N 8 1 0 0 0 00 b 50 0A 01

20--21 22 23 24--25

02 b b 10

1 2 3 4 5 6 7

Description This column typically contains a space. Extended command. Transmit and Receive command. 9600 baud. No parity. Eight data bits. One stop bit. No CTS flow control. No DTR flow control. No XON/OFF flow control. No flow control timeout value. AID key is Enter. 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. Start character is 02 hexadecimal (STX). Start character will not be returned. Do not flag parity errors. Receive timeout length is 10 seconds.

TE 2000t 5250 Terminal Emulation Programmer’s Guide

7-5

Page 208

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). “#” must be the last character. The terminal sends the data to the RS-232 port until it detects a “#” character. Line 2, Column 1 begins the start of transmit data. The host application must set up the screen with a transmit field to locate the RS-232 port I/O data. The field can be anywhere on the screen, beginning at position 80. 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. For example, insert “=0D” if your printer requires a carriage return, or insert “=0A” for a line feed. Appendix D contains other hexadecimal values. Table 7-3 describes the line and columns where characters must appear, and their meanings. Note that the line and column information refers to a 24-line by 80-column display station. Note that “b” indicates a 1-byte space. Table 7-3 Transmit Only Characters Line 1, Columns 2--12

Column Character 2 3 4 5 6 7 8

8

10 11--12 13

7-6

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

Description # 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 b=AID key is Enter (default); X=AID key character. See Table 7-2 (page 7-3) for return AID key characters.

TE 2000t 5250 Terminal Emulation Programmer’s Guide

Page 209

SECTION 7

Extended Commands

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

Return Codes for Transmit Only The terminal puts the return code response in an input field in the display buffer at Line 24, Column 1. It simulates [ENTER] to return the value to the host. Use the Start Field order to return a code for this operation. Code

Description of return codes

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 stopbits, 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) 8 Error in AID code. (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 only to the 17XX Terminal.) 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

TE 2000t 5250 Terminal Emulation Programmer’s Guide

7-7

Page 210

SECTION 7

Extended Commands

Example of Transmit Only The following example and chart show what would be sent to a 6400, 5020, 5055, 59XX, 17XX, or 11XX Terminal to transmit data. Note that “b” indicates a 1-byte space. Column 1

Line 1

Column 11 b#P3N81bb005A This is data to send.#

Line 2

Column Character 1 2 3 4 5 6 7 8 9 10 11--12 13

7-8 b # P 3 N 8 1 0 0 0 05 A

Description of Line 1 This column typically contains a space. Extended command. Transmit Only command. 4800 baud. No data parity. Eight data bits. One stop bit. No CTS flow control. No DTR flow control. No XON/XOFF flow control. Flow control timeout is 5 seconds. AID key is [F1].

TE 2000t 5250 Terminal Emulation Programmer’s Guide