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 24 of 33

TE 2000 5250 Terminal Emulation Programmer's Guide: Section 6: Display Data Stream, pages 195 to 202

Pages 195 to 202 of 270, from TE 2000 5250 Terminal Emulation Programmer's Guide

The original document is the PDF (4.4 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 6

Display Data Stream

FCWs (two bytes each) are optional. The user program can use the WTD command to send FCWs to the controller. When FCWs are used, they should follow the FFW of the SF order. An FCW encountered during modification of an existing format table entry is ignored. The LU does not accept an FCS of hex FFxx. Below are the valid FCWs and functions supported by the terminals. Value (Hex) 80nn 8101 8103 84nn B140 B1A0

Description Entry field resequencing. The “nn” specifies the next entry field in the sequence (hex 00 to 80). Magnetic stripe reader (MSR) entry field. MSR and selector light pen (SLP) entry field. Transparency entry field. The “nn” is any two digits. Self-check modulus 11 entry field. Self-check module 10 entry field.

The first FCW of any type is used; subsequent FCWs of the same type are ignored. The controller does not check to see if the FCWs are formatted correctly or if the requested function is installed. During subsequent command and keystroke processing, the controller detects and reports these errors to the host if the FCW is required. FCWs types are as follows. Resequencing Resequencing enables the controller to send the input fields to the host in any specified order. Resequencing is done by chaining input fields with FCWs that specify the desired order of transmission. The resequencing FCW takes the following format: Bits 0–1 2–7 8–15

Description B 10 B 000000 The normal sequence position of the next field to be returned to the host. (The first field on the screen is number 1. Field numbers progress sequentially, left to right and top to bottom.)

Bit 3 of the SOH order contains the number of the field to be sent. If the first field identifier in the SOH is zero, resequencing does not occur. That is, all resequencing FCWs are ignored. Fields are sent to the host in the order defined in the format table. If resequencing occurs, the last field to be sent to the host must contain this FCW: Bits 0–1 2–7 8–15 " NOTE:

Description B 10 B 000000 B11111111

If FCWs create a closed loop, the controller detects the error and stops the transmission. An FCW for each field is not required. An FCW pointing to the next sequential field is assumed if no resequencing FCW is specified. The last field in the format table must have a resequencing FCW.

MSR MSR enables the scanner for an input field. SLP SLP is accepted, but ignored. Transparency Transparency defines a field that can contain data of any value. TE 2000t 5250 Terminal Emulation Programmer’s Guide

6-19

Page 196

SECTION 6

Display Data Stream

Self-Check Self-check on the controller provides additional integrity for data entry. All field types can be specified for self-checking. The following requirements must be met when specifying a field for self-checking: "

"

An FCW must be defined for the field. Hex B1A0 selects Modulus 10 checking, and hex B140 selects Modulus 11. Field lengths for checking are restricted to 33 positions. For signed numeric fields, only 32 positions can contain digits and the sign is not checked. If more than 33 characters are given a LUSTAT parameter error results.

Self-check resolves fields and conditions as follows: "

The function converts nonnumeric characters (including nulls and blanks) by using the four low-order bits from their EBCDIC representation when the low-order bits are in the range 0--9. For example, A in EBCDIC is C1, thus A = 1. R in EBCDIC is D9, thus R = 9. A “0” replaces all other characters with the four low-order bits in the range of A through F. For example, % is EBCDIC 6C, thus % = 0. Null and blank characters also convert to 0. All high-order nulls, zeros, and blanks in a field are converted to 0 and do not affect the value of the check number.

"

An all-null field checks correctly. This field can result when the operator unsuccessfully tried to enter digits into a field and checking fails. The controller enables the operator to exit the field from the first position by using the Field Exit key.

Field Type

Description

Alpha only

Accepts only the characters A--Z (uppercase and lowercase) and the , . -- and blank space.

Alpha shift

Accepts all data keys. The shift keys are acknowledged.

Auto enter

When the operator uses [FIELD EXIT] key to leave this field or puts the last character in the field, the terminal treats the action as if the operator pressed [ENTER].

Bypass

Operator cannot put entries in this field. Attempts to enter data cause a keying error.

Digits only

Operator can only put the characters 0--9 in this field. The [DUP] key is allowed if enabled.

Duplication

Allows operator to use the [DUP] key. When the operator presses [DUP], the controller fills the field from the cursor to the end of the field with “1C.” (Typically the host program uses this to place data from a previous record into the field when it receives the data.) An overstruck asterisk is displayed for the “1C” characters.

Field Exit key required

Operator can only exit the field by pressing a non-data key such as [FIELD EXIT] or other cursor-moving key.

I/O

Only the scanner can put data in this field.

Mandatory entry

The operator must put data in this field before pressing [ENTER] or another AID-generating key.

Mandatory fill

When the operator begins putting data into this field, they must completely fill it before exiting from it.

Modified

Marks this field as modified.

6-20

TE 2000t 5250 Terminal Emulation Programmer’s Guide

Page 197

SECTION 6

Display Data Stream

Field Type

Description

Numeric only

Accepts only the characters 0--9 and the symbols + , . -- and blank. [FIELD+] exits the field with a positive number; [FIELD--] with a negative number. [FIELD EXIT] exits the field as entered with the sign specified by the host. The controller marks a minus field by changing the high nibble of the last byte to “B” unless a + , . -- or blank is in that byte. These characters cause an error to occur.

Numeric shift

Accepts any data characters.

Right-adjust

When the operator exits the field, the controller shifts the contents to the right and fills on the left with zeros or blank spaces, as specified. Bits 13--15 can be 0. This allows the operator to make entries into any part of the field without any subsequent position adjustment. When the controller sends the field to the host, it also sends whatever is in the field (nulls if a Clear Unit command was received).

Self-check

Modulus 10 self-check fields perform a MOD 10 Check on the input. Modulus 11 self-check fields perform a MOD 11 Check on the input. The controller performs these checks when the operator exits the field. If the checks fail, an input error is indicated and the Input Inhibited annunciator is turned on. The operator must press the [RESET] key to clear the condition. The network checks data by doing the appropriate modus on the low four bits of the characters in the field. If the low four bits are within the range “A” through “F,” zero is used in the modulus calculation.

Signed numeric

Only the characters 0--9 are allowed. The last byte of the field is reserved for the sign character. The operator cannot place data in this location. If the operator presses [FIELD--] to exit the field, the last character is set to “--” and the field is right adjusted. The high nibble of the last digit input is set to “B.” If the operator uses [FIELD+] or [FIELD EXIT] to exit the field, the last character is set to blank and the field is right-adjusted. The “--” or “blank” is sent in response to Read Input Fields or Read MDT Fields commands. Control Portions of SF Order

Below describes the control portions of the SF order. Hex Code 80XX 80FF 8101 8102 B1A0 B140

Description Resequencing, “xx” defines the next field number Resequencing terminator Enable scanner (extended 5250); this is IBM’s MSR option Reserved (extended 5250) Modulus 10 self-check Modulus 11 self-check

Attribute Portions of SF Order

Below describes the attribute portions of the SF order. Hex Code 20 21 24 28 2F 30

Description Normal (dark characters on light background) Reverse image (light characters on dark background) Underscore Blink (applies only to the 6400, 59XX, and 17XX) Nondisplay Column separator

TE 2000t 5250 Terminal Emulation Programmer’s Guide

6-21

Page 198

SECTION 6

Display Data Stream

Results

The SF order does the following: "

"

" "

" "

"

The display address is set to the end-of-field address (as specified by the last SF order + 1). This does not happen if this is the first SF order or if an SBA order precedes it (the SBA points at the field starting attribute). 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-offield +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.

Start of Header (SOH) Function

The SOH order notifies the terminal 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 are sent or when the first byte of the order is not between 1 and 254.

6-22

TE 2000t 5250 Terminal Emulation Programmer’s Guide

Page 199

SECTION 6

Display Data Stream

Format The SOH order takes the following form: Function Order Length Reserved Reserved Resequence Error row F keys

Hex Code 01 07 00 00 00 00 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 6-2 shows the data-included switches for the function keys. In the table: 0 = enable, 1 = inhibit, and bit 0 is the most significant bit. Table 6-2 Function Key Bit Switches Byte 7

Byte 5

Byte 6

Bit #

Function Key Bit #

Function Key Bit #

Function Key

0 1 2 3 4 5 6 7

F24 F23 F22 F21 F20 F19 F18 F17

F16 F15 F14 F13 F12 F11 F10 F9

F8 F7 F6 F5 F4 F3 F2 F1

0 1 2 3 4 5 6 7

0 1 2 3 4 5 6 7

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. 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. Bits 0000 0000 XXXX XXXX

Description Disable resequencing 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. TE 2000t 5250 Terminal Emulation Programmer’s Guide

6-23

Page 200

SECTION 6

Display Data Stream

Transparent Data (TD) Function

The TD order lets you send data with any value to the terminal display.

Restrictions None.

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 nonzero) 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 terminal to enter the SS message state, where the only allowable keystroke is Reset. The SS message is a one-line message that is displayed on the terminal’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 terminal to perform a special operation. The terminal supports the Signal command formats in the following chart. "

