FANUC CNC driver
troubleshooting
For FANUC CNC driver troubleshooting, the following section lists common tasks and problems and a list of FANUC CNC driver error codes.

The features and functions available in a node are controlled by the licenses that are installed in the node.
To verify that the FANUC CNC license is installed:
- From the Workbench left pane, expand the node whose
license you want to check, and then select
the Administration icon.
- From the Administration window, select
the Licenses tab.
- Select the appropriate license. Details of the
license appear on the tab.
- View the Features field to identify the device driver.
If you do not see the correct license, or if the license is expired, you must request a license from your license key provider.
For information on how to install a license, refer to System Administration > Licenses.

The number of active devices or connections exceed the total active device license count.The server or listener device will reject the connection attempt.
A system generated Alert will be displayed when the number of active device licenses in use exceeds a threshold percentage of the total active device licenses for the node. The Alert is cleared when the usage drops below the threshold percentage. For example, the system is currently using 90% of the available 200 device licenses.
An Exceptions Log message is inserted for the first connection rejection. For example, Device connection rejected due to insufficient device licenses.
For more information, see Licenses.
The device information on the Devices panel for a started server or listener device displays counts on its Attributes sub-tab:
- License In-Use
- License Rejected.

The FANUC CNC driver is not part of this node's installation. The FANUC CNC driver is installed as a separate package, separate from the base product installation.
You may be working with different levels of nodes, each with different levels of support for devices. Ensure that this node's installation is one with support for the FANUC CNC driver.
For information on how to add the FANUC CNC driver package, refer to System Administration > Packages.
Make sure that you have the C++ library (libstdc++.so.6)installed on the operating system for the FANUC CNC Driver to function.

When using Asset Gateway for 64-bit Linux or Enterprise Gateway for 64-bit Windows on CentOS version 7, the FANUC CNC Driver will not be able to be installed. The driver is not supported on these platforms. It is only supported for Ubuntu (amd64 - For 64-bit Intel/AMD (x86_64)) version 16.04 LTS. This is due to the FOCAS2/Ethernet Library not providing support for Linux 64-bit CentOS version 7.
The error that will appear when attempting to add the driver package is:
Library cannot be loaded. (/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /opt/dw/dwcore/lib/libfwlib32.so.1)[-7006])

If you are encountering timeout errors this may be because the FANUC CNC is not supported or the CNC does not have FANUC Focas library support over ethernet.

This section describes the error codes that occur while using the FANUC CNC driver. These error codes are available from the Devices window in the Extended Status column. The error codes are also referenced in the Exceptions Log.
When the system experiences an abnormal condition (such as a device failure, disconnect from a controller, or software error), an error code and extended error code are recorded in the Exceptions Log.
In the Devices window, the Status column will always be a generic error code that can tell you if the error is a communication error, a data error, or some other internal device error. The Extended Status column provides the error code from the driver.
Extended Status Code | Error Name | Description |
---|---|---|
-17 | Protocol error (Ethernet version only) | Data from Ethernet Board is incorrect. Contact with the service section or the section in charge. |
-16 | Socket error (Ethernet version only) | Investigate CNC power supply, Ethernet cable and I/F board. |
-15 | DLL file error | There is no DLL file for each CNC series corresponding to specified node. |
-14 | RESERVED | N/A |
-13 | RESERVED | N/A |
-12 | RESERVED | N/A |
-11 | Bus error (HSSB version only) | A bus error of CNC system occurred. Contact with the service section or the section in charge. |
-10 | System error (2) (HSSB version only) | A system error of CNC system occurred. Contact with the service section or the section in charge. |
-9 | Communication error of HSSB (HSSB version only) | Investigate the serial line or I/F board of HSSB. |
-8 | Handle number error | Get the library handle number. |
-7 | Version mismatch between the CNC/PMC and library | The CNC/PMC version does not match that of the library. Replace the library or the CNC/PMC control software. |
-6 | Abnormal library state | An unanticipated error occurred. Contact with the section in charge. |
-5 | System error (HSSB version only) | A system error of CNC occurred. Contact with the service section or the section in charge. |
-4 | Shared RAM parity error (HSSB version only) | A hardware error occurred. Contact with the service section. |
-3 | FANUC drivers installation error (HSSB version only) | The drivers required for execution are not installed. |
-2 | Reset or stop request | The RESET or STOP button was pressed. Call the termination function. |
-1 | Busy | Wait until the completion of CNC processing, or retry. |
1 | Error(function is not executed, or not available) | Specific function which must be executed beforehand has not been executed. Otherwise that function is not available. |
2 | Error(data block length error, error of number of data) | Check and correct the data block length or number of data. |
3 | Error(data number error) | Check and correct the data number. |
4 | Error(data attribute error) | Check and correct the data attribute. |
5 | Error(data error) | Check and correct the data. For the following operations, this code indicates that the specified program cannot be found. Delete specified program, Search specified program, or Start uploading NC program |
6 | Error(no option) | There is no corresponding CNC option. |
7 | Error(write protection) | Write operation is prohibited. |
8 | Error(memory overflow) | CNC tape memory is overflowed. |
9 | Error(CNC parameter error) | CNC parameter is set incorrectly. |
10 | Error(buffer empty/full) | The buffer is empty or full. Wait until completion of CNC processing, or retry. |
11 | Error(path number error) | A path number is incorrect. |
12 | Error(CNC mode error) | The CNC mode is incorrect. Correct the CNC mode. |
13 | Error(CNC execution rejection) | The execution at the CNC is rejected. Check the condition of execution. |
14 | Error(Data server error) | Some errors occur at the data server. |
15 | Error(alarm) | The function cannot be executed due to an alarm in CNC.
Remove the cause of alarm. |
16 | Error(stop) | CNC status is stop or emergency. |
17 | Error(State of data protection) | Data is protected by the CNC data protection function. |

The Fanuc CNC driver consumes around 35Mbytes of RAM. If you have memory constrained systems, then review your resource availability before incorporating this driver in a solution.