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 ldconfig
sudo 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/FOCAS2
This 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.ini
file to configure FOCAS2 connection and other parameters -
Run the adapter
./FanucAdapter
The 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