Description
Reads the status information of CNC. The various information is stored in each member of "ODBST". MTConnect Fanuc AdapterUniversal Fanuc Driver
Fanuc Focas Library CD
Declaration
FWLIBAPI short WINAPI cnc_statinfo(unsigned short FlibHndl, ODBST *statinfo);
Arguments
Specify the library handle. See "Library handle" for details.
There is difference at the structure between Series 15/15i, Series 16/18/21/16i/18i/21i/0i/30i/Power Mate i/PMi-A.
- Series 15/15i
typedef struct odbst {
short dummy[2]; /* Not used */
short aut; /* AUTOMATIC mode selection */
short manual; /* MANUAL mode selection */
short run; /* Status of automatic operation */
short edit; /* Status of program editing */
short motion; /* Status of axis movement,dwell */
short mstb; /* Status of M,S,T,B function */
short emergency; /* Status of emergency */
short write; /* Status of writing backupped memory */
short labelskip; /* Status of label skip */
short alarm; /* Status of alarm */
short warning; /* Status of warning */
short battery; /* Status of battery */
} ODBST ;
* In case of multi-path, there are difference of path for only Status of axis movement, dwell", and Status of M,S,T,B function". As for the other status, there is no difference.
- aut
- AUTOMATIC mode selection
0 : ****(No selection) 1 : MDI 2 : TAPE(Series 15), DNC(Series 15i) 3 : MEMory 4 : EDIT 5 : TeacH IN - manual
- MANUAL mode selection
0 : ***(No selection) 1 : REFerence 2 : INC·feed 3 : HaNDle 4 : JOG 5 : AnGular Jog 6 : Inc+Handl 7 : Jog+Handl - run
- Status of automatic operation
0 : STOP 1 : HOLD 2 : STaRT 3 : MSTR(jog mdi) 4 : ReSTaRt(not blinking)
Except under manual mode and under cutter radius compensation outside corner5 : PRSR(program restart) 6 : NSRC(sequence number search) 7 : ReSTaRt(blinking)
Under manual mode or under cutter radius compensation outside corner8 : ReSET 9 : (Not used) 10 : (Not used) 11 : (Not used) 12 : (Not used) 13 : HPCC(during RISC operation) - edit
- Status of program editing
0 : ****(Not editing) 1 : EDIT 2 : SeaRCH 3 : VeRiFY 4 : CONDense 5 : READ 6 : PuNCH - motion
- Status of axis movement,dwell
0 : *** 1 : MoTioN 2 : DWeLl 3 : Wait (waiting:only TT) - mstb
- Status of M,S,T,B function
0 : *** 1 : FIN - emergency
- Status of emergency
0 : (Not emergency) 1 : EMerGency - write
- Status of writing backupped memory
0 : (Not writing) 1 : @(writing) - labelskip
- Status of label skip
0 : Label SKip 1 : (Not label skip) - alarm
- Status of alarm
0 : (No alarm) 1 : ALarM - warning
- Status of warning
0 : (No warning) 1 : WaRNing - battery
- Status of battery
0 : (Normal) 1 : BATtery low(backupped memory) 2 : BATtery low(absolute position detector)
* In case of multi-path, all status exist for each path.
typedef struct odbst {
short hdck ; /* Status of manual handle re-trace */
short tmmode ; /* T/M mode selection */
short aut ; /* AUTOMATIC/MANUAL mode selection */
short run ; /* Status of automatic operation */
short motion ; /* Status of axis movement,dwell */
short mstb ; /* Status of M,S,T,B function */
short emergency ; /* Status of emergency */
short alarm ; /* Status of alarm */
short edit ; /* Status of program editing */
} ODBST ;
- hdck (30i/31i/32i, 0i-D/F only)
- Status of manual handle re-trace
0 : Invalid of manual handle re-trace 1 : M.H.RTR.(Manual handle re-trace) 2 : NO RVRS.(Backward movement prohibition) 3 : NO CHAG.(Direction change prohibition) - tmmode
- T/M mode selection (only with compound machining function)
0 : T mode 1 : M mode - aut
- AUTOMATIC/MANUAL mode selection
0 : MDI 1 : MEMory 2 : **** 3 : EDIT 4 : HaNDle 5 : JOG 6 : Teach in JOG 7 : Teach in HaNDle 8 : INC·feed 9 : REFerence 10 : ReMoTe - run
- Status of automatic operation
0 : ****(reset) 1 : STOP 2 : HOLD 3 : STaRT 4 : MSTR(during retraction and re-positioning of tool retraction and recovery, and operation of JOG MDI) - motion
- Status of axis movement, dwell
0 : *** 1 : MoTioN 2 : DWeLl - mstb
- Status of M,S,T,B function
0 : ***(Others) 1 : FIN - emergency
- Status of emergency
0 : (Not emergency) 1 : EMerGency 2 : ReSET 3 : WAIT(FS35i only) - alarm
- Status of alarm
0 : ***(Others) 1 : ALarM 2 : BATtery low 3 : FAN(NC or Servo amplifier) 4 : PS Warning 5 : FSsB warning 6 : INSulate warning 7 : ENCoder warning 8 : PMC alarm - edit
- Status of others
In case of 0i-D, the meaning of status(16,21,23,42,44,46) is changed according to the parameter No.13104#0.(same as 30i)
- M series (including Power Mate i)
0 : ****(Not editing) 1 : EDIT(during editing) 2 : SeaRCH(during searching) 3 : OUTPUT(during output) 4 : INPUT(during input) 5 : COMPARE((during comparing) 6 : Label SKip(label skip status)(30i, 0i-D/F are unused.) 7 : ReSTaRt(during program restart) 8 : HPCC(during RISC operation)(FS16i/18i only) 9 : PTRR(during tool retraction and recovery mode) 10 : RVRS(during retracing) 11 : RTRY(during reprogressing) 12 : RVED(end of retracing) 13 : HANDLE(during handle overlapping)(30i, 0i-D/F are unused.) 14 : OFfSeT(during tool length measurement mode) 15 : Work OFfSet(during work zero point measurement mode) 16 : AICC(during AI coutour control)
AICC(during AI coutour control)(0i-D:No.13104#0=1)
AI APC(during AI advanced preview control)(0i-D:No.13104#0=0)17 : MEmory-CHecK(checking tape memory)(30i, 0i-D/F are unused.) 18 : CusToMer´s BoarD(during customer's board control)(30i, 0i-D/F are unused.) 19 : SAVE(saving fine torque sensing data)(30i, 0i-D/F are unused.) 20 : AI NANO(during AI nano contour control)(30i, 0i-D/F are unused.) 21 : AI APC(during AI advanced preview control) (21i-MA)(0i-D:No.13104#0=1) 22 : MBL APC(during multi blocks advanced preview control) (0i-MA only) 23 : NANO HP(Running of AI High-precision Contour Control)
AICC 2(during AI coutour control II)(30i, 0i-F)
AICC 2(during AI coutour control II)(0i-D:No.13104#0=1)
AICC(during AI coutour control)(0i-D:No.13104#0=0)24 : AI HPCC(Running of AI Nano High-precision Contour Control) 25 : 5-AXIS(Running of 5-axes machining) 26 : LEN(change the manual active offset value:length offset change mode) 27 : RAD(change the manual active offset value:radius offset change mode) 28 : WZR(change the manual active offset value:workpiece origin offset change mode) 39 : TCP(during tool center point control of 5-axes machining) 40 : TWP(during tilted working plane command) 41 : TCP+TWP(during tool center point control of 5-axes machining and tilted working plane command) 42 : APC(Advanced Preview Control)(16i/18i/21i,0i-C)
APC(Advanced Preview Control)(0i-D:No.13104#0=1)43 : PRG-CHK(High speed program check) 44 : APC(Advanced Preview Control)(0i-D:No.13104#0=0) 45 : S-TCP(during smooth TCP)(30i, 0i-F) 46 : AICC 2(during AI coutour control II)(0i-D:No.13104#0=0) 59 : ALLSAVE(High speed program management:the programs saving in progress) 60 : NOTSAVE(High speed program management:by the programs not saved status) - T series
0 : ****(Not editing) 1 : EDIT(during editing) 2 : SeaRCH(during searching) 3 : OUTPUT(during output) 4 : INPUT(during input) 5 : COMPARE(during comparing) 6 : Label SKip(label skip status)(30i, 0i-D/F are unused.) 7 : OFfSeT(during writing mode of tool length compensation amount) 8 : Work ShiFT(during writing mode of work shift amount) 9 : ReSTaRt(during program restart) 10 : 16i:(Not used), 30i, 0i-F:RVRS(during retracing) 11 : 16i:(Not used), 30i, 0i-F:RTRY(during reprogressing) 12 : 16i:(Not used), 30i, 0i-F:RVED(end of retracing) 13 : (Not used) 14 : PTRR(during tool retraction and recovery mode) 15 : (Not used) 16 : AICC(during AI coutour control)
AICC(during AI coutour control)(0i-D:No.13104#0=1)
AI APC(during AI advanced preview control)(0i-D:No.13104#0=0)17 : MEmory-CHecK(checking tape memory)(30i, 0i-D/F are unused.) 18 : (Not used) 19 : SAVE(saving fine torque sensing data)(30i, 0i-D/F are unused.) 20 : AI NANO(during AI nano contour control)(30i, 0i-D/F are unused.) 21 : HPCC(during RISC operation) 22 : (Not used) 23 : NANO HP(Running of AI High-precision Contour Control)
AICC 2(during AI coutour control II)(30i, 0i-F)
AICC 2(during AI coutour control II)(0i-D:No.13104#0=1)
AICC(during AI coutour control)(0i-D:No.13104#0=0)24 : AI HPCC(Running of AI Nano High-precision Contour Control) 25 : 5-AXIS(Running of 5-axes machining) 26 : OFSX(change the manual active offset value:X-axis offset change mode) 27 : OFSZ(change the manual active offset value:Z-axis offset change mode) 28 : WZR(change the manual active offset value:workpiece origin offset change mode) 29 : OFSY(change the manual active offset value:Y-axis offset change mode) 31 : TOFS(change the manual active offset value:Tool offset change mode) 39 : TCP(during tool center point control of 5-axes machining) 40 : TWP(during tilted working plane command) 41 : TCP+TWP(during tool center point control of 5-axes machining and tilted working plane command) 42 : APC(Advanced Preview Control)(16i/18i/21i,0i-C)
APC(Advanced Preview Control)(0i-D:No.13104#0=1)43 : PRG-CHK(High speed program check) 44 : APC(Advanced Preview Control)(0i-D:No.13104#0=0) 45 : S-TCP(during smooth TCP)(30i, 0i-F) 59 : ALLSAVE(High speed program management:the programs saving in progress) 60 : NOTSAVE(High speed program management:by the programs not saved status)
- M series (including Power Mate i)
- Series 16i/18i-W
typedef struct odbst {
short dummy[2] ; /* Not used */
short aut ; /* AUTOMATIC/MANUAL mode selection */
short run ; /* Status of automatic operation */
short motion ; /* Status of axis movement,dwell */
short mstb ; /* Status of M,S,T,B function */
short emergency ; /* Status of emergency */
short alarm ; /* Status of alarm */
short edit ; /* Status of program editing */
} ODBST ;
- aut
- AUTOMATIC/MANUAL mode selection
0 : MDI 1 : MEM 3 : EDT 4 : HAND 5 : JOG 10 : TAPE - run
- Status of automatic operation
0 : NOT READY 1 : M-READY 2 : C-START 3 : F-HOLD 4 : B-STOP - motion
- Status of axis movement, dwell
0 : **** 1 : CMTN 2 : CDWL - mstb
- Status of M,S,T,B function
0 : **** 1 : CFIN - emergency
- (Not used)
- alarm
- Status of alarm
0 : ****(Not emergency) 1 : ALARM 2 : BATTERY LOW - edit
- Status of program editing
0 : ****(Not editing) 1 : EDITING(during search) 2 : SEARCH(during search) 3 : RESTART(during restart) 4 : RETRACE(during retrace)
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
As for the details, see "Return status of Data window function"
CNC option
For HSSB connection,
The extended driver/library function is necessary.
For Ethernet connection,
The Ethernet function and the extended driver/library function are necessary.
However, in case of Series 16i/18i/21i-B, 0i-B/C/D/F, Series 30i and PMi-A, the required CNC option is as follows.
When Embedded Ethernet is used,
- above two optional functions are not required.
When Ethernet board is used,
- only Ethernet function is required.
CNC parameter
This function is not related to CNC parameter.
CNC mode
This function can be used in any CNC mode.
Available CNC
0i-A | 0i-B/C(Note) | 0i-D | 0i-F | 15 | 15i | 16 | 18 | 21 | 16i-A | 18i-A | 21i-A | 16i-B | 18i-B | 21i-B | 30i-A | 30i-B | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
M (Machining) | H | O | O | O | H | O | H | H | H | O | O | O | O | O | O | O | O |
T (Turning) | H | O | O | O | H | - | H | H | H | O | O | O | O | O | O | O | O |
LC (Loader) | - | - | - | - | - | - | H | H | H | H | H | H | H | H | H | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | O | O | O | O | - | O |
L (Laser) | - | - | O | - | - | O |
W (Wire) | - | - | O | O | O | O |
Power Mate i-D | O |
Power Mate i-H | O |
Power Motion i-A | O |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.
See Also