The tool tia2st provides the following commands:
- IMPORT: extract data from a TIA Portal project into ST code based on a
tia2sttemplate. - 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 ...