Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    How to change the number of sensors of BasMoveFlexible during runtime?

    How to change the number of sensors of BasMoveFlexible during runtime?

    hemgas
    New Poster

    I have changeover pieces with a varying number of pneumatic cylinders. All cylinders are operated only one valve. But each cylinders has its own set of sensors. Now the question: How can I configurate this in Control Plus Studio? If I use BasMove Flexible the number of used Sensors is constant. What I need is a way to change this during the changeover process.

    1 REPLY 1

    SteffenR-
    Community Moderator
    Community Moderator

    There are two solutions:

    1. An easy solution would be to add one BasMove for each set of sensors. Depending on the active type number you can use only one of the BasMoves in your application code.
      Also in the HMI you can hide the BasMoves except the one that is relevant for the current type number, see explanation/pictures in this forum post:
      https://community.developer.bosch.com/t5/Control-plus/How-to-realize-3-positions-with-two-cylinders/...
      Disadvantage of this solution is that you probably have to deativate the IoStableCheck (which is checking that sensors/outputs do not change its state without running command).

    2. Don't use the parameters in Control plus Studio / OES, but set the ParCfgIo parameters manually in your appliction code - depending of the current type number.
      Parameters will only be applied when the UnitState of the BasMove changes from DISABLED to OPERATIONAL. That means, everytime you want to change to IO parameters (e.g. after PLC startup and changeover), you have to set UnitStateReq:=DISABLED, then set the ParCfgIo parameters, then set UnitStateReq:=BACKBONE_CONTROLLED (= OPERATIONAL) again.
      Disadvantage of this solution:
      You have to create your own HMI views for the BasMove using the visibility property to show only the IOs in the view that are relevant for the current type number. You cannot use the automatic generated HMI.
      I didn't test this solution, but it should work.

     

    Solution 1 is easier for debugging, that's why I would prefer this solution.

    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