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 23 of 35

5250 Terminal Emulation Programmer's Reference Guide: Section 8: Display Data Stream, pages 195 to 202

Pages 195 to 202 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 195

SECTION 8

"

"

"

" "

"

"

Display Data Stream

The screen attribute in the SF order is written into the location defined by the display address. The start-of-field address is set to the display address +1. The end-of-field address is set to the display address + the field length specified by the SF order. The ending screen attribute is written to the end-of-field +1. This is a “20.” The display address is incremented by 1. If this is an input field (one in which a field format word has been specified), a format table entry consisting of the field format and the FCWs is generated. In addition, if the SF order is rejected, the keyboard is locked and any outstanding AID byte is cleared. The format table is modified if the display address +1 is equal to the starting address of an input field that was previously defined. This happens as follows: -- The field format word of the previously defined field is overlaid with the new one. -- All FCWs and length parameters that were specified are ignored. Two bytes, however, are still required for the length even though no value check is performed on them. -- The field ending address is set equal to the field’s original ending address. -- The screen ending address is not rewritten. -- The defined field is not null filled. If any data characters follow the length field, they are written into the defined field.

5250 Terminal Emulation Programmer’s Reference Guide

8-37

Page 196

SECTION 8

"

Display Data Stream

Start of Header (SOH) Order Function. The SOH order notifies the wireless station that the next byte in the Write data steam contains a header order. The order specifies header information for the format table. When the controller receives this order, it first clears the format table, then inserts the contents of the SOH order. Restrictions. A parameter error is posted when the output data stream ends before the number of bytes needed have been sent or when the first byte of the order is not between 1 and 254. Format. The SOH order takes the following form: Function

Hex Code

Order

01

Length

07

Reserved

00

Reserved

00

Resequence

00

Error row

00

F keys

000000

Results. Because the length of this order varies, the first byte after the order code contains the number of bytes included. Length may range from 0 through 7 bytes. A length of 7 bytes enables or disables selected function keys designated by the bits in bytes 5 through 7. When bits are enabled, function keys return AID codes with input data. When bits are inhibited, or length is less than 7, function keys return AID codes but without input data. Table 8-10 shows the data-included switches for the function keys. In the table: 0 = enable, 1 = inhibit, and bit 0 is the most significant bit. 8-38

5250 Terminal Emulation Programmer’s Reference Guide

Page 197

SECTION 8

"

Display Data Stream

Table 8-10 Function Key Bit Switches Byte 5

Byte 6

Byte 7

Bit # Function Key Bit # Function Key Bit # Function Key 0

F24

0

F16

0

F8

1

F23

1

F15

1

F7

2

F22

2

F14

2

F6

3

F21

3

F13

3

F5

4

F20

4

F12

4

F4

5

F19

5

F11

5

F3

6

F18

6

F10

6

F2

7

F17

7

F9

7

F1

You can use resequencing to point to a field, other than the first, as the field you want sent to the host in response to a Read Input Fields or Read MDT Fields command (Table 8-11). If not zero, the FCW of the field is checked as each field is sent to see whether resequencing is enabled. If so, the FCW points to the next field to send. If the FCW has resequencing disabled (or no FCW exists for the field), the next defined field is sent and checked for resequencing. Table 8-11 Resequencing Bits

Description

0000 0000

Disable resequencing

XXXX XXXX

Number of first field to be transmitted to the host, in response to a Read Input Fields or Read MDT Fields Command

The error row may vary from 0 to 24. Row “00” signifies the default row, which is the last line for most 5250 devices. You can use other values to override the default row. 5250 Terminal Emulation Programmer’s Reference Guide

8-39

Page 198

SECTION 8

"

Display Data Stream

Transparent Data (TD) Order Function. The TD order lets you send data with any value to the wireless station display. Format. The order takes the following form: TD Order

Length (2 Bytes)

Data

Hex 10

Hex 0020

<data>

The 2-byte length field after the order tells how many bytes of data follow.

Asynchronous 5250 Prefixes Each asynchronous 5250 data stream command is preceded by a variable-length prefix. The first byte of the prefix contains the number of bytes in the prefix, not including the length byte. The length may be zero, which indicates an empty prefix. The second byte of the prefix (if the length is non-zero) must be either hex 40 or C0. Hex 40 indicates that the data in the rest of the message is LU-LU (normal 5250 commands). " C0 indicates that the rest of the message is SS-LU data (an SS message). SS messages cause the wireless station to enter the SS message state, where the only allowable keystroke is Reset. The SS message is a oneline message that is displayed on the wireless station’s status line until the Reset key is pressed. After hex 40 or C0, the 5250 prefix may contain one 5250 signal. A signal is a sequence of 5 bytes that tells the wireless station to perform a special operation. "

