
(2) Structure of function flag
The function flag is one byte flag which defines attributes of key for every
key. This flag defines following items bit by bit.
Bit Symbol definition
-------+-------+----------------------------------------------------
7 F Enabling/disabling key repeat.
(effective when FUNC=0000)
0: Disable key repeat.
1: Enable key repeat.
6 - 5 OUT Destination of key code. (effective when FUNC=0000)
00: Screen selected side. (default setting)
01: Always C application.
10: Always CNC software.
11: Both c application and CNC software.
(for only "RESET" key)
4 S Enabling/disabling SHIFT key.
(effective when FUNC=0000)
0: Enable SHIFT key.
1: Disable SHIFT key.
3 - 0 FUNC Kind of key.
0000: Ordinary key.
1011: SHIFT key.
1111: Invalid key.
Others: Not used. (These are handled as same as
ordinary keys.)
(3) Uppercase/Lowercase
There is no special key to select uppercase/lowercase of alphabetic character
on MDI panel of CNC. Usually, all alphabetic characters are input as uppercase
characters. Lowercase characters can be input by the following operation.
Operation Input mode
-----------------------+----------------------
SHIFT + Cursor[UP] Uppercase (default)
SHIFT + Cursor[DOWN] Lowercase
Call "aux_mdi_contrl" function to enable this operation.
aux_mdi_control( MDI_CASE_ON ) Enable changing uppercase/lowercase.
aux_mdi_control( MDI_CASE_OFF ) Disable changing uppercase/lowercase.
The initial status is "disabled changing uppercase/lowercase".
This function is made ineffective by altering MDI key matrix of "Cursor[UP]" or
"Cursor[DOWN]". Only uppercase characters are always input to the CNC software
regardless of this operation. Also "Key input by application program" described
in next section isn't influenced by this operation.