Hello, fellow members! I'm currently dealing with an issue involving my CIFX PB card that I'm trying to get to work with CODESYS Control for Linux SL. I'm at a bit of a loss when it comes to configuring the CIFX card so that it's visible. Does anyone have any experience or know of any tutorials that detail the steps for CODESYS startup?
I've managed to successfully install the Hilscher FW on my Linux machine, but now I'm stuck trying to get the card to work with CODESYS properly.
In my search for solutions, I've come across this tutorial (https://help.codesys.com/webapp/_cds_rtev3_startup_cifx_hil;product=core_codesys_control;version=3.5.17.0), but it's designed for Win RTE, and I can't seem to adapt it for Linux.
Any help would be greatly appreciated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Firstly, thanks for the help so far! Following your advice, I've managed to get the device downloading without any issues. However, it's still not fully up and running - I'm seeing "Device is configured, but not fully operational. No data is exchanged." The attached image might give you a better idea of the current state:
Also, the CIFX card is throwing this error: "internal CIFX error, e.g during firmware configuration or bus startup." It seems the bus startup might be the sticking point here.
Have you got any experience with getting the bus to start up correctly? Or maybe some good manuals on C code configuration? Any guidance would be appreciated.
By the way, here's how the card looks to me in the Linux environment right now:
I have been attempting to diagnose the issue, and at present, I am encountering a problem with the card drivers not being loaded correctly by the CODESYS runtime. The log file shows the following message:
Currently, I am trying to configure the firmware paths, as shown in the:
I must mention that I have attempted various approaches to address the issue with the paths, but I have exhausted all my ideas on how to resolve this problem.
Anybody got any suggestions? I have successfully made the card running and operational in the program SYCON.net but no luck in CODESYS... I would really like to make the card finally running.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, fellow members! I'm currently dealing with an issue involving my CIFX PB card that I'm trying to get to work with CODESYS Control for Linux SL. I'm at a bit of a loss when it comes to configuring the CIFX card so that it's visible. Does anyone have any experience or know of any tutorials that detail the steps for CODESYS startup?
I've managed to successfully install the Hilscher FW on my Linux machine, but now I'm stuck trying to get the card to work with CODESYS properly.
In my search for solutions, I've come across this tutorial (https://help.codesys.com/webapp/_cds_rtev3_startup_cifx_hil;product=core_codesys_control;version=3.5.17.0), but it's designed for Win RTE, and I can't seem to adapt it for Linux.
Any help would be greatly appreciated!
you need to add in:
/etc/CODESYSControl_Users.cfg
[ComponentManager]
Component.1=SysPci
Component.2=CmpHilscherCIFX
then execute in the linux cmdline:
lspci
if you get: "Kernel driver in use: netx" -> this is a problem
please remove it by
modprobe -r netx
or
rmmod netx
Firstly, thanks for the help so far! Following your advice, I've managed to get the device downloading without any issues. However, it's still not fully up and running - I'm seeing "Device is configured, but not fully operational. No data is exchanged." The attached image might give you a better idea of the current state:
Also, the CIFX card is throwing this error: "internal CIFX error, e.g during firmware configuration or bus startup." It seems the bus startup might be the sticking point here.
Have you got any experience with getting the bus to start up correctly? Or maybe some good manuals on C code configuration? Any guidance would be appreciated.
By the way, here's how the card looks to me in the Linux environment right now:
Last edit: vformanek 2023-08-01
remove the cifx kernel module..check the plc logger are the next steps
I have been attempting to diagnose the issue, and at present, I am encountering a problem with the card drivers not being loaded correctly by the CODESYS runtime. The log file shows the following message:
Moreover, I am still unable to recognize the firmware on the card, and the Profibus DP is not functioning, which is illustrated in the 'problem.png' image. In my efforts to resolve this matter, I have referred to the following manual: https://content.helpme-codesys.com/en/CODESYS%20PROFINET/_pnio_runtime_configuration_cifx.html
Currently, I am trying to configure the firmware paths, as shown in the:
I must mention that I have attempted various approaches to address the issue with the paths, but I have exhausted all my ideas on how to resolve this problem.
Anybody got any suggestions? I have successfully made the card running and operational in the program SYCON.net but no luck in CODESYS... I would really like to make the card finally running.
Could there be a problem with CODESYS version ? I am using 3.5.18 Patch 5.