Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 401 -
------------------------------------------------------------------------------
1.38 Read CNC status information. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_statinfo
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_statinfo( struct odbst *buf ) ;
struct odbst {
int dummy[2] ; /* Not used. */
int aut ; /* Operation mode. */
int run ; /* Status of automatic operation. */
int motion ; /* Status of axis motion and */
/* dwelling. */
int mstb ; /* Status of M,S,T,B functions. */
int emergency ; /* Status of emergency stop and */
/* resetting. */
int alarm ; /* Status of alarm. */
int edit ; /* Status of program editing. */
} ;
[Arguments]
buf Buffer in which the status informations are stored.
[Return]
0 Successful.
[Description]
Reads the status informations of CNC which are displayed in the bottom
of the NC's screen.
This function reads the following status informations.
(1) Operation mode (aut)
Value Display Meaning
-------+-------+-----------------------------------
0 MDI Manual data input mode
1 MEM Automatic operation mode
2 **** Not used
3 EDIT Memory editing mode
4 HND Manual handle feed mode
5 JOG Manual continuous feed mode
6 TJOG TEACH IN JOG mode
7 THND TEACH IN HANDLE mode
8 INC Manual incremental feed mode
9 REF Manual reference position return mode
10 RMT Automatic operation (Tape command) mode