The text of a manual · part 18 of 28
TE 2000 3270 Terminal Emulation Programmer's Guide: Section 5: Customizing Your Configuration, pages 143 to 152
Pages 143 to 152 of 240, from TE 2000 3270 Terminal Emulation Programmer's Guide
The original document is the PDF (4.2 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 143
SECTION 5
Customizing Your Configuration
"
"
"
"
"
"
"
Alternate Screen Rows (6400, 5055, 17XX) [Session 1].Alt Screen Rows Session 2.Alt Screen Rows Numeric, minimum = 1, maximum = 255 [8] 17XX [12] 5055 [16] 6400 wide display Contrast Mode [Session 1].Contrast Mode Session 2.Contrast Mode Compensated Absolute Double Byte Character Set (DBCS) Code (59XX) [Session 1].DBCS Code Session 2.DBCS Code Numeric, minimum = 0, maximum = 16 [0] Key Repeat (59XX) [Session 1].Key Repeat Session 2.Key Repeat Enabled [Disabled] Program Name (appears on the initialization and version screens) Program Name String, minimum length = 8, maximum length = 8 [FWP???H?] Program Version (appears on the initialization and version screens) Program Version String, minimum length = 4, maximum length = 4 [?.??] Set-Up Parms Menu Password [Session 1].Password Session 2.Password String, minimum length = 1, maximum length = 10 [CR52401]
Changing Text Modify CFGLIT.DAT to change the text of TE configuration menus, configuration parameters, or system messages. This file contains the strings that appear in the configuration menus, parameter set-up files, and system messages. An identification (ID) number identifies each literal string. To create your own literal file, you create a text file that associates these numbers with the actual literal strings. You then use MAKELIT.EXE to convert the text file to a format the configuration program can use. Each line in the literal text file begins with the literal ID number. After the ID number, you type the quoted string that is used when that ID number is referenced. If you omit an ID number, its string appears as “Bad Literal File” when you run the program in the terminal. Literal ID numbers are available upon request from Intermec Technologies Corporation. Contact your Intermec representative for more information about ID numbers. TE 2000t 3270 Terminal Emulation Programmer’s Guide
5-31
Page 144
SECTION 5
Customizing Your Configuration
You can create a sample file containing the default literal strings using MAKELIT.EXE to “reverse engineer” the standard CFGLIT.DAT file. Type the following command line to unpack CFGLIT.DAT into a CFGLIT.TXT text file: makelit -r cfglit.dat cfglit.txt The CFGLIT.TXT file this command creates contains all the default strings the configuration program uses. One line in CFGLIT.TXT looks like this: 0x2f10 “RS232 PORT\nIN USE\n\nPLEASE WAIT!” “0x2f10” is the literal ID number for the RS-232 port-in-use message that appears when a personal computer sends an RS-232 command to the TE program. The message text follows the ID number in a quoted string. The embedded “\n” sequence within the quoted string indicates a “new line” character and outputs a carriage return/line feed. To change the text of the message that appears, change the quoted string. For example, change the above line to look like this: 0x2f10 “Printing\nPlease Wait!” When you have a text file with one line for every ID number, use MAKELIT.EXE to convert the file to an indexed literal file. If your text file is named CFGLIT.TXT, you would type the following command which creates the new literal CFGLIT.DAT file. For instructions on how to download the file, see “Downloading Files” on page 5-43. makelit cfglit.txt cfglit.dat
Preinitializing the 3270 TE Program You can preinitialize the 3270 TE program. Name the 3270 initialization file as 3270.INI. The file is processed when you reset or warm start the terminal and is processed as if the radio had received the data. It must be in the “on-air” format. For instructions on downloading the file, see “Downloading Files” on page 5-43. Data is encoded in binary format. To create 3270.INI, you may need a HEX editor or other special program. 3270.INI contains 3270 data stream commands and orders. It contains ASCII data because INTERMEC R controllers perform EBCDIC to ASCII translation for the data stream. Following is the format for the 3270 data stream. The information assumes you have a working knowledge of the data stream command formats or escape sequences, or both. The following 3270 commands are supported: 0x31 Write 0x36 Read modified 0x32 Read buffer 0x3d Erase write alternate 0x34 Toggle SSCP command mode 0x3e Read modified all 0x35 Erase write 0x3f Erase all unprotected The following 3270 orders are supported: 0x07 Beep (INTERMEC extension) 0x13 0x09 Program tab 0x14 0x11 Set buffer address 0x1d 0x12 Erase unprotected to address 0x1f
5-32
TE 2000t 3270 Terminal Emulation Programmer’s Guide
Insert cursor Repeat to address Start of field Scanner (INTERMEC extension)
Page 145
SECTION 5 Customizing Your Configuration
The following example shows how to display “HELLO WORLD” and beep the beeper from within a data stream initialization file. The line of hexadecimal digits represent the binary values that must be stored in initialization files.
35 04 48 45 4c 4c 4f 20 57 4f 52 4c 44 | | H EL LO WORLD a I ccc ree Write control character with alarm bit | crt 3270 erase/write command
Remapping the Terminal’s Keys
You may need to remap the terminal’s keys if your users need to press a key in 3270 TE that is not on a standard 101-key keyboard. You can also remap a terminal key to transmit a text string or message to the personal computer.
To remap the terminal keys, you create the REMAP.CFG file and add a Remap command to remap a terminal key. You can remap a single key or a two-key sequence. You can add a Remap command or create a macro in the REMAP.CFG file that remaps a single key or a two-key sequence.
You can remap any terminal key or two-key sequence that does not perform a specific function on the terminal. For example, you can remap the [B] key because it only types the lowercase letter B.
> NOTE: On the 2425, 2455, and 248X, you cannot remap the two-key sequence (#4 4 because it moves the window/viewport up on the Trakker Antares Terminals.
Each terminal key or two-key sequence generates a 4-digit hexadecimal remap code as listed in the Key Code Table starting on page 5-34. The key code table gives the 4-digit hexadecimal codes for ASCII characters for the terminals. These codes identify the key or keys pressed. For example:
Key Action 4-Digit Hex Key Code
[B] Types a lowercase B 0062 [SHIFT] [B] Types anuppercaseB 0042
Remapping a Key or Two-Key Sequence
> NOTE: For terminals made before 1997, refer to the “Using FLSHCONV’ section for the proper, e parameter value.
1. Choose the key or two-key sequence to remap and determine the current 4-digit hexadecimal code of the keys and the code you will enter to remap the keys. For help, see the Key Code Table on the next page.
2. Connect the terminal to your personal computer.
TE 2000 ™ 3270 Terminal Emulation Programmer’s Guide 5-33
Page 146
SECTION 5
Customizing Your Configuration
3. Using any text editor, enter the keys you want remapped on individual lines in this format: remap=<key>=“string” remap is the command you enter in REMAP.CFG. key is the 4-digit hexadecimal key or keys you are remapping. string is the new function for the key or keys. The string can be a text string, ASCII mnemonic, or another 2-byte hexadecimal code. Enclose the entire string in quotation marks. 4. Save the new file as REMAP.CFG. 5. Download REMAP.CFG to drive C on your terminal. EXAMPLE:
Suppose you want to remap “+” on your terminal to send a message and then enter a carriage return. In the REMAP.CFG file, add the following command: remap=<002b>=“My battery is low.<CR>”
Creating a Macro 1. Using any text editor, add the macro=<key>=“string” Macro command to the end of the REMAP.CFG file, where: macro is the command you enter in REMAP.CFG. key is the 4-digit hexadecimal key or keys you are remapping. string is the new action for the key or keys. The string can be a text string, ASCII mnemonic, or another 2-byte hexadecimal code. Enclose the entire string in quotation marks. 2. At the end of the macro, type runmacro=< key> where key is the 4-digit hexadecimal code that identifies the key or keys that activate the macro. 3. Save the file name as REMAP.CFG for the macros to work. 4. Append the new remap to the original hex file using one of the following commands. Replace ??? with your type of terminal: 17XX, 11XX Terminals FLSHCONV -a –eFFC0 FWP1???H0.HEX REMAP.CFG –oNEW.HEX 59XX Terminals FLSHCONV -a –eE000 FWP59??H0.HEX REMAP.CFG –oNEW.HEX 5. Download REMAP.CFG to drive C on your terminal. EXAMPLE:
You can assign “+” to activate a macro that remaps [B] to send the message, “Change the battery pack now.” In the REMAP.CFG file, add the following command: remap=<002b>=“Change the battery pack now.”
Key Code Table " NOTE:
Values not listed here may work but are not supported.
remap=<0020>=“string” remap=<0021>=“string” remap=<0022>=“string” remap=<0023>=“string” remap=<0024>=“string” remap=<0025>=“string” remap=<0026>=“string” remap=<0027>=“string” 5-34
/* SPACE key */ /* ! key */ /* ” key */ /* # key */ /* $ key */ /* % key */ /* & key */ /* ’ key */
TE 2000t 3270 Terminal Emulation Programmer’s Guide
Page 147
SECTION 5
Customizing Your Configuration remap=<0028>=“string” remap=<0029>=“string” remap=<002a>=“string” remap=<002b>=“string” remap=<002c>=“string” remap=<002d>=“string” remap=<002e>=“string” remap=<002f>=“string” remap=<0030>=“string” remap=<0031>=“string” remap=<0032>=“string” remap=<0033>=“string” remap=<0034>=“string” remap=<0035>=“string” remap=<0036>=“string” remap=<0037>=“string” remap=<0038>=“string” remap=<0039>=“string” remap=<003a>=“string” remap=<003b>=“string” remap=<003c>=“string” remap=<003d>=“string” remap=<003e>=“string” remap=<003f>=“string” remap=<0040>=“string” remap=<0041>=“string” remap=<0042>=“string” remap=<0043>=“string” remap=<0044>=“string” remap=<0045>=“string” remap=<0046>=“string” remap=<0047>=“string” remap=<0048>=“string” remap=<0049>=“string” remap=<004a>=“string” remap=<004b>=“string” remap=<004c>=“string” remap=<004d>=“string” remap=<004e>=“string” remap=<004f>=“string” remap=<0050>=“string” remap=<0051>=“string” remap=<0052>=“string” remap=<0053>=“string” remap=<0054>=“string” remap=<0055>=“string” remap=<0056>=“string” remap=<0057>=“string” remap=<0058>=“string” remap=<0059>=“string” remap=<005a>=“string” remap=<005b>=“string” remap=<005c>=“string” remap=<005d>=“string”
/* ( key */ /* ) key */ /* * key */ /* + key */ /* , key */ /* -- key */ /* . key */ /* / key */ /* 0 key*/ /* 1 key*/ /* 2 key*/ /* 3 key*/ /* 4 key*/ /* 5 key*/ /* 6 key*/ /* 7 key*/ /* 8 key*/ /* 9 key*/ /* : key */ /* ; key */ /* < key */ /* = key */ /* > key */ /* ? key */ /* @ key */ /* A key*/ /* B key*/ /* C key*/ /* D key*/ /* E key*/ /* F key*/ /* G key*/ /* H key*/ /* I key*/ /* J key*/ /* K key*/ /* L key*/ /* M key*/ /* N key*/ /* O key*/ /* P key*/ /* Q key*/ /* R key*/ /* S key*/ /* T key*/ /* U key*/ /* V key*/ /* W key*/ /* X key*/ /* Y key*/ /* Z key*/ /* [ key */ /* \ key */ /* ] key */ TE 2000t 3270 Terminal Emulation Programmer’s Guide
5-35
Page 148
SECTION 5
Customizing Your Configuration remap=<005e>=“string” remap=<005f>=“string” remap=<0060>=“string” remap=<0061>=“string” remap=<0062>=“string” remap=<0063>=“string” remap=<0064>=“string” remap=<0065>=“string” remap=<0066>=“string” remap=<0067>=“string” remap=<0068>=“string” remap=<0069>=“string” remap=<006a>=“string” remap=<006b>=“string” remap=<006c>=“string” remap=<006d>=“string” remap=<006e>=“string” remap=<006f>=“string” remap=<0070>=“string” remap=<0071>=“string” remap=<0072>=“string” remap=<0073>=“string” remap=<0074>=“string” remap=<0075>=“string” remap=<0076>=“string” remap=<0077>=“string” remap=<0078>=“string” remap=<0079>=“string” remap=<007a>=“string” remap=<007b>=“string” remap=<007c>=“string” remap=<007d>=“string” remap=<007e>=“string” remap=<007f>=“string” remap=<1030>=“string” remap=<1031>=“string” remap=<1032>=“string” remap=<1033>=“string” remap=<1034>=“string” remap=<1035>=“string” remap=<1036>=“string” remap=<1037>=“string” remap=<1038>=“string” remap=<1039>=“string” remap=<103c>=“string” remap=<1042>=“string” remap=<1043>=“string” remap=<1044>=“string” remap=<1045>=“string” remap=<1046>=“string” remap=<1049>=“string” remap=<104c>=“string” remap=<104e>=“string” remap=<1052>=“string” 5-36
/* ^ key */ /* _ key */ /* ‘ key */ /* a key*/ /* b key*/ /* c key*/ /* d key*/ /* e key*/ /* f key*/ /* g key*/ /* h key*/ /* i key*/ /* j key*/ /* k key*/ /* l key*/ /* m key*/ /* n key*/ /* o key*/ /* p key*/ /* q key*/ /* r key*/ /* s key*/ /* t key*/ /* u key*/ /* v key*/ /* w key*/ /* x key*/ /* y key*/ /* z key*/ /* { key */ /* | key */ /* } key */ /* ~ key */ /* Del key */ /* Home key */ /* F1 key */ /* F2 key */ /* F3 key */ /* F4 key */ /* F5 key */ /* F6 key */ /* F7 key */ /* F8 key */ /* F9 key */ /* Backspace key */ /* Back Tab key */ /* Clear key */ /* Del key */ /* Enter key */ /* Erase End of Field (EOF) */ /* Insert key */ /* Window/viewport left key */ /* New line */ /* Reset key */
TE 2000t 3270 Terminal Emulation Programmer’s Guide
Page 149
SECTION 5
Customizing Your Configuration remap=<1054>=“string” remap=<1055>=“string” remap=<1056>=“string” remap=<105a>=“string”
/* Tab key */ /* Window/viewport up key */ /* Window/viewport down key */ /* Window/viewport right key */ remap=<1061>=“string” remap=<1062>=“string” remap=<1063>=“string” remap=<1064>=“string” remap=<1065>=“string” remap=<1066>=“string” remap=<1067>=“string” remap=<1068>=“string” remap=<1069>=“string” remap=<106a>=“string” remap=<106b>=“string” remap=<106c>=“string” remap=<106d>=“string” remap=<106e>=“string”
/* F10 key */ /* F11 key */ /* F12 key */ /* F13 key */ /* F15 key */ /* F16 key */ /* F17 key */ /* F18 key */ /* F19 key */ /* F20 key */ /* F21 key */ /* F22 key */ /* F23 key */ /* F24 key */ remap=<1078>=“string” remap=<1079>=“string” remap=<107a>=“string”
/* PA1 */ /* PA2 */ /* PA3 */ remap=<2041>=“string” remap=<206c>=“string”
/* Auto-Login Restart key */ /* Menu key */ remap=<304c>=“string” remap=<3055>=“string” remap=<3056>=“string” remap=<305a>=“string”
/* Page left key */ /* Page up key */ /* Page down key */ /* Page right key */
Remapping Characters Use display character translation files to remap characters as written to the display. The translation file name for 3270 TE must be 3270.XLT. To download the file to the terminal, see “Downloading Files” on page 5-43. Display character translation files are binary files consisting of ordered pairs of eight bit values. Each pair of values remaps a displayable character to a different displayable character. The first byte of a pair is the ASCII value of the character to be replaced. " The second byte of a pair is the ASCII value that replaces the first. These translations are only made when a character is written to a display device. If the character is sent to the host (via keystroke or scan data) or sent to an external device (such as a printer), it is sent as the original, untranslated value. "
Suppose you want a terminal running 3270 emulation to replace the uppercase B with the Greek letter beta, and replace the uppercase Z with the Greek letter omega. Create a file named 3270.XLT that is four bytes long (two ordered pairs of two bytes each). The file should contain the 0x42, 0xE1, 0x5A, and 0xEA bytes in this order. These represent the ASCII display character set values for B, beta, Z, and omega, respectively.
TE 2000t 3270 Terminal Emulation Programmer’s Guide
5-37
Page 150
Customizing Your Configuration
SECTION 5
Substituting National Characters This topic tells how to create a file that remaps one character in the terminal’s Terminal Font Set for another character in the set. Use this information to provide characters on the terminal in the local language. Intermec provides a table for converting from characters used in English (U.S.) to German, Danish, Finnish, Italian, Spanish, French, Belgian, and English (UK). The procedure for converting the characters appears first. Then two slightly longer procedures show how to remap any character to another. One procedure describes the steps with the symbol’s EBCDIC value. The other one describes the steps without a value. Finally, examples show the remap files for German characters and a few English symbols. For all procedures, you need the terminal’s Terminal Font Set table. The table lists characters and their decimal and hexadecimal values. For the 2415, 2425, 2435A, 2455, and 248X Terminals, refer to the terminal’s user manual. For the 5020, 5055, 6400, 59XX, 17XX, or 11XX Terminal, see Appendix D.
Creating the File Follow these steps to create a table that substitutes characters in the local language for characters normally used in U.S. English. These steps apply if the EBCDIC value is 4A, 4F, 5A, 5B, 5F, 6A, 79, 7B, 7C, 7F, A1, C0, D0, or E0. 1. Find the character to replace in Table 5-2 on page 5-39 and determine its EBCDIC value. 2. Find the default translation value in Table 5-3 on page 5-39 (2415, 2425, 2435A, 2455, or 248X Terminal) or Table 5-4 on page 5-40 (6400, 5020, 5055, 59XX, 17XX, or 11XX Terminal). 3. Using the default value from step 2, search the terminal’s Terminal Font Set for the character. If the default character is correct, you are done. If incorrect, go to step 4. 4. Search the terminal’s Terminal Font Set for the character you want. 5. Create file 3270.XLT. Put the default value of the font character (found in step 2) as the first byte in the file. Put the replacement value (found in step 4) as the second byte in the file. 6. Repeat steps 1 through 5 until all replacement characters are complete. 7. Download 3270.XLT to your terminal and restart the terminal emulation program for the changes to take effect. For downloading information, see “Downloading Files” on page 5-43.
5-38
TE 2000t 3270 Terminal Emulation Programmer’s Guide
Page 151
SECTION 5
Customizing Your Configuration
Table 5-2 EBCDIC Values Character Set
EBCDIC
4A 4F 5A 5B 5F 6A 79 7B 7C 7F A1 C0 D0 E0
English (US)
¢
|
!
$
¬
¦
‘
#
@
~
{
}
\
Austrian/German Austrian/German (alternate) Danish/Norwegian Danish/Norwegian (alternate) Finnish/Swedish Finnish/Swedish (alternate) French Italian Portuguese Spanish Spanish (alternate) English (UK) Belgian Brazilian/Portuguese Japanese (English) Spanish Speaking Canadian (French) International
Ä ö # ø § ö
! | ! | ! | ! ! ! | | | ! ! | | ! !
Ü ü ¤ å ¤ å § é ] ] ! ! ] $ ! ] ’ ]
$ Ü Å Å Å Å $ $ $
^ ¬ ^ ¬ ^ ¬ ^ ^ ^ ¬ ¬, ^ ^ ¬ ¬ ^ ^
ö b ø ¦ ö ¦ ù ò õ ñ ¦ ¦ ù ç ¦ ñ ù ¦
‘
# Ä Æ Æ Ä Ä £ £ Ã Ñ Ñ # # Õ # Ñ # #
§ Ö Ø Ø Ö Ö à § Õ @ @ @ à Ã @ @ @ @
ä
æ
ä
ñ b
ä
ü
Ö
ü
æ
å
\
ü
ä
å
É
∙∙ ì ç ∙∙
é à ã {
è è ’ }
ç ç Ç \
– ∙∙ ~ – ∙∙ ∙∙ ~
{ é õ { { é {
} è é } } è }
\ ç \ $ \
° °
[ [ ¢ $ [ É £ [ à [
Pts Pts
£ $ Ç ¥ $ $ $
‘ é ‘ ù ‘ ‘ ‘ ‘ ã ‘ ‘ ‘ ‘
\
Table 5-3 ASCII Equivalents for EBCDIC Values (2415, 2425, 2435A, 2455, or 248X Terminal) ASCII English (US) German Danish/Norwegian Finnish/Swedish Italian Spanish French Belgian English (UK)
4A
4F
5A
5B
5F
6A
79
7B
7C 7F
A1
C0
D0
E0
BD 8E 23 F5 F8 5B F8 5B 24
7C 21 21 21 21 7C 21 21 7C
21 9A 0F 0F 82 5D F5 5D 21
24 24 8F 8F 24, 24 24 9C
AA DD 5E 94 5E 9B 5E 94 5E 95 AA A4 5E 97 5E 97 AA DD
60 60 60 82 97 60 60 60 60
23 23 92 8E 9C A5 9C 23 23
40 F5 90 99 F5 40 85 85 40
7E E1 81 81 8D F9 F9 F9 16
7B 7D 84 81 91 86 84 86 85 8A 7B 7D 82 8A 82 8A 7B 7D
5C 99 5C 90 87 5C 87 87 5C
TE 2000t 3270 Terminal Emulation Programmer’s Guide
5-39
22 22 22 22 22 22 22 22 22
Page 152
SECTION 5
Customizing Your Configuration
Table 5-4 ASCII Equivalents for EBCDIC Values (6400, 5020, 5055, 59XX, 17XX, or 11XX Terminal) ASCII English (US) German Danish/Norwegian Finnish/Swedish Italian Spanish French Belgian English (UK)
4A
4F
5A
5B
5F
6A
79
7B
7C 7F
A1
C0
D0
E0
9B 8E 23 15 F8 5B F8 5B 24
0E 21 21 21 21 OE 21 21 OE
21 9A 0F 0F 82 5D 15 50 21
24 24 8F 8F 24, 24 24 9C
AA 7C 5E 94 5E ED 5E 7C 5E 95 AA A4 5E 97 5E 97 AA 7C
60 60 60 82 97 60 60 60 60
23 23 92 8E 9C A5 9C 23 23
40 15 05 99 15 40 85 85 40
7E E1 81 81 8D 06 06 06 5F
7B 84 91 84 85 7B 82 82 7B
7D 81 86 86 8A 7D 8A 8A 7D
5C 99 5C 90 87 5C 87 87 5C
22 22 22 22 22 22 22 22 22
For characters other than those in Table 5-3 on page 5-39, refer to the appropriate IBM character set. Languages and set numbers are in Table 5-5. Table 5-5 IBM Character Sets Number
Language
IBM Set
1 2 3 4 5 6 7 8
English (U.S.) German Danish/Norwegian Swedish/Finnish Italian Spanish French Belgian
037–850 273–850 277–850 278–850 280–850 284–850 297–850 500–850
EBCDIC to ASCII Table
5-40
0x00 0x00 0x00 0x10 0x18
0x01 0x00 0x11 0x19
0x02 0x00 0x12 0x00
0x03 0x0B 0x13 0x00
0x00 0x09 0x00 0x0C 0x0D 0x0E 0x00 0x00 0x08 A_DUP 0x00 0x00
0x7F 0x0F 0x00 0x00
0x20 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00
0x1C 0x00 0x16 0x00
0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x14
0x0A 0x05 0x1E 0x16
0x17 0x06 0x00 0x00
0x1B 0x07 0x04 0x1A
0x40 0x20 0x00 0x26 0x00
0x00 0x00 0x00 0x00
0x00 0x9b 0x00 0x21
0x00 0x2E 0x00 0x24
0x00 0x3C 0x00 0x2A
0x00 0x28 0x00 0x29
0x00 0x2B 0x00 0x3B
0x00 0x0e 0x00 0xaa
TE 2000t 3270 Terminal Emulation Programmer’s Guide