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

MB_Sync_Offset ambiguous

MB_Sync_Offset ambiguous

aFouraker
Occasional Contributor

I thought that we could use both the CXA_PLCOpen library and also the CXA_MotionInterface in the same project but when I tried to add both libraries and use the CXA_PLCOpen library along with the MB_GearInPos, the structured type, MB_Sycn_Offset, is ambiguos because the same definition exists in both libraries. See the screen shot below. 

aFouraker_1-1723660140149.png

 

aFouraker_0-1723660121762.png

 

3 REPLIES 3

bostroemc
Occasional Contributor

Typically ambiguities like this can be resolved by referring explicitly to the libary namespace in the declaration:

2024-08-14_14h37_18.png

2024-08-14_14h38_08.png

aFouraker
Occasional Contributor

@bostroemc, yes, this is what I did to get past that problem.

I wanted to point this out becuase the other types in the libraries have different names, I presume by design. In this case, the name is exaclty the same. My current understanding is that the axisinterface will be the drop-in replacement to parameter access on the MLC systems. If that is the case then it should be expected that these two libraries co-exist in most applications. These shouldn't use the same name, it creates confusion. If they are the exact came type I would think one could reference the other. 

Thanks for bringing this up. In the future, we will put the motion structures, which are used in different libraries in CXA_Motion.

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