Example: - 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

Imagine a project with several Programmable Logic Controllers (PLCs), including - 'PLC_1' - 'PLC_2' - 'PLC_3' - and others ...

You want to develop an AX component specifically for PLC_2. Your goal is to exclude all other PLCs from the scope of your project.

{{#PLCs}}
     {{#Name.IsMatch(PLC_2)}}
          This block is valid only for PLC_2.
     {{/Name.IsMatch(PLC_2)}}
{{/PLCs}}

The parameter is a regular expression pattern. To learn about regular expressions, please refer to the Regular Expression Language - Quick Reference.

Note: The IsMatch function can be used with any context object that can be represented as a string, not just the Name.