Description
Reads an error code
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specifies the pointer to the T_ERR_CODE structure to store the acquired parameter.
The T_ERR_CODE structure is as follows.
typedef struct _T_ERR_CODE{
unsigned short param_err_code[4];
unsigned short inter_err_code[4];
} T_ERR_CODE;
- param_err_code[0]
0 : normal ("code2" is not used) 1 : There is a slave that has illegal total of DI/DO size. When the total of DI/DO size in a certain slave exceeds 244 bytes. ("code2" indicates a corresponding slave. And if multiple slaves are corresponding slave, it indicates a slave of the smallest number.) 2 : There is a slave that doesn't have slots. ("code2" indicates a corresponding slave. And if multiple slaves are corresponding slave, it indicates a slave of the smallest number.) 3 : There is a slave that exceeds the permissible size of slave parameter. ("code2" indicates a corresponding slave. And if multiple slaves are corresponding slave, it indicates a slave of the smallest number.) 4 : There is an invalid slot that has an invalid module data. (The upper byte of "code2" indicates a corresponding slave and the lower byte indicates a corresponding slot. And if multiple slots are corresponding slot, it indicates a slot of the smallest number.) 5 : There is an invalid slot that exceeds the permissible total size (244bytes) of DI/DO data. ("code2" indicates a corresponding slave. And if multiple slaves are corresponding slave, it indicates a slave of the smallest number.) - param_err_code[1]
- detail error code of param_err_code[0]
- param_err_code[2]
- unused
- param_err_code[3]
- unused
- inter_err_code[0]
- Error code 1 for maintenance
- inter_err_code[1]
- Error code 2 for maintenance
- inter_err_code[2]
- unused
- inter_err_code[3]
- unused
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 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
(6) |
In order to get more information for this err_no return value, execute cnc_getdtailerr function. err_no of ODBERR structure.
|
|||||||||
(13) |
In order to get more information for this err_no return value, execute cnc_getdtailerr function. err_no of ODBERR structure.
|
As for the other return codes or the details, see "Return status of Data window function"
CNC option
This function need the following CNC option.
For HSSB connection,
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 | H |
"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
pbm_ini_prm pbm_rd_allslvtbl pbm_exe_subfunc pbm_rd_subprm