Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 1029 -
3. Application programming
Some processes must be added to program for 1-path system to make C Executor
application program for 2-path system.
(1) Registering user screens
To register user screens on path-2 side, use "crt_setuserscrn2()" function.
If you want to display the completely same user's screens on path-2 side as
path-1, call "crt_setuserscrn2()" function next to "crt_setuserscrn()" as
below.
crt_setuserscrn( scrn_tbl_size(crt_table), crt_table ) ;
crt_setuserscrn2( 2, scrn_tbl_size(crt_table), crt_table ) ;
(2) Customizing softkeys
To customize softkeys of CNC screen on path-2 side, use
"crt_setuserskey2()" function. If you want to customize softkeys of both
path-1's and path-2's CNC screen same, call "crt_setuserskey2()" function
next to "crt_setuserskey()" as below.
crt_setuserskey( SKEY_POSITION, skey_tbl_size(skey_table_pos),
skey_table_pos ) ;
crt_setuserskey2( 2, SKEY_POSITION, skey_tbl_size(skey_table_pos),
skey_table_pos ) ;
(3) Displaying screen according to the selected path
To display CNC's information on the user screen, read CNC information of
the selected path and display them on the screen. CNC window functions which
are used to read or write CNC information input from or output to the
selected path. Concretely, read the selected path, and then specify input/
output path for CNC window functions in displaying process as below.
int path ;
static int path_save = 1 ;
crt_getcurscrn2( &path, NULL ) ; // Read the selected path.
if ( path != path_save ) { // If new path is selected,
cnc_setpath( path ) ; // Change I/O path for CNC window.
path_save = path ;
}
By calling "cnc_setpath( path )", CNC window functions which are called after
that "cnc_setpath()" input from or output to the specified path.