
B–61803E–1/10
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
131
A control variable has been added so that the MDI number corresponding
to the MDI key being pressed can be read using a conversational macro.
The control variable allows a conversational macro to identify the MDI
key being pressed.
By reading the value of control variable #8549, the MDI key being
pressed can be identified. This variable holds an MDI number in decimal.
A key number is represented in binary, and is 8 bits long.
This function can also tell the operator whether the key has been pressed
together with the SHIFT key or just alone. For detailed information, see
section 6.31.3 below.
A key number is expressed in binary from 00 to FF.
For example, when the SPACE key is being pressed, the key number 20h
is sent to control; variable #8549, which holds 32 in decimal.
For example, when the RESET key is being pressed, the key number 90h
is sent to control variable #8549, which holds 144 in decimal.
NOTE
Handling of soft keys
In the key number table, numbers F0 to F9, FR, and FL
correspond to soft keys. Numbers other than those above
correspond to MDI keys as follows
(Seven soft keys) “F0” – “F4” and “FR”, “FL”
(Twelve soft keys) “F0” – “F9” and “FR”, “FL”
“FL”“F4”“F3”“F2”“F1”“F0”“FR”
“FL”“F9”“F8”“F7”“F1”“F0”“FR”
6.31
FUNCTION FOR
IDENTIFYING THE
PRESSED MDI KEY
USING A
CONVERSATIONAL
MACRO
6.31.1
Overview
6.31.2
Function
6.31.3
Key Number List