Command Line Reference - 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 tool tia2st provides the following commands:

  • IMPORT: extract data from a TIA Portal project into ST code based on a tia2st template.
  • IMPORT-DB: generates a SIMATIC AX library that allows your ST code to access data blocks ("coupling DBs") defined in a TIA Portal project.
  • IMPORT-SCL: transform SCL code and UDTs (User-defined Data Types) from a TIA Portal project to ST code.

Note

Most commands are based on TIA Portal Openness framework to extract data from the TIA Portal project.

During the execution of a command, a prompt may appear asking for permission to allow the tia-export.exe tool to connect to a TIA Portal instance. You have the option to grant this permission for each individual import or for all future imports (this will require Administrator rights). If you choose to deny this request, the tool will abort the command.

The tool waits 2 minutes and then aborts the operation if no answer is given.

To access the tool within a project, you must use Apax. Therefore, consider prefixing the following samples with 'apax' in a terminal window or command shell.

apax tia2st ...