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

3270 Terminal Emulation Programmer's Reference Guide: Section 9: Data Stream Commands, pages 181 to 188

Pages 181 to 188 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 181

SECTION 9

"

Data Stream Commands

The SCN order has the following format: Syntax: (/Sttt) S = SCN order " First t = bar code control " Second t = option byte 1 " Third t = option byte 2 The “bar code control” byte indicates the method by which the option bytes are to be decoded. Multiple SCN orders may need to be sent to handle all parameters and bar codes that may be used. The wireless station contains the bar code algorithms for those bar codes listed in Table 9-2. For additional bar code scanning options for the wireless station using the 3270 extended command set, see Section 10, “Extended Commands.” "

Table 9-2 Scanner Order Byte Definitions

Parameter

Bar Code Control Byte (Hex)

Bar code length 1

00

Maximum length

Minimum length

UPC bar codes

01

00

Bit 5 = enable UPC Bit 4 = enable UPC with add-ons Bit 3 = expand UPC-E to UPC-A Bit 2 = UPC-E System 1

EAN bar codes

02

00

Bit 5 = enable EAN Bit 4 = enable EAN with add ons

CODE 39 bar codes

03

00

Bit 5 = enable CODE 39 Bit 4 = enable Extended CODE 39

PLESSEY bar codes

04

00

Bit 5 = enable PLESSEY Bit 4 = retain 2nd check digit Bit 3 = validate 1st check digit Bit 2 = retain 1st check digit Bit 1 = MOD 10 1st check digit Bit 0 = MOD 11 1st check digit

CODABAR bar codes

05

00

Bit 5 = enable ABC CODABAR Bit 4 = enable CODABAR

Option Byte 1

Option Byte 2 Bit Definitions

3270 Terminal Emulation Programmer’s Reference Guide

9-17

Page 182

SECTION 9

"

Data Stream Commands

Table 9-2 (Continued) Scanner Order Byte Definitions

Parameter

Bar Code Control Byte (Hex)

Option Byte 1

Option Byte 2 Bit Definitions

CODE 93 bar codes

07

00

Bit 5 = enable CODE 93

2 OF 5 bar codes 2

09

00

Bit 5 = enable Straight 2 of 5 Bit 4 = enable Computer Identics 2 of 5 Bit 3 = enable Interleaved 2 of 5

Redundancy

11

00

Bit 3 = enable CCD 20/20 scanning Bit 2 = enable HP wand scanning Bit1 = enable CCD 20/20 redundancy Bit 0 = enable laser beam redundancy

Scanning options 3

12

00

Bit 6 = enable use of bits 1 & 2 Bit 5 = enable bar code type character Bit 4 = enable scanning concatenation Bit 3 = enable auto scan/forward tab Bit 2 = enable auto scan/enter Bit 1 = Laser Scanner voltage: 0--5 volts, 1--12 volts (RT3210) Bit 0 = enable MOD 10 check digit

1

The maximum and minimum values for bar code lengths must be a value between hexadecimal 01 and hexadecimal 20 (decimals 1 and 31). If a Length Scanner order (bar code control byte hexadecimal 00) is not sent to the wireless station, the default setting is a minimum length of 1 and maximum length of 32. All values above (hexadecimal yy) are hex values for the lower six bits of the bytes. With the 3270 data stream, these values need to be converted into EBCDIC display characters. An EBCDIC conversion chart is provided in Appendix B.

2

The bar code control byte for 2 OF 5 (hexadecimal 09) requires four additional bytes of information, which directly follow option byte 2. These fields must have a value in the lower 6 bits between hexadecimal 01and 20 (decimals 1 and 32), and be converted to display characters by using the EBCDIC conversion chart in Appendix B. The required extra fields are: <maximum length> <minimum length> <Fix 1 length> <Fix 2 length>

3

9-18

Scanning options may also be set through the wireless station’s firmware menus.

3270 Terminal Emulation Programmer’s Reference Guide

Page 183

SECTION 9

"

Data Stream Commands

The following chart shows an example of an SCN order in a write data stream. In this example Code 39 and Extended Code 39 are enabled with a maximum length of 24 and a minimum length of 8. CCD redundancy is also enabled. Byte Value (Hex) Meaning 1F

Scanner order (SCN)

03

Bar code control byte, Code 39

00

Option byte 1

60

Option byte 2, enable Code 39 and Extended Code 39

1F

Scanner order (SCN)

00

Bar code control byte, bar code lengths

18

Option byte 1, maximum length of 24 (decimal)

08

Option byte 2, minimum length of 8 (decimal)

1F

Scanner order (SCN)

11

Bar code control byte, redundancy

00

Option byte 1

Set Buffer Address (SBA) Order The 3-byte SBA order specifies a new buffer address from which operations are to start or continue. Operations start at address 0 (zero) by default. The SBA order may be used to write data into various areas of the buffer. An SBA order may also do the following: Precede another order in the data stream to specify the starting address for a Program Tab, Repeat to Address, or Erase Unprotected to Address order. " Specify the address at which an attribute byte is stored by a Start Field order. " Specify the cursor address for an Insert Cursor order. "

3270 Terminal Emulation Programmer’s Reference Guide

9-19

Page 184

SECTION 9

"

Data Stream Commands

If the SBA order specifies an invalid address (that is, an address outside the range of the wireless station’s display buffer) the following occur: 1. The write operation is terminated at that point. 2. The wireless station recognizes this as an error condition. 3. The wireless station automatically performs a clear memory operation. 4. The entire display buffer is set to nulls. 5. A clear AID character is transmitted to the wireless station control unit for forwarding to the host. The result of this action is the same as if the user had selected Function 7 (clear memory).

