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

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

Pages 177 to 185 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 177

SECTION 8

"

Display Data Stream

Results. The following conditions govern the Roll command: " "

" NOTE:

Lines vacated due to the Roll are not cleared to nulls. Format table is not changed (could cause bizarre results).

If display does not conform to the format table, roll should not be done.

Rolled over data is lost. " The lines rolled out of the area are lost (cannot be rolled back onto the screen). " The state of the keyboard is not affected. " Pending AID bytes are not affected. " The following conditions cause parameter errors: -- A top line of zero. -- A top line greater than or equal to the display length. -- A bottom line of zero. -- A bottom line greater than the display length. -- A top line greater than or equal to the bottom line. -- A roll area greater than the bottom line minus the top line. A scroll distance of zero has no effect on the display. "

Write Error Code Command Function. The Write Error Code command forces the wireless station into the prehelp state (the same state the wireless station enters when the operator makes a keying error). Restrictions. A Write Error Code clears any outstanding AID requests. The wireless station rejects the Write Error Code command if it is in the prehelp, system request, or SS messages state. Format. The command may take any of the following forms: 5250 Terminal Emulation Programmer’s Reference Guide

8-19

Page 178

SECTION 8

" NOTE:

"

Display Data Stream

Headings in brackets indicate you can omit the individual field. However, you may not omit both fields. You must provide either an Insert Cursor order or error message to avoid an error condition.

ESC Hex 04

Write Error Code Command Hex 21

Insert Cursor Order Position cursor

ESC Hex 04

Write Error Code Command Hex 21

Error Message <message text>

ESC Hex 04

Write Error Code Command Hex 21

Insert Cursor Error Message Order Position cursor <message text>

The Insert Cursor (IC) order may also be embedded in the error message. Results. You can use the IC order to place the cursor at the beginning of the field where the error occurred. This helps the operator find the source of the error. The IC order does not affect where the error message is written. The wireless station writes only the first 78 bytes of the error message to the error line. If the error line is already used for error presentation, the wireless station saves data on the error line and restores it after the operator presses the Reset key. When the operator presses the Help key (prehelp error state only) in response to the error condition, characters from columns 2, 3, 4, and 5 of the error line are returned to the host system in a packed form and sent as a Signal command.

8-20

5250 Terminal Emulation Programmer’s Reference Guide

Page 179

SECTION 8

"

Display Data Stream

These characters form an index code that elicits a user-generated description of the error for the operator. Prehelp error state is selected for the keyboard. " Input Inhibited annunciator is on. " Insert mode and Insert annunciator are cleared. " Command, dead key diacritic, and hex modes are cleared. " Cursor is blinking. " The line in the format table header defined as an error line is saved. " Cursor moves to the location specified by the IC order. If no IC order is given, the cursor does not move. " All characters (except IC order) found between the command byte and the end of the chain or next ESC are written on the error line. If the data exceeds 80 characters, an error occurs. " All outstanding AID bytes are cleared. " When the operator presses [HELP], the controller places a nonblink high intensity attribute in column 1 of the error line, replacing anything that was previously there. " The locked state of the keyboard is cleared if the keyboard was locked and the wireless station was not in a posthelp error state. This allows the operator to release the keyboard by pressing the Reset key. The following conditions cause parameter errors: "

" " "

Neither an IC order nor data follows the command. Invalid IC order. More data than 80 bytes is specified.

5250 Terminal Emulation Programmer’s Reference Guide

8-21

Page 180

SECTION 8

"

Display Data Stream

Write to Display (WTD) Command Function. The WTD command does the following: "

Modifies the format table and display buffer contents.

Governs modified data tag (MDT) flags and Message Waiting annunciator. " Nulls nonbypass fields. " Controls keyboard lock and cursor blink. Restrictions. This command is rejected if the display is in a prehelp error, posthelp error, system request, or SS message state. "

If the display supports a separate message line, and the message line is selected, then only system request or SS message state result in a contention state error. If the error line is in use, however, and the WTD attempts to redefine the error line (using Start of Header byte 4), a negative response is generated. Format. The WTD command takes either of the following forms.

Hex 04

WTD Command Hex 11

Orders CC Byte 1 CC Byte 2 or Data Hex 00 Hex 13 <orders>

Hex 04

Hex 11

Hex 00

ESC

Hex 13

<data>

Notes. CC Byte 1 and CC Byte 2 are the write control characters. CC Byte 1 may do the following: "

Clear the master MDT flag and reset the MDT flags.

Null all appropriate nonbypass fields. CC Byte 2 sets the following: "

8-22

"

Cursor blink

"

Keyboard lock

5250 Terminal Emulation Programmer’s Reference Guide

Page 181

SECTION 8

Display Data Stream

"

Alarm " Message Waiting annunciator Orders are described in detail later in this section. Any character that is not an order and not associated with an order is considered data, and is written on the screen at the current display address. The address is then incremented by 1 for each character written. These characters should be hex 00, hex 1C, or above hex 1F, so there is no conflict with the codes reserved for orders. "

Results. If the WTD command changes the format table, the keyboard remains locked until specifically unlocked by CC Byte 1 or a subsequent WTD command. See Table 8-3 to determine the appropriate command for your particular combination of needs. To select a command, check the body of the table for the row showing the desired combination of conditions. Then refer to the left-most column to find the corresponding hex code. Table 8-3 Write to Display Control Byte 1

