Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 702 -
------------------------------------------------------------------------------
1.14 Read the status of function keys. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
crt_readfkey
[Syntax]
#include <crt.h>
int crt_readfkey( void ) ;
[Arguments]
------
[Return]
Returns zero if no function keys are depressed or CRT_SWT_MFKY bit of
the "crt_setswt" function is set to "0". When CRT_SWT_MFKY bit is set
to "1", keycode for the function key being depressed is returned.
Keycodes are shown below.
KEY SYMBOL CODE
---------------+--------------+---------
POSITION MDIKEY_POS 0xE8
PROGRAM MDIKEY_PROG 0xE9
OFFSET/SETTING MDIKEY_OFFSET 0xEA
SYSTEM MDIKEY_SYSTEM 0xEB
MESSAGE MDIKEY_MESSAGE 0xEC
GRAPH(full key) MDIKEY_GRAPH 0xED
CUSTOM(full key) MDIKEY_CUSTOM 0xEE
USER(small key) MDIKEY_USER 0xED
[Description]
This function reads the status of the function keys on the MDI panel,
and is used by the user application program to switch screens
according to the status of the function keys.
If function key is depressed, corresponding keycode is read and
returned.
When reading the status of the function keys, set "CRT_SWT_MFKY" bit
of the crt_setswt() function to "1". This disables the ordinary screen
switching caused by the function keys. User application program reads
the status of the function keys by means of this function and switch
the screens by using crt_cncscrn() function.