If you create an AX project based on the MotionControl-native-v5 library and create a function such as
FUNCTION MotionExample
VAR_IN_OUT
axis : TO_PositioningAxis;
instMC : MC_POWER;
END_VAR
the import will fail because the version of the motion library in the TIA Portal is set only for instructions and not for TOs. The TO-is thus imported with the default-version V7 and the instruction switches to V5, generating an inconsistent block.
The same applies to structs from the motion library.
TIP
Change the version of the technology object in the TIA Portal program to 5.x before importing the AX library.