Cloud workspace - 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
  1. Open the library project in the cloud workspace.
  2. Start the agent connected to the PLC.
  3. Configure the launch.json file (one-time action)

    • Click the debug icon
    • Click "create launch.json file"
    • Adapt the newly opened launch.json file to your needs (for example certificate, PLC ID). Add the "symbolsPath" parameter, which must point to your library file.

      • Copy PLC ID: Open PLC Explorer, right-click on the PLC and choose Copy PLC ID

      Example launch.json file

   {
       "version": "0.2.0",
        "configurations": [
        {
            "name": "Debug live on PLC",
            "type": "plc-debug",
            "request": "launch",
            "program": "${workspaceFolder}",
            "plcId": "09d14ab1-7848-4048-94e5-f3d6e813c20b",
            "password": "",
            "symbolsPath": "${workspaceFolder}/bin/plcsim/tiax.lib"
        }
    ]
   }
  1. Add logpoints to your code in the locations you want to look at more closely

    • By right-clicking a variable name and selecting "Add to logpoint"
    • By right-clicking on the left next to the line number, selecting "Add Logpoint ..." and entering the variable you want to debug in curly braces, for example {myVariable}

    The values are always retrieved and shown before executing the line of code in which the logpoint is located.

  2. Start debugging by either opening PLC Explorer and right-clicking on the PLC or pressing the Play button.

  3. Observe values

Note

Debugging the library in SIMATIC AX with SINUMERIK ONE is only possible via one of the PROFINET ports (x150, x160) present on the PLC module of the device. Debugging is not supported via CP.