Description
Reads the CNC ID number.
The CNC ID numbers are stored in "cncid" with unsigned binary format.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
FWLIBAPI short WINAPI cnc_rdcncid(unsigned short FlibHndl, unsigned long *cncid);
Arguments
Specify the library handle. See "Library handle" for details.
Pointer to unsigned long data including the CNC ID numbers.
Prepare 4 arrays for the CNC ID number.
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 |
---|---|
EW_FUNC (1) |
This function is not available. |
As for the other return codes or 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 0i-F, 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) | X | X | O | O | X | X | X | X | X | X | X | X | X | X | X | O | O |
T (Turning) | X | X | O | O | X | - | X | X | X | X | X | X | X | X | X | O | O |
LC (Loader) | - | - | - | - | - | - | X | X | X | X | X | X | X | X | X | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | O | O | X | X | - | O |
L (Laser) | - | - | X | - | - | O |
W (Wire) | - | - | X | X | O | O |
Power Mate i-D | X |
Power Mate i-H | X |
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.