8-40

5250 Terminal Emulation Programmer’s Reference Guide

Page 199

SECTION 8

"

Display Data Stream

The wireless station supports the Signal command formats in the following chart. Hex Code

Description

C9 00 00 00 01

Signal operator (turns on the Message Waiting annunciator and sounds the audible alarm) Resets the Message Waiting annunciator

C9 00 00 00 05

A parameter error is posted when less data is in the message than indicated by the length byte. This causes a parameter error of “21.” If the wireless station encounters data it does not understand, it ignores the rest of the prefix.

System Messages and Parameter Errors The wireless station’s display reserves a line for status information. The status line can display system (non-local) information such as a message waiting from the host computer, help messages in response to the Help key, or the system request state of the wireless station. You can program the location of the status line through the Start of Header order. System codes can also appear on the status line. On RT1700 and RT5900 Radio Terminals, the system codes will blink. Table 8-12 lists the codes displayed when the stated condition occurs. Unless otherwise noted in the table, the wireless station’s Reset key restores the status line and returns to the keying mode in effect when the problem occurred.

5250 Terminal Emulation Programmer’s Reference Guide

8-41

Page 200

SECTION 8

"

Display Data Stream

Table 8-12 System Codes and Descriptions Code Description

8-42

0005

Attempt to enter data when not in a field.

0006

A key other than a data key or [ENTER] was pressed in the system request state.

0007

A mandatory entry field has not had data put into it.

0008

The field is alpha only, and an invalid key was pressed.

0009

The field is numeric only, and an invalid key was pressed.

0010

The field is signed numeric, and an invalid key was pressed.

0011

Data cannot be entered into the last byte of a signed numeric field.

0012

No room in field for insert. The field is full or on the last byte.

0013

Cannot leave field while in insert mode.

0014

Field is mandatory fill and cannot be exited until filled.

0015

Mod 10 or Mod 11 check has failed on field.

0016

Field error: Cannot be used in field that is not signed numeric.

0017

Attempt to use [FIELD EXIT] key in unfilled, mandatory fill field.

0018

Only a nondata key can be used to exit this field; for example, [FIELD EXIT].

0019

[DUP] key not allowed in this field.

0020

Cannot use AID-generating key to exit signed numeric or right-adjusted field. Must use [FIELD EXIT].

5250 Terminal Emulation Programmer’s Reference Guide

Page 201

SECTION 8

"

Display Data Stream

Table 8-12 (Continued) System Codes and Descriptions Code Description 0021

Cannot exit a mandatory enter field without entering data.

0023

Invalid hex value entered.

0026

The [FIELD--] key was pressed, but the last character of the field was not 0--9.

0099

An invalid key was pressed before the wireless station was in session. Only [SYS REQ] is allowed.

C00

An invalid 5250 command was received. This sequence of bytes is sent to the host: 01 10 03 01 01.

PXX

System code where “XX” is the parameter error (described below).

When a 5250 command contains invalid parameters, system code “PXX” appears on the bottom line of the display. On RT1700 and RT5900 Radio Terminals, the system code will blink. The “XX” in the system code indicates the type of parameter error. The message sent to the host is: 01 10 05 01 XX, where “XX” is the same parameter error that was put in the wireless station’s display. The parameter errors are a subset of the 5250 data stream command set. Those errors supported by the wireless stations are listed in Table 8-13.

5250 Terminal Emulation Programmer’s Reference Guide

8-43

Page 202

SECTION 8

"

Display Data Stream

Table 8-13 Parameter Errors Parameter Error Description P21 Premature end of data stream.

8-44

P22

A row or column specification is out of range.

P23

The ending address of the Repeat to Address order is less than the start address.

P25

A signed input field had a length of 1. It must be at least 2.

P26

An input field start address was less than a previously-defined input field start address.

P27

An invalid Restore Screen command was received.

P28

An attempt was made to define an input field past the end of the display.

P29

Format table overflow (too many input fields were defined).

P2A

An attempt was made to write data past the end of the display.

P2C

Invalid roll up or roll down parameters were received.

P30

An invalid attribute was received as part of a Start of Field order.

P87

A Mod 10 or Mod 11 input field was defined with a length greater than 33.

5250 Terminal Emulation Programmer’s Reference Guide