Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 627 -
The relationship of the MDI key bit matrix and the MDI key matrix is as
follows.
MDI key bit Function flag Key code
matrix table table
---------------+---------------+-------------
0th byte
0th bit 0th byte 0th word
1st bit 1st byte 1st word
: : :
7th bit 7th byte 7th word
: : :
n-th byte
m-th bit (n*8+m)-th byte (n*8+m)-th word
Each words of the key code table include both "Main code" and "Sub code".
Upper byte Main code Code generated by pushing individually.
Lower byte Sub code Code generated by pushing next to the
SHIFT key.
It is impossible to push the SHIFT key and any ordinary keys simultaneously.
To input sub code, operate as following sequence.
Push the SHIFT key, and then release it.
Push any ordinary key.
(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. (standard 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.)