Step 1: Navigate to the location of the four header files in the library (PMC_Enums.h, PMC_Structs.h, PMC_Cpp_API.h, PMC_Acontis_Cpp_API.h)
Step 2: Copy the four header files into the project workspace
Step 3: Include PMC_Acontis_Cpp_API.h in the project
Step 4: Then take the libPMC_Cpp_API.so and libPMC_Acontis_Cpp_API.so files
Step 5: And put them into the project workspace
Step 6: To use the library either
Add target_include_directory(${AppName} PRIVATE ${path/to/headers}) and target_link_libraries(${AppName} PRIVATE ${path/to/.so}) to the CMakeList script compiling, or
Include the header and library manually in the build CLI. i.e. g++ ... -I/path/to/headers -L/path/to/.so/
Step 7: It is advised to add using namespace PMC; to the project so that you don’t have to add PMC:: in front of all PMC function calls and variable declarations
Step 8: When using the PMC library, ConnectToPMC must be called after calling ecatConfigureNetwork prior to using the rest of the library
Step 9: AutoRefresh needs to be called regularly at the same rate as the EtherCAT bus. It is recommended to spin up a separate thread to handle this task
JavaScript errors detected
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.