Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 685 -
------------------------------------------------------------------------------
1.8 Customize softkey on CNC screen. <Main>
------------------------------------------------------------------------------
[Name]
crt_setuserskey
[Syntax]
#include <crt.h>
int crt_setuserskey( unsigned int index, unsigned int num,
struct user_softkey *skey ) ;
struct user_softkey {
unsigned int index ; /* Softkey index number. */
int op ; /* Operation code. */
unsigned int submode ; /* Small classification of */
/* user's screen. */
unsigned int *string ; /* Display string. */
} ;
[Arguments]
index Softkey table index number to be customized.
num Number of customizing item.
skey Customizing data table.
[Return]
Returns zero if successful. If any error, returns -1 and sets the
following error code in the global variable "errno".
EUSKEY Incorrect softkey table index number "index" or softkey index
number "skey.index".
[Description]
Alters the softkey displayed on the CNC screen as follows, adds new
items, by which any user screens are selected, moves the existent
items, by which the CNC screens are selected,deletes the existent
items.
Specify the softkey table index number to be customized in "index".
There are the softkey tables for each large classifications of the CNC
screen (and more, for each modes in the PROGRAM screen).
All available table index values are defined in crt.h as "SKEY_xxxx".
Store multiple customizing data in "skey".
The customizing data includes the following items.
index Softkey index number to be customized.
op Operation code.
submode Small classification of the user's screen.
string User specified display string.