Hex Code C9 00 00 00 01 C9 00 00 00 05

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

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 terminal encounters data it does not understand, it ignores the rest of the prefix.

6-24

TE 2000t 5250 Terminal Emulation Programmer’s Guide

Page 201

SECTION 6

Display Data Stream

System Messages and Parameter Errors The terminal’s display reserves a line for status information. The status line can display system (nonlocal) 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 terminal. 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 17XX and 59XX terminals, the system codes will blink.) The parameter errors displayed when the stated condition occurs are listed on the next page. Unless otherwise noted in the table, the terminal’s Reset key restores the status line and returns to the keying mode in effect when the problem occurred. Code

Description

0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020

Attempt to enter data when not in a field. A key other than a data key or [ENTER] was pressed in the system request state. A mandatory entry field has not had data put into it. The field is alpha only, and an invalid key was pressed. The field is numeric only, and an invalid key was pressed. The field is signed numeric, and an invalid key was pressed. Data cannot be entered into the last byte of a signed numeric field. No room in field for insert. The field is full or on the last byte. Cannot leave field while in insert mode. Field is mandatory fill and cannot be exited until filled. MOD 10 or MOD 11 Check has failed on field. Field error: Cannot be used in field that is not signed numeric. Attempt to use [FIELD EXIT] key in unfilled, mandatory fill field. Only a nondata key can be used to exit this field; for example, [FIELD EXIT]. [DUP] key not allowed in this field. Cannot use AID-generating key to exit signed numeric or right-adjusted field. Must use [FIELD EXIT]. Cannot exit a mandatory enter field without entering data. Invalid hex value entered. The [FIELD--] key was pressed, but the last character of the field was not 0--9. An invalid key was pressed before the terminal was in session. Only [SYS REQ] is allowed. An invalid 5250 command was received. This sequence of bytes is sent to the host: 01 10 03 01 01. System code where “XX” is the parameter error .

0021 0023 0026 0099 C00 PXX

When a 5250 command contains invalid parameters, system code “PXX” appears on the bottom line of the display. (On 17XX and 59XX Terminals, the system code blinks.) 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 terminal’s display.

TE 2000t 5250 Terminal Emulation Programmer’s Guide

6-25

Page 202

SECTION 6

Display Data Stream

The parameter errors are a subset of the 5250 data stream command set. Those errors supported by the terminals are listed in below. Parameter Error

Description

P21 P22 P23 P25 P26 P27 P28 P29 P2A P2C P30 P87

Premature end of data stream. A row or column specification is out of range. The ending address of the Repeat to Address order is less than the start address. A signed input field had a length of 1. It must be at least 2. An input field start address was less than a previously-defined input field start address. An invalid Restore Screen command was received. An attempt was made to define an input field past the end of the display. Format table overflow (too many input fields were defined). An attempt was made to write data past the end of the display. Invalid roll up or roll down parameters were received. An invalid attribute was received as part of a SF order. A MOD 10 or MOD 11 input field was defined with a length greater than 33.

6-26

TE 2000t 5250 Terminal Emulation Programmer’s Guide