Hex Reset Pending AID, Code & Lock Keyboard 00 20 40 60 80 A0 C0 E0

· · · · · · ·

Clear Master MDT & Reset MDT Flags Nonbypass Fields All

Null All Appropriate Nonbypass Fields Field with MDT On All

· · · · ·

· · ·

·

5250 Terminal Emulation Programmer’s Reference Guide

8-23

Page 182

SECTION 8

"

Display Data Stream

Table 8-4 describes bit positions for CC byte 2. The most significant bit is 7; the least significant bit is 0. Table 8-4 Write to Display Control Byte 2 Bit Position Description 7

Always 00

6

0 = Cursor moves to default or IC order position when keyboard unlocks.* 1 = Cursor does not move when keyboard unlocks. 0 = No action, 1 = Reset blinking cursor

5 4

0 = No action, 1 = Set blinking cursor (if reset bit also = 1)

3

0 = No action, 1 = Unlock keyboard, reset pending AID bytes

2

0 = No action, 1 = Sound alarm

1

0 = No action, 1 = Reset Message Waiting annunciator

0

0 = No action, 1 = Set Message Waiting annunciator (even if bit 5 is set to 1)

* Exception: When a WTD is received when the keyboard is unlocked and the WTD does not modify the keyboard state.

The following conditions cause parameter errors: " "

Invalid orders. No data, orders, or CC follow the command byte.

Orders The following pages describe the host 5250 data stream orders the host can send to wireless stations on the radio data network. Orders govern format and data expectations within the WTD command (page 8-22). 8-24

5250 Terminal Emulation Programmer’s Reference Guide

Page 183

SECTION 8

"

Display Data Stream

The host application can include wireless station orders in the WTD command, either alone or intermixed with display data. The wireless station executes orders sequentially. The wireless station does not store orders in the display buffer with other data in the data stream. Five buffer control orders position, define, and format data written into the buffer, erase selected unprotected data in the buffer, and reposition the cursor. A sixth order, Transparent Data, provides a way to write transparent data to the display. Table 8-5 lists orders and their hex codes. Table 8-5 Write to Display Command Orders Command Insert Cursor Move Cursor Repeat to Address Set Buffer Address Start of Field Start of Header Transparent Data

Hex Code 13 14 02 11 1D 01 10

Insert Cursor (IC) Order Function. The IC order: "

"

" NOTE:

Sets the system insert cursor (IC) address to the location specified by the 2 bytes that follow the order when it is included in the WTD command, or Moves the cursor to the specified address without affecting the system IC address when it is included in the Write Error Code command. Byte 1 gives the row address and byte 2 gives the cursor address.

If multiple IC orders appear in the Write data stream, the last one encountered is used in subsequent operations. 5250 Terminal Emulation Programmer’s Reference Guide

8-25

Page 184

SECTION 8

"

Display Data Stream

Restrictions. A parameter error is posted when: " There are fewer than 2 bytes following the order. " The row address equals 0 or is greater than 24. " The column address equals 0 or is greater than 80. Format. The order takes the following form: Insert Cursor Order Row Address

Column Address

Hex 13

Hex 01

Hex 01

Results. When the order is used in the WTD command, the cursor is not immediately moved; the address is saved for later use. The cursor is moved when the entire WTD is completed. When the order is used in the Write Error Code command, the cursor is moved to the address given in the IC order and does not affect the system IC address. The cursor exits the field regardless of the type and does not perform any field checks. For example, it does not check for a filled field for a field specified as mandatory fill. You can use the IC order in the Write Error Code command to tell the wireless station operator where an error has occurred. Maximum row and column addresses are determined by the character size selected through the wireless station’s firmware.

Move Cursor (MC) Order MC order enables the host to move the cursor to a specified position without modifying the home address, and without regard to the keyboard’s state. Format. The order takes the following form:

8-26

MC Order

Row Address

Column Address

Hex 14

1 byte

1 byte

5250 Terminal Emulation Programmer’s Reference Guide

Page 185

SECTION 8

"

Display Data Stream

If the WTD data stream contains multiple IC or MC orders, the last IC or MC order determines the cursor position. The IC order negates any previously coded MC orders and the MC order negates any previously coded IC orders, with the exception that the last IC order establishes home position. To set the home position and then move the cursor, code the IC order, and then the MC order. WTD control character values do not affect the MC order, including the move cursor flag. See Table 8-4 on page 8-24 for more information.

Repeat to Address (RA) Order Function. The RA order stores a specified alphanumeric or null character in all buffer locations starting at the current buffer address and ending on the specified stop address. This stop address and the character to repeat are identified by the 3 bytes immediately following the RA order in the Write data stream. You can use RA orders to fill an area of the display. Restrictions. A parameter error is posted when: " " "

" NOTE:

Fewer than 3 bytes follow the order. A row address equals 0 or is greater than 24. The specified ending address is less than the current display address.

Although any character can be repeated, avoid using hex 11 (Set Buffer Address order), because this value is used as the delimiter between the fields sent in response to the Read MDT Fields command.

Results. The character is repeated from the current display address through the ending display address specified. The current display address is then updated to the value of the last position +1.

5250 Terminal Emulation Programmer’s Reference Guide

8-27