Description
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
- Series 15i (only Ethernet)
- Series 16i/18i/21i, 0i-A/B/C, Power Mate i (only Ethernet)
- Series 30i, 0i-D/F, PMi-A
| 0 | : | Background P/S | (BG) | 
| 1 | : | Foreground P/S | (PS) | 
| 2 | : | Overheat alarm | (OH) | 
| 3 | : | Sub-CPU error | (SB) | 
| 4 | : | Syncronized error | (SN) | 
| 5 | : | Parameter switch on | (SW) | 
| 6 | : | Overtravel,External data | (OT) | 
| 7 | : | PMC error | (PC) | 
| 8 | : | External alarm message (1) | (EX) | 
| 9 | : | (Not used) | |
| 10 | : | Serious P/S | (SR) | 
| 11 | : | (Not used) | |
| 12 | : | Servo alarm | (SV) | 
| 13 | : | I/O error | (IO) | 
| 14 | : | Power off parameter set | (PW) | 
| 15 | : | (Not used) | |
| 16 | : | External alarm message (2) | (EX) | 
| 17 | : | External alarm message (3) | (EX) | 
| 18 | : | External alarm message (4) | (EX) | 
| 19 | : | Macro alarm | (MC) | 
| 20 | : | Spindle alarm | (SP) | 
| -1 | : | all type | 
| 0 | : | P/S100 | 
| 1 | : | P/S000 | 
| 2 | : | P/S101 | 
| 3 | : | P/S alarm except above | 
| 4 | : | Overtravel alarm | 
| 5 | : | Overheat alarm | 
| 6 | : | Servo alarm | 
| 7 | : | (Not used) | 
| 8 | : | APC alarm | 
| 9 | : | Spindle alarm | 
| 10 | : | P/S alarm(No.5000,..), Punchpress alarm | 
| 11 | : | Laser alarm | 
| 12 | : | (Not used) | 
| 13 | : | Rigid tap alarm | 
| 14 | : | (Not used) | 
| 15 | : | External alarm message | 
| -1 | : | all type | 
| 0 | : | Parameter switch on | (SW) | 
| 1 | : | Power off parameter set | (PW) | 
| 2 | : | I/O error | (IO) | 
| 3 | : | Foreground P/S | (PS) | 
| 4 | : | Overtravel,External data | (OT) | 
| 5 | : | Overheat alarm | (OH) | 
| 6 | : | Servo alarm | (SV) | 
| 7 | : | Data I/O error | (SR) | 
| 8 | : | Macro alarm | (MC) | 
| 9 | : | Spindle alarm | (SP) | 
| 10 | : | Other alarm(DS) | (DS) | 
| 11 | : | Alarm concerning Malfunction prevent functions | (IE) | 
| 12 | : | Background P/S | (BG) | 
| 13 | : | Syncronized error | (SN) | 
| 14 | : | (reserved) | |
| 15 | : | External alarm message | (EX) | 
| 16 | : | (reserved) | |
| 17 | : | (reserved) | |
| 18 | : | (reserved) | |
| 19 | : | PMC error | (PC) | 
| -1 | : | all type | 
typedef struct odbalmmsg {
        long alm_no ;           /* alarm number */
        short type ;            /* alarm type */
        short axis ;            /* axis number */
        short dummy ;           /* reserved */
        short msg_len ;         /* message length */
        char alm_msg[32];       /* alarm message */
} ODBALMMSG;
| English | : | ASCII | 
| Japanese | : | Shift-JIS | 
| Simplified Chinese | : | Shift-JIS | 
| Traditional Chinese | : | GB2312 | 
| Korean | : | Code Page 949 | 
| Cyrillic | : | Code Page 1251 | 
| Turkish | : | Code Page 1254 | 
| Others European | : | Western Europe | 
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
The major error codes are as follows.
| Return code | Meaning/Error handling | 
|---|---|
| (2) | The alarm message number (*num) is 0 or less. | 
| (4) | The specification of alarm type (type) is wrong. | 
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
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) | |||||||||||||||||
| T (Turning) | - | ||||||||||||||||
| LC (Loader) | - | - | - | - | - | - | - | - | 
| 0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
|---|---|---|---|---|---|---|
| P (Punch press) | - | |||||
| L (Laser) | - | - | - | - | ||
| W (Wire) | - | - | 
| Power Mate i-D | |
| Power Mate i-H | |
| 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
cnc_alarm cnc_alarm2 cnc_rdalminfo cnc_rdalmmsg2