Parameter instances of function blocks and classes - 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

Instances of function blocks and classes are not allowed to be passed as parameters of that type via:

  • VAR_INPUT
  • VAR_OUTPUT
FUNCTION_BLOCK Valve
    VAR
        closed : BOOL;
    END_VAR
    ;
END_FUNCTION_BLOCK

FUNCTION_BLOCK ValveController        
    VAR_INPUT        
        valve1 : Valve;        
    END_VAR
    VAR_OUTPUT
        valve2 : Valve;
    END_VAR
    ;    
END_FUNCTION_BLOCK

Using the above example will result in an error when trying to convert the library to a TIA Portal library.

Note

Multi-instances in the VAR section of function blocks and classes are supported.

Arrays of function blocks or classes are not supported at all.