The text of a manual · part 21 of 28
TE 2000 3270 Terminal Emulation Programmer's Guide: Section 7: Extended Commands, pages 175 to 182
Pages 175 to 182 of 240, from TE 2000 3270 Terminal Emulation Programmer's Guide
The original document is the PDF (4.2 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 175
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
#F #P #G #H #V
Tone
#T
Scan
#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, place the data to be sent to the port 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). 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 D contains other hexadecimal values. TE 2000t 3270 Terminal Emulation Programmer’s Guide
7-1
Page 176
Extended Commands
SECTION 1
Table 7-1 describes the lines 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
Extended command Transmit and Receive 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 6400, 5020, 5055, 59XX, 17XX, 11XX: DTR flow control For 2415, 2425, 2435A, 2455, and 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
Return start character to host
23
Flag parity errors
P=Flag b=Do not flag
24--25
Receive timeout length
XX=Number of seconds the terminal waits for input from the RS-232 port before it sends a timeout error. Uses the 5-second default when field contains spaces
2 3 4 5 6 7 8
9
7-2
# 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 b=AID key is Enter (default). X=AID key character. See Table 7-2 (page 7-3) for 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
TE 2000t 3270 Terminal Emulation Programmer’s Guide
Page 177
Extended Commands
SECTION 7
Flow Control The Transmit command supports these types of flow control: RTS/CTS (6400, 5020, 5055, 59XX, 17XX, 11XX) DTR/DSR (59XX) " 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 Terminal, DTR is normally low and is raised to indicate that the terminal is prepared for an RS-232 data exchange. " "
XON/XOFF flow 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
AID Key Character
Enter Clear F1 F2 F3 F4 F5 F6 F7
F8 F9 F10 F11 F12 F13 F14 F15 F16
F17 F18 F19 F20 F21 F22 PA1 PA2 PA3 b 7 A B C D E F G
H I J K L M N O P
Q R S T U V Y Z ,
TE 2000t 3270 Terminal Emulation Programmer’s Guide
7-3
Page 178
Extended Commands
SECTION 7
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 extended command status. The codes are listed in this chart. Code Description 0 1 2 3
Good status, transaction complete. Not enough memory. Or, incorrect setting for speed, number of data bits, number of stop bits, or flow control timeout. No delimiter (#) on data stream. Timeout while using CTS flow control (6400, 5020, 5055, 59XX, 17XX, 11XX)
Column (None) 4, 6, 7, 11--12 (None) (None)
Timeout while using DTR flow control (6400, 5020, 5055, 59XX, 17XX, 11XX) (None) Timeout while using XON/XOFF flow control. (None) Improper return field. (None) Hexadecimal value is outside the range of 00--0F. 15--16, 19--20 Error in AID code. (None) Incorrect setting for maximum characters to receive. 13--14 Incorrect setting for delimiter character. 15--16 Incorrect setting for number of delimiter characters. 17--18 Incorrect setting for CTS, DTR, or XON/OFF flow control. 8, 9, 10 Incorrect setting for start character. 19--20 Incorrect setting for data parity. 5, 22 Timeout. (None) Overrun of UART receive register; an error from the RS-232 device. (None) Data parity or framing error. (None) 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). 4 5 6 7 8 9 A B C D E f/F* o/O* p/P* R
7-4
TE 2000t 3270 Terminal Emulation Programmer’s Guide
Page 179
Extended Commands
SECTION 7
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
Description
1 2 3 4 5 6 7 8 b # F 4 N 8 1 0
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.
9 10 11--12 13 14--15 16--17 18--19 20--21 22 23 24--25
0 0 00 b 50 0A 01 02 b b 10
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.
Transmit Only On RS-232 Port (#P) Use the Transmit Only On RS-232 Port extended command to 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 “#” (pound symbol). 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. TE 2000t 3270 Terminal Emulation Programmer’s Guide
7-5
Page 180
Extended Commands
SECTION 7
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 3278 unit with a 24-line by 80-column display and that “b” indicates a 1-byte space. The display buffer position refers to the same buffer but with a linear array ranging from 0--1919. Note that “b” indicates a 1-byte space. Table 7-3 Transmit Only Characters Line 1, Columns 2--12 Column Description
Character
2 3 4 5 6 7 8
# 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
9 10 11--12 13
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 6400, 5020, 5055, 59XX, 17XX, 11XX DTR flow control XON/XOFF flow control Flow control timeout value Return AID key
0=Disable; 1=Enable 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
Flow Control Transmit Only supports RTS/CTS, DTR/DSR, and XON/XOFF. For descriptions, see page 7-3.
7-6
TE 2000t 3270 Terminal Emulation Programmer’s Guide
Page 181
Extended Commands
SECTION 7
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 the [ENTER] key to return the value to the host. Use the Start Field order to return a code for this operation. The following chart lists return codes. 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, 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 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
Example of Transmit Only The following example and chart show what would be sent to a terminal to cause data to be transmitted. Note that “b” indicates a 1-byte space. Following the example is an explanation of Line 1. Column 1
Line 1
Column 11 b#P3N81bb005A This is data to send.#
Line 2
Column Character
Description
Column Character
Description
7
1
One stop bit
# P 3 N
This column typically contains a space Extended command Transmit Only command 4800 baud No data parity
8 9 10 11–12
0 0 0 05
8
Eight data bits
13
A
No CTS flow control No DTR flow control. No XON/XOFF flow control Flow control timeout is 5 seconds AID key is [F1]
1 b
2 3 4 5 6
TE 2000t 3270 Terminal Emulation Programmer’s Guide
7-7
Page 182
Extended Commands
SECTION 7
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. Line 2, Column 1 is the start of the area on the screen where an input field may be placed for receive data. The host application must supply the input field for the data received on the RS-232 port. The host can place the input field anywhere on the screen except the position for the return status field. Table 7-4 describes the line and columns where characters must appear, and their meanings. Note that “b” indicates a 1-byte space. Table 7-4 Receive Only Characters Line 1, Columns 2--24 Column Description 2 3 4 5 6 7 8--12 13
Extended command Receive Only On RS-232 Port command Speed (bits per second) Data parity Data bits Stop bits Reserved 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
7-8
Character # 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 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, marks the 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 space 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 3270 Terminal Emulation Programmer’s Guide