FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
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.
08-14-2024 08:29 PM
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.
Solved! Go to Solution.
08-14-2024 09:56 PM
Typically ambiguities like this can be resolved by referring explicitly to the libary namespace in the declaration:
08-15-2024 03:56 PM
@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.
10-02-2024 09:36 AM - edited 10-02-2024 09:37 AM
Thanks for bringing this up. In the future, we will put the motion structures, which are used in different libraries in CXA_Motion.