Version problems in motion library for technology objects - Manual - AX2TIA - This package contains the documentation for ax2tia - Converting SIMATIC AX libraries to TIA Portal libraries,

AX2TIA CLI Tool (ax2tia)

Portfolio
SIMATIC AX
Product
AX2TIA
Software version
9.1.8
Edition
11/2024
Language
English (original)
Package Name
@ax/ax2tia-docs

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.