Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

ctrlX PLC Engineering: Integrating C Modules

ctrlX PLC Engineering: Integrating C Modules

bostroemc
Occasional Contributor

Our documentation implies that users can integrate C code into their PLC Engineering projects:

2023-11-28_04h31_42.png

Do we actually support this?  I do not see the required object ("C Code Module") in the context menu,

2023-11-28_04h34_01.png

nor is it clear to me that we are including the required runtime license.

If we don't currently support this feature, are there plans to support it in the future?

Thanks, -Carl

7 REPLIES 7

georkueh
Community Moderator
Community Moderator

This feature is currently not supported for ctrlX CORE devices. We will provide a mechanism to integrate external PLC POUs in combination with our SDK until RM 24.03.

Sgilk
Frequent Contributor

@georkueh ,

Is there an update on this? It seems the C Code integration plugin is still not implemented.

CodeShepherd
Community Moderator
Community Moderator

We will not support the CODESYS plugin as we see the disadvantages of not being able to debug the code.

We already implemented a way to use the real time SDK for ctrlX AUTOMATION to add C++ code to the PLC (declared as external) via standard ctlX AUTOMATION mechanisms. For further information about the RT SDK see "FAQ for SDK for ctrlX AUTOMATION".

aFouraker
Occasional Contributor

@CodeShepherd, I cannot understand the benefits of this.

Why remove features that would make the transition from CoDeSys, Beckhoff, B&R (amongst others) easier? The lack of debugging is a question that can be evaluated when making that transition. It makes sense to add features like debuggable code in apps  but removing features that codesys supports makes very little sense. Adding options creates an open and accesible programming environment, not removing. 

The feature is not removed from our installation but as we decided to go the more convenient ctrlX AUTOMATION way we do not support the CODESYS one. So usage is on own risk.

aFouraker
Occasional Contributor

@CodeShepherd, so that I understand, this is supported by codesys and we have not removed the functionality but usage will be at your own risk?

Does this include both the C modules and C library integration?

 

So I suggest that the C-module needs to be compiled and directly be added to the runtime. This is not possible as the runtime is packed into a snap and could not find any object added somewhere else. Even some runtime configuration files would need to get manipulated what is not possible in our environment for normal users. In short it is not possible in ctrlX AUTOMATION.

If there are further questions or clarifications needed feel free to contact me directly with your contact data so we could have a direct discussion.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist