Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 641 -
------------------------------------------------------------------------------
9. Read inputting status of MDI key. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
aux_mdi_getstat
[Syntax]
#include <bios.h>
unsigned int aux_mdi_getstat( void ) ;
[Arguments]
------
[Return]
Returns inputting status of MDI key.
[Description]
Gets the inputting status of MDI key.
Each bits of returned value mean following information.
bit0 SHIFT state. (MDI_ST_SHIFT)
0: Not SHIFT state.
1: SHIFT state.
bit1 - bit7 Undefined.
bit8 - bit15 Number of characters read in the MDI key
input buffer.
"SHIFT state" means the following state.
Once push [SHIFT] key, and then release it.
v <- This period is "SHIFT state".
Push any other key.
(Sub code is read in this case.)
That is, once pushing [SHIFT] key makes "SHIFT state" ON, then,
pushing any other key makes "SHIFT state" released. Pushing [SHIFT]
key again during "SHIFT state" makes "SHIFT released.
It is impossible to input Sub code by pushing any key and [SHIFT] key
simultaneously.
Bit8 through bit15 of return value indicate a number of characters
input from the MDI panel and not read yet by the application program.
This function gets the status of key input buffer while the
C Executor's user screen is being displayed. It can't get the status
of the key input buffer of the CNC software.