Workflow Overview - Manual - TIA2ST - A CLI tool to import TIA Portal project data into a SIMATIC AX project. - TIA2ST - Convert parts of TIA Portal projects to ST code,tool

TIA2ST CLI Tool (tia2st)

Portfolio
SIMATIC AX
Product
TIA2ST
Software version
2.0.24
Edition
01/2025
Language
English (original)
Package Name
@ax/tia2st

The picture below shows the basic workflow:

Overview

Key points to note:

  1. The TIA Portal project contains one or more "coupling DBs" for the TIAX Direct Loading workflow. The TIA Portal project is always the source. The declaration of these data blocks is only possible in the TIA Portal project.
  2. The "coupling DBs" are compiled and loaded into the PLC using TIA Portal.
  3. The import-db command transforms the data blocks from the TIA project into a SIMATIC AX library. The generated library contains all required data types and functions to access the "coupling DBs" in the SIMATIC AX application.
  4. The access functions of the generated SIMATIC AX library are used to obtain a reference to the "coupling DB". With this reference, the variables in the data block can be read and written.
  5. After changing the declaration of a "coupling DB" it needs to be downloaded again via offline TIA Portal and the PLC in STOP mode. The import-db command needs to be executed again to synchronize the data definition in TIA Portal and data access via SIMATIC AX. The updated AX applications must be downloaded again. Please find the chapter Modifying a "coupling DB" for more details.