Endless ST loops and their implications - Manual - AxUnit-ST - AxUnit ST documentation package - AxUnit-ST,

AxUnit-ST CLI Tool (test)

Portfolio
SIMATIC AX
Product
AxUnit-ST
Software version
8.3.9
Edition
07/2025
Language
English (original)
Package Name
@ax/axunitst-docs

If your ST code contains an endless loop, and the endless loop is executed during testing, there are two ways to solve the problem and stop the test execution:

  • Simply wait for 5 minutes. A test run will be aborted after this time has passed.
  • If you use the CLI or the stop button does not stop the test execution:
    • Cancel the test in the CLI by pressing Control + C.
    • Open the task manager of your operating system.
    • In the background processes, search for the task tests.exe and abort it.

You will be able to execute your tests again.