After downloading FOCAS library with several dll files and a focas library C# file, I tried to create a program to get the data from the machine based on the instruction of functions in FOCAS library ( -focas-library/general/fwlib32).
To elaborate the situation, I made a solution called "FanucCNCDataAcquisition.sln" by using Visual Studio 2019 and I stored two projects: one is FOCASLibrary which has a Focas32.cs for the library purpose and the other is DataAcquisition which has a program.cs for execution with the reference on the focas library. I downloaded several .dll files including FOCAS32.dll and those are not in the same directory with the solution so I am curious if the cause of the problem is based on the location of the files.
The FOCAS library functions are exposed by the methods of the fanuc class inside the com.eurotech.fanuc.bindings package. Since these methods directly wrap FOCAS functions, please refer to the FOCAS library documentation.
The com.eurotech.addons.esf.fanuc.driver package provides a Driver that allows to read CNC diagnostic data and parameters using the Wires and Asset models.
The driver depends on the com.eurotech.addons.esf.fanuc.core bundle.
The com.eurotech.addons.esf.fanuc.command bundle provides some OSGi console commands that allows to use the functionalities provided by the com.eurotech.addons.esf.fanuc.core bundle. It is only possible to interact with a single CNC at a time with the command bundle. The Driver and the core package do not impose any limitation on the number of CNCs that can be accessed simultaneously.