#include "fwlib32.h" or "fwlib64.h"FWLIBAPI short WINAPI cnc_statinfo2(unsigned short FlibHndl, ODBST2 *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.
* In case of multi-path, all status exist for each path.
typedef struct odbst2 {
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 */
short warning; /* Status of wraning */
short o3dchk; /* Status of 3D interference mode */
short ext_opt; /* Status of option */
short restart; /* Status of restart after program editing */
} ODBST2 ;
hdck
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
:
LeaKaGe 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
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)
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)(30i, 0i-F)(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)(0i-D:No.13104#0=1)
23
:
AICC 2(during AI coutour control II)(30i, 0i-F)(0i-D:No.13104#0=1)
AICC(during AI coutour control)(0i-D:No.13104#0=0)
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)(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
:
RVRS(during retracing)
11
:
RTRY(during reprogressing)
12
:
RVED(end of retracing)
13
:
(Not used)
14
:
PTRR(during tool retraction and recovery mode)
15
:
(Not used)
16
:
AICC(during AI coutour control)(30i, 0i-F)(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
:
(Not used)
22
:
(Not used)
23
:
AICC 2(during AI coutour control II)(30i, 0i-F)(0i-D:No.13104#0=1)
AICC(during AI coutour control)(0i-D:No.13104#0=0)
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)(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)
warning
Status of warning
0
:
(No warning)
1
:
WaRNing(Start from middle of program)
o3dchk
o3dchk Status of 3D interference mode
0
:
Not 3D interference mode
1
:
3D interference mode by Built-in 3D interference check
2
:
3D interference mode by presonal computer function
ext_opt
Status of option
0
:
Normal
2
:
Temporary setting mode
3
:
Waiting of certification
restart
Status of auto running restart after program editing.
0
:
It is either of the following status.
- Program did not edit.
- Parameter No.10330#7 which is display the message for confirmation of auto running restart is not effective.
- CNC does not support this function.
1
:
- Program is edited.
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.