Developer Portal Community

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

    How to realize 3 positions with two cylinders

    How to realize 3 positions with two cylinders

    hbszjjw
    Established Member

    I have a use case like this.

    There are two cylinders mounted one by one(C1, C2), they are used to get 3 positions(S1, S2, S3), but these sensors are not installed in cylinders, they are installed out of these cylinders with fixed positions, and these positions can be got by following operation(just an example):

    C1 in work position & C2 in work position  = S1

    C1 in base position  & C2 in base position  = S2

    C1 in work position  & C2 in base  position = S3

    Then I have following options to realize it:

    1, use two BasMoveStantdard objects, but the problem is one cylinder can't get right sensor signals, e.g. if C1 in base position, C2 can't get work position.

    2, use one BasMove3Positions object, but the problem is for this object, it has 3 output with 3 input, that mean 1 output will get 1 position, this is not suitable for my case, I can use some flags to do converstion in PLC program, but is there any better solution?

    3, and if I want to use it as an internal element in another objects, I can't use the option 2, any other solutions for it? 

     

     

    5 REPLIES 5

    Thorsten_Brach
    New Contributor

    If the BasMove3Position does not work,
    I think I would create a CommandHandler with the commands BAS, MID, WRK
    and under this CommandHandler I would use 3 BasMoveFelxible K301_BAS , K301_MID and K301_WRK.

    In each instance, I would always configure all valves and switch them so , that the correct position is reached
    and configure the sensors accordingly.

    In the command sequences of the CommandHandler, I would then only start the WRK position of the respective instance.

    And I would hide the underlaying BasMoveFlexible in the HMI, so that there is only one element to control the 3 positions.



    That looks like a good idea, and any other suggestion if I want to use it in one functional object which contain it as a internal element?

    nexidator
    Community Moderator
    Community Moderator

    Thorsten_Brach's solution should be usable as an InternalElement as well. Functional objects can have more than one level of internal elements. In this case, you need to forward the Port parametes twice, from each level to the next one.

    hbszjjw
    Established Member

    for your suggestion, should I create a new object for this handler and then put it as internal element in another object or don't create new object and just put it as internal element in  object directly, if I can put it as internal element in object directly, how should I do? if there any examples?

    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