FOCAS2 library is required to interface with the FANUC CNC machine controller.
Once you have the FOCAS2 library, go into the directory containing the library and follow the steps below,
- Install the FOCAS2 library
sudo cp libfwlib32.so.1.0.0 /usr/local/lib/libfwlib32.so.1.0.0 sudo ldconfigsudo ln -s /usr/local/lib/libfwlib32.so.1.0.0 /usr/local/lib/libfwlib32.so- Copy the FOCAS2 header file to the right location
sudo cp Fwlib32.h ~/MTConnect_FANUC-adapter/lib/FOCAS2This should complete the steps required to install the FOCAS2 library.
Once the FOCAS2 library is installed, navigate to the directory of this repository.
- Run cmake and then make
cmake .make-
Edit the
adapter.inifile to configure FOCAS2 connection and other parameters -
Run the adapter
./FanucAdapterThe adapter should start running by this point and connect to the CNC machine.
- Ability to compile for different FANUC CNC controller series
- Adding more data items to be sent out by the adapter
- MTConnect Adapter Repository -> https://github.com/mtconnect/adapter
- Reading ".ini" files -> https://github.com/compuphase/minIni