DLL integration in ctrlX PLC Engineering

Hello everyone, I'm new in cltlX platform and I'm facing the problem of integrating DLL libraries in PLC programs.

I successfully managed to create and link to a progect a 'C Implemented Library' object following the standard procedure for DLL integration in CODESYS platforms (see here).

However, when I try to download the project on the target (I'm using a ctrlX CORE virtual) the following error occurs:

 

Is there something I'm missing in the configuration of the ctrlX CORE or it is simply not possible to use the DLL integration with the virtual controller?

Thank to everyone 

 

Best reply by CodeShepherd

The CODESYS C++ implementation feature is not supported in a ctrlX PLC app. Mainly because

  • implementing it from customer side needs a lot of effort
  • influence to the realtime system is unpredictable
  • the code cannot be debugged so searching for error reasons is quite not possible
  • the CODESYS Developer edition with further license charges is needed.

We created an alternative solution in the ctrlX OS to use our realtime SDK to add C++ function via a Celix bundle into our system, that can be used from the PLC as external implemented function. This ways was implemented because:

  • code can be debugged
  • build application is following the ctrlX OS way
  • as it is a Rexroth feature, better support can be granted


See the how area for web-based trainings for app programming and also the FAQ for the SDK for ctrlX AUTOMATION.

View original
1 reply