Is it possible to get hardware access to the canbus interface of AXL F IF CAN 1H directly from linux running on AXC F 2152 using socketcan? The modules needed are not available, so i suspect it’s not already compiled in the running kernel.
If not, what would be the best way of exposing canbus data to a user program in linux?
Running AXC F 2152 with firmware revision 0/2022.0.4
Welcome to the PLCnext Community.
The AXL F IF CAN 1H can only be accessed over the Axioline bus, by exchanging “Process Data”, and there is currently no driver available that would make this accessible through something like socketcan.
There are different possibilities, depending on the type of application that needs to exchange data with the CAN module. For example, is the application:
* Stand-alone, completely independent of the PLCnext Runtime?
* A "runtime"-type application controlled by the PLCnext Runtime, similar to the [Sample Runtime](https://github.com/PLCnext/SampleRuntime) example?
* A C++ component or program that uses the [Application Component Framework](https://www.plcnext.help/te/Programming/Cpp/Cpp_program_structure/ACF_Application_Component_Framework.htm) (ACF) or [Program Library Manager](https://www.plcnext.help/te/Programming/Cpp/Cpp_program_structure/PLM_Program_Library_Manager.htm) (PLM) in the PLCnext Runtime?
* An IEC 61131 program developed in PLCnext Engineer?
Each of those types of applications has the possibility to use different ways of exchanging process data with Axioline I/O modules. If you know what type of application you want to develop, we can give more details on the possibility(s) for that type of application.
Currently we are developing a stand-alone application, fully independent from the PLCnext runtime. We build most of our software to run as docker containers, these applications are portable and can run on most hardware that supports docker. The major difference between hardware similar to PLCnext plc’s and other competitors are the way fieldbus interfaces are exposed to the operating system.
Since the canbus is not directly exposed in linux, I suspect that i need to do a mix, where we develop a simple IEC 61131 program, than handles the canbus communications and exchange the data we need from that program to our docker applications using the rest api provided. This is very much undecided in our end, so any good recommendations from you guys will be highly appreciated.