Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 960 -
FANUC Series 16/18/16i/18i/21i C Executor
1998.10.01 FANUC LTD.
Screen switching with Background graphics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note the following point when C Executor application program switches the
screen on FS16i/18i-MA with Background graphic display function.
While Background graphic screen is displayed, "crt_cncscrn()" function
can not switch the screen to the other screen.
Additional process must be added to switch the screen.
Calls "function key sending process" just before "crt_cncscrn()" function
like below.
crt_cncscrn( CRT_OFS_OPR ) ;
|
v
send_funckey( MDIKEY_OFFSET ) ; // send [OFFSET] key code.
crt_cncscrn( CRT_OFS_OPR ) ;
"send_funckey()" function is as follows.
int cnc_information( unsigned long, void * ) ;
void send_funckey( unsigned char key )
{
unsigned char buf ;
cnc_information( 0x00090001, &buf ) ;
if ( buf == 0x02 ) { // if Background graphic screen,
aux_mdi_putc( 0x4000 + key ) ; // send function key
while ( buf == 0x02 ) // screen switching completed ?
cnc_information( 0x00090001, &buf ) ;
}
}
The argument of "send_funckey()" function is one of the followings according
to the destination screen.
Destination screen Argument of "send_funckey()"
Arg of crt_cncscrn() function
--------------------- ------------------------------
CRT_POS_??? MDIKEY_POS
CRT_PRG_??? MDIKEY_PROG
CRT_OFS_??? MDIKEY_OFFSET
CRT_SYS_??? MDIKEY_SYSTEM
CRT_MSG_??? MDIKEY_MESSAGE
It is no problem that this "send_funckey()" function is called even if
Background graphic display function is not equipped.
[ End of bggraph.txt ]