Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 556 -
------------------------------------------------------------------------------
1.99 Get path index (multi-path system). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_getpath
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_getpath( int *path_no, int *maxpath_no ) ;
[Arguments]
path_no Current selected path number.
maxpath_no Maximum path number.
[Return]
0 Successful.
[Description]
Reads the current selected path number which is the objective path of
the CNC window functions.
The current selected path number ("1" or "2") is stored in "path_no"
with binary format. The maximum selectable path number is stored in
"maxpath_no" with binary format.
[Example]
The following program reads the current objective path number, and
displays it.
#include <data.h>
#include <fwindow.h>
#include <stdio.h>
void example( void )
{
int path, max ;
cnc_getpath( &path, &max ) ;
printf( "Current target path is PATH #%d (max:%d).\n", path, max ) ;
}