FWLIBAPI short WINAPI cnc_statinfo(unsigned short FlibHndl, ODBST *statinfo);
Arguments
FlibHndl [ in ]
Specify the library handle. See "Library handle" for details.
statinfo [ out ]
Pointer to the ODBST structure including the status information of CNC.
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 corner
5
:
PRSR(program restart)
6
:
NSRC(sequence number search)
7
:
ReSTaRt(blinking) Under manual mode or under cutter radius compensation outside corner
8
:
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)
Series 16/18/21, 16i/18i/21i, 0i, 30i/31i/32i, Power Mate i, PMi-A, odbst
* 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)
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)
ALLSAVE(High speed program management:the programs saving in progress)
60
:
NOTSAVE(High speed program management:by the programs not saved status)
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.