× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 6/3/24 3:08 PM, a4g atl wrote:
We are testing a new handheld scanner and the 5250 emulation software. The
function keys do not respond. Its possible the hex values of the function
keys are defined incorrectly.

Does anyone know what the hex values should be or can you point me to
document(s) that have the values IBM i is expecting for each function key?


You'd find the AID codes in the 5250 Functions Reference.

From Page 2-2 of that document:
F1 x'31'
F2 x'32'
F3 x'33'
F4 x'34'
F5 x'35'
F6 x'36'
F7 x'37'
F8 x'38'
F9 x'39'
F10 x'3A'
F11 x'3B'
F12 x'3C'
F13 x'B1'
F14 x'B2'
F15 x'B3'
F16 x'B4'
F17 x'B5'
F18 x'B6'
F19 x'B7'
F20 x'B8'
F21 x'B9'
F22 x'BA'
F23 x'BB'
F24 x'BC'
Clear x'BD'
Enter x'F1'
Help x'F3'
PgUp x'F4'
PgDn x'F5'
Print x'F6'
Record Backspace x'F8'
Auto-Enter x'3F


But it's more than just sending one hex code. For example, if responding to to a "Read Input Fields" command, you are expected to send the cursor address (2 bytes, row and column), the AID code, and (if the Master MDT Bit is set) the field data. If responding to a "Read MDT Fields" command, you are expected to send the cursor address, the AID code, and the screen addresses and contents of any fields for which the individual field MDT bits are set.

The manual explains it all.

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.