Developer Portal Community

    We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.

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

    Sub Chain Limit - Is There A Way To Increase The Maximum Limit?

    Sub Chain Limit - Is There A Way To Increase The Maximum Limit?

    Ric007ishere
    Member

    Is there a way that I can have more Sub Chains please? If I add many Sub Chains (e.g. to Station Mode Handler) I get the error shown in the photo below.

    What are the maximum Sub-Chain limits please?  e.g.

    - 10 Sub Chains per Mode Handler ?

    - 10 Sub Chains per Command Handler?

    Ric007ishere_0-1655964379597.png

    Many thanks! 😊

    4 REPLIES 4

    hbszjjw
    Established Member

    you can change it in OpconBaseConfig in OpconBase library, the default value is 10, after change it, you should do "Clean Solution" -> "Rebulid Solution" and login to make it effective.

    hbszjjw_0-1655967455553.png

     

    SteffenR-
    Community Moderator
    Community Moderator

    Some libraries have constants that can be changed in the PLC application ("library parameters"). This feature prevents that the developer must build a new library version just to increase an array/string size.

    You may change the constants in the PLC library manager (double click on "References" or any referenced library/placeholder):

     
    SteffenR_2-1655967519687.png

     

    Very important:

    1. After changing such a constant value you must "clean project" and "activate configuration" again. Don't do an online change!
      If you don't clean and activate the configuration the SIZEOF function won't work correctly (maybe only in older Codesys/TwinCAT versions)!
    2. Ensure that you have all TwinCAT 4016/4020 patches from the Bosch internal release server or ask our helpdesk. Especially TwinCAT 3.1.4020.28 can loose changes of library constants without the patches!

     

    Additional note:

    If you have started your project with an OpconBase version less than 1.0.7.0, you must remove this placeholder/library from your project and export again (using at least OpconBase V1.0.7.0).

     

    Useful examples:

    • OpconBase: max. number of chains / add-ons / children / modes
    • OpconScannerBase / AtmoCognexInsightBase: max. code length
    • OpconPartCounter: type no. length
    • OpconTcpDDL: max. array size or items (note that the default values correspond to the maximum limits in Control plus Studio)

     

    Some constants may affect variables used in the HMI:

    • Arrays:
      In both cases you must manually edit the array size in Control plus Studio:
      • If the PLC array size is bigger than the Control plus Studio / HMI array size, you won't see the additional items in the HMI.
      • If the PLC array size is smaller than the Control plus Studio / HMI array size, you'll get an error during HMI startup.
    • Strings:
      • The HMI ignores the string size configured in Control plus Studio and checks each string variable before accessing it. Therefore you need not edit the string size in Control plus Studio (but you can).
         

    Thanks Steffen! 😊

    • Thank you!!! 😊
    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