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 22 of 32

3270 Terminal Emulation Programmer's Reference Guide: Section 10: Extended Commands, pages 199 to 208

Pages 199 to 208 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 199

SECTION 10

"

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. 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 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-3 describes the line and columns where characters must appear, and their meanings.

3270 Terminal Emulation Programmer’s Reference Guide

10-11

Page 200

SECTION 10

"

Extended Commands

" NOTE:

The line and column information refer to a 3278 unit with a 24-line by 80-column display. The display buffer position refers to the same buffer but with a linear array ranging from 0--1919. Table 10-3 Transmit Only Characters

Line 1, Columns 2--12

Column Character *

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 6

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

7 8

Seven. Eight.

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

10-12

3270 Terminal Emulation Programmer’s Reference Guide

Page 201

SECTION 10

"

Extended Commands

Table 10-3 (Continued) Transmit Only Characters Line 1, Columns 2--12

Column

Character *

7

Description Number of stop bits.

1 2 8

One. Two. CTS flow control.

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

AID key is Enter (default). AID key character. See Table 10-2 (page 10-7) for return AID key characters.

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

Page 202

SECTION 10

"

Extended Commands

Flow Control Transmit Only 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. For the wireless station, DTR is normally low and is raised to indicate the wireless station is prepared for an RS-232 data exchange.

Return Codes for Transmit Only The wireless station 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.

10-14

3270 Terminal Emulation Programmer’s Reference Guide

Page 203

SECTION 10

"

Extended Commands

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)

8

Error in AID code.

(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 Dis- (None) play (not the expected 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.

3270 Terminal Emulation Programmer’s Reference Guide

10-15

Page 204

SECTION 10

"

Extended Commands

Example of Transmit Only The following example and chart show what would be sent to the wireless station to cause data to be transmitted. A “b” indicates a space. Following the example is an explanation of Line 1. Column 1

Line 1

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

Line 2

Column Character

10-16

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.

13

A

AID key is [F1].

3270 Terminal Emulation Programmer’s Reference Guide

Page 205

SECTION 10

"

Extended Commands

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. 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 10-4 describes the line and columns where characters must appear, and their meanings. Table 10-4 Receive Only Characters Line 1, Columns 2--24

Column Character *

Description

2

#

Extended command.

3

G

Receive Only On RS-232 Port command.

4

Speed (bits per second). 1 2 3 4 5 6

1200. 2400. 4800. 9600. 19200. 38400.

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

Page 206

SECTION 10

"

Extended Commands

Table 10-4 (Continued) Receive Only Characters Line 1, Columns 2--24

Column

Character *

Data parity.

5 N 0 (zero) (Space) O E 6

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

7 8 7

8--12

Description

Seven. Eight. Number of stop bits.

1 2

One. Two.

(Space)

Reserved (ignored by wireless station).

13

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.

10-18

3270 Terminal Emulation Programmer’s Reference Guide

Page 207

SECTION 10

"

Extended Commands

Table 10-4 (Continued) Receive Only Characters Line 1, Columns 2--24

Column

Character *

Description Delimiter character.

16--17 AA 18--19

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 20--21

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

AA 22

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

3270 Terminal Emulation Programmer’s Reference Guide

10-19

Page 208

SECTION 10

"

Extended Commands

Return Codes for Receive Only Line 24, Column 1 is the return status byte. The host application defines the 1-byte return status field location. The following chart lists return status codes. Code

Description

Column

0

Good status, transaction complete.

(None)

1

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

4, 6, 7

2

No delimiter (#) on data stream.

(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

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 Dis- (None) play (not the expected character; no character error was detected).

o/O *

Overrun of UART receive register.

*

10-20

(None)

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

3270 Terminal Emulation Programmer’s Reference Guide