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 35

5250 Terminal Emulation Programmer's Reference Guide: Section 9: Extended Commands, pages 213 to 222

Pages 213 to 222 of 318, from 5250 Terminal Emulation Programmer's Reference Guide

The original document is the PDF (1.3 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 213

SECTION 9

"

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.

5250 Terminal Emulation Programmer’s Reference Guide

9-11

Page 214

SECTION 9

"

Extended Commands

Table 9-3 describes the line and columns where characters must appear, and their meanings. " NOTE:

Line and column information refers to a 24-line by 80-column display station. Table 9-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

Data parity. N 0 (zero) (Space) O E

6

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

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

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

9-12

5250 Terminal Emulation Programmer’s Reference Guide

Page 215

SECTION 9

"

Extended Commands

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

Column Character *

Description

7

Number of stop bits. 1 2

One. Two. CTS flow control.

0 1

Disable. Enable.

8

9

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. XON/XOFF flow control.

10 0 1

Disable. Enable. Flow control timeout value.

XX

Number of seconds.

11--12

13

Return AID key. (Space) X

AID key is Enter (default). AID key character. See Table 9-2 (page 9-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.

5250 Terminal Emulation Programmer’s Reference Guide

9-13

Page 216

SECTION 9

"

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.

9-14

5250 Terminal Emulation Programmer’s Reference Guide

Page 217

SECTION 9

"

Extended Commands

Code

Description

Column

0

Good status, transaction complete.

(None)

1

4, 6, 7, 11--12

2

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.

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

(None)

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.

5250 Terminal Emulation Programmer’s Reference Guide

9-15

Page 218

SECTION 9

"

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 11

Column 1

Line 1 b#P3N8100005A This is data to send.#

Line 2

Column Character

9-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].

5250 Terminal Emulation Programmer’s Reference Guide

Page 219

SECTION 9

"

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

5250 Terminal Emulation Programmer’s Reference Guide

9-17

Page 220

SECTION 9

"

Extended Commands

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

Column Character *

Description

5

Data parity. N 0 (zero) (Space) O E

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

7 8

Seven. Eight.

6

7

Number of stop bits.

8

1 2 (Space)

One. Two. Reserved (ignored by wireless station).

9

(Space)

Reserved (ignored by wireless station).

10

(Space)

Reserved (ignored by wireless station).

11--12

(Spaces)

Reserved (ignored by wireless station).

13

Return AID key. (Space) X

14--15

AID key is Enter (default). AID key character. See Table 9-2 (page 9-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.

9-18

5250 Terminal Emulation Programmer’s Reference Guide

Page 221

SECTION 9

"

Extended Commands

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

Column Character *

Description

16--17

Delimiter character. AA

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

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

18--19

20--21

Start character. AA

Hexadecimal ASCII code for start character. Range is 00--99. Default of 00 implies no start character. Return start character to host.

F (Space)

Return character. Do not return character. Flag parity errors.

P (Space)

Flag. Do not flag. Receive timeout length.

22

23

24--25 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.

5250 Terminal Emulation Programmer’s Reference Guide

9-19

Page 222

SECTION 9

"

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

9-20

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.

5250 Terminal Emulation Programmer’s Reference Guide