Start Field (SF) Order The SF order notifies the wireless station that the next byte in the write data stream is an attribute character. The wireless station stores the next byte and attribute character at the current buffer address. As the attribute character is stored, the wireless station sets a control bit at the address. This bit identifies the byte as an attribute character during subsequent program or device operations with the buffer data. " NOTE:

The byte immediately following the SF order in the data stream is always stored as an attribute character, even when the byte is intended as an order or an alphanumeric data character.

The byte following the SF order defines the characteristics or “attributes” of the data that follows. Each attribute character, plus all the data following it up to the next attribute character (or the last location of the buffer) is called a field. In addition to defining the start of a field, attribute characters define the following characteristics for all character locations contained within the field: 9-20

3270 Terminal Emulation Programmer’s Reference Guide

Page 185

SECTION 9

"

Data Stream Commands

Protected from modification by the user, or unprotected (available for the operator to modify or enter data). The unprotected definition classifies the field as an input field. " Alphanumeric (an input field in which the operator can enter alphabetic, numeric, or symbol characters) or numeric (an input field in which the period, dash, and numbers 0--9 may be used). " Field displayed or not displayed to the user. Each attribute character occupies one of the character locations in the buffer, but it cannot be displayed. Table 9-3 lists attribute character bit assignments. During display operations, attribute characters appear as blanks. "

Table 9-3 3270 Attribute Character Bit Assignments Description Not used Not used 0 = Unprotected 1 = Protected 4* 0 = Alphanumeric 1 = Numeric only 3, 2 00 = Field is displayable, normal video mode 01= Field is displayable, normal video mode 10 = Field displayable, reverse video mode 11 = Field is nondisplayable 1 1 = Keyboard only data 0 = Keyboard or bar code reader input allowed 0 MDT bit identifies modified fields which must be sent to the controller when transmission begins: 0 = Field has not been modified. 1 = Field has been modified; may also be set by the application program in the data stream to force transmission of a particular field. * Bits 5 and 4 equal to 11 cause an automatic skip. See “Automatic Skip” for more information.

Bit # 7 6 5*

3270 Terminal Emulation Programmer’s Reference Guide

9-21

Page 186

SECTION 9

"

Data Stream Commands

Attribute characters are treated as characters that are protected from operator intervention. They cannot be replaced by alphanumeric characters entered from the keyboard or scanner. However, the MDT of the attribute can be changed by the operator by using Table 9-3. Also, attribute characters are not protected from being overwritten by alphanumeric data that is included in a Write, Erase/Write, or Erase All Unprotected command data stream. Additional SF features include automatic skip, auto-forward tab, and auto enter.

Automatic Skip Automatic skip automatically forward tabs to the next input field when the current input field is full. This is done by setting the attribute byte of the next field to be protected and numeric (bits 5 and 4 of the attribute character are equal to 11). This indicates to the wireless station that when the last byte in the input field is filled, the wireless station should advance to the next input field.

Auto-Forward Tab The auto-forward tab on a good bar code scan is used for unprotected (input) fields to allow keystroke operations to be emulated upon the detection of a good scan. The autoforward tab will automatically advance to the next input field after processing bar code data. For asynchronous communications, initiate this feature by inserting a “%” character in the first byte of an unprotected (input) field after the attribute byte of a Start Field order (/Fa%).

9-22

3270 Terminal Emulation Programmer’s Reference Guide

Page 187

SECTION 9

"

Data Stream Commands

Auto Enter The auto enter feature is also used for unprotected input fields to allow emulation of keystroke operations when a good scan is detected. Auto enter on a good bar code scan will automatically emulate the pressing of the Enter key after processing bar code data. This sends the data to the host system. For asynchronous communications, initiate this feature by inserting an “&” character in the first byte of an unprotected input field after the attribute byte of a Start Field order (/Fa&).

Sending Data to the Host Data is returned to the host computer when the operator presses the [ENTER] key on the wireless station’s keyboard. When this happens, the station transmits all modified data fields back to the host computer. Data is returned to the host computer in the following format: <AID> <cursor address> <SBA> <attribute> <address +1> <data> <SBA> <attribute> <address +1> <alphanumeric data>

3270 AID Keys The 3270 AID keys request an application program from the host computer. Press [ENTER], [PF1] through [PF24], [PA1], [PA2], or the [CLEAR] key for the desired program. The AID key sends the AID code (an ASCII value) and any modified data. The [CLEAR], [PA1], and [PA2] keys send only the AID code. Table 9-4 lists AID keys and their values. 3270 Terminal Emulation Programmer’s Reference Guide

9-23

Page 188

SECTION 9

"

Data Stream Commands

Table 9-4 3270 Function Key Conversions

9-24

AID Key

Hexadecimal

ASCII

PF1

41

A

PF2

42

B

PF3

43

C

PF4

44

D

PF5

45

E

PF6

46

F

PF7

47

G

PF8

48

H

PF9

49

I

PF10

4A

J

PF11

4B

K

PF12

4C

L

PF13

4D

M

PF14

4E

N

PF15

4F

O

PF16

50

P

PF17

51

Q

PF18

52

R

PF19

53

S

PF20

54

T

PF21

55

U

PF22

56

V

PF23

57

W

PF24

58

W

Enter

27

’

Clear

37

7

PA1

59

Y

PA2

5A

Z

3270 Terminal Emulation Programmer’s Reference Guide