The text of a manual · part 21 of 32
3270 Terminal Emulation Programmer's Reference Guide: Section 10: Extended Commands, pages 189 to 198
Pages 189 to 198 of 278, from 3270 Terminal Emulation Programmer's Reference Guide
The original document is the PDF (2.1 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 189
Section 10
Extended Commands "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Overview Extended commands govern abilities unique to wireless stations. You can use extended commands to print, set menu parameters for scanning, 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.
3270 Terminal Emulation Programmer’s Reference Guide
10-1
Page 190
SECTION 10
"
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 to the port 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). The wireless station 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.
10-2
3270 Terminal Emulation Programmer’s Reference Guide
Page 191
SECTION 10
"
Extended Commands
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. For example, if your printer requires a carriage return, you would insert “=0D.” You would insert “=0A” for a line feed. Appendix B contains other hexadecimal values. Table 10-1 describes the line and columns where characters must appear, and their meanings.
3270 Terminal Emulation Programmer’s Reference Guide
10-3
Page 192
SECTION 10
"
Extended Commands
Table 10-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.
10-4
3270 Terminal Emulation Programmer’s Reference Guide
Page 193
SECTION 10
"
Extended Commands
Table 10-1 (Continued) Transmit and Receive Characters Line 1, Columns 2--24
Column
Character *
Description CTS flow control.
8 0 1 9
Disable. Enable. 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.
10
XON/XOFF flow control. 0 1
11--12
Disable. Enable. Flow control timeout value.
XX 13
Number of seconds. Return AID key.
(Space) X 14--15
AID key is Enter (default). AID key character. See Table 10-2 (page 10-7) for return AID key characters. Maximum characters to receive.
(Space) dd (or) Xd…dX
Default. “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.
* Some wireless stations do not support some characters. Refer to the wireless station’s user guide for supported characters and options.
3270 Terminal Emulation Programmer’s Reference Guide
10-5
Page 194
SECTION 10
"
Extended Commands
Table 10-1 (Continued) Transmit and Receive Characters Line 1, Columns 2--24
Column
Character *
Description Delimiter character.
16--17 AA
18--19
Hexadecimal ASCII code that marks the end of data to be received. Range is 00--7E. Default 00 implies no start character. Number of delimiter characters.
XX
20--21
Number of characters accepted before sending return code to host. Range is 00--99. Default of 00 implies no start character. Start character.
AA 22
Hexadecimal ASCII code. Range is 00--99. Default of 00 implies no start character. Return start character to host.
F (Space) 23
Return character. Do not return character. Flag parity errors.
P (Space) 24--25
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.
10-6
3270 Terminal Emulation Programmer’s Reference Guide
Page 195
SECTION 10
"
Extended Commands
Flow Control Transmit supports the following three types of flow control: RTS/CTS " DTR/DSR (RT3210 and RT5900) " 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 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. 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.
Return AID Key Characters Table 10-2 lists the extended command AID keys and characters returned to the host. For example, if you want an F1 AID key, you would use “A” as the character. Table 10-2 Return AID Keys AID Key
Character
Enter
(Space)
Clear
7
F1
A
F2
B
F3
C 3270 Terminal Emulation Programmer’s Reference Guide
10-7
Page 196
SECTION 10
"
Extended Commands
Table 10-2 (Continued) Return AID Keys
10-8
AID Key
Character
F4
D
F5
E
F6
F
F7
G
F8
H
F9
I
F10
J
F11
K
F12
L
F13
M
F14
N
F15
O
F16
P
F17
Q
F18
R
F19
S
F20
T
F21
U
F22
V
F23
W
F24
X
PA1
Y
PA2
Z
3270 Terminal Emulation Programmer’s Reference Guide
Page 197
SECTION 10
"
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, 4, 6, 7, number of data bits, number of stop bits, or flow control 11--12 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 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 flow control, DTR flow control, 8, 9, 10 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) R Syntax error from RD5500 Remote Display (not the ex(None) pected 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. 0 1
3270 Terminal Emulation Programmer’s Reference Guide
10-9
Page 198
SECTION 10
"
Extended Commands
Example of Transmit and Receive The following example and chart show what would be sent to the wireless station to cause data to be transmitted and received. A “b” indicates a space. Column 1
Line 1
Column 11
Column 23 b#F4N8100000b500A0102bb10 This is data to send.#
Line 2
Column Character
10-10
1 2 3 4 5 6 7 8 9 10 11--12 13 14--15 16--17
(Space) # F 4 N 8 1 0 0 0 00 (Space) 50 0A
18--19
01
20--21
02
22 23 24--25
(Space) (Space) 10
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.
3270 Terminal Emulation Programmer’s Reference Guide