Value messages - Manual - Structured Text Debugger - The SIMATIC Debugger. Enables debugging source code on the PLC and is needed to run the debugger extension. - Debugger (sdb),tool

Structured Text Debugger CLI Tool (sdb)

Portfolio
SIMATIC AX
Product
Structured Text Debugger
Software version
1.3.6
Edition
11/2024
Language
English (original)
Package Name
@ax/sdb

Once the install state has changed to 'Installed', the SDB will send value updates to the terminal every 200 ms. The format for each of these messages is:

Scope: <filepath> -> Line:<scopeStart> -> <pouName>
   Logpoints:
      Line:<line> Id:<id> Age:<ageValue>
         <variables[0].name> -> <variables[0].Value>
         <variables[1].name> -> <variables[1].Value>
         ...
         <variables[n].name> -> <variables[n].Value>
      ...

\<filepath>
The path to the ST file in which the scope is located at.

\<scopeStart>
The line number where the scope starts. A scope is defined by the 'pouName'.

\<pouName>
The program organization unit (Program, Method, Function, Function block) where the logpoints are located at.

\<line>
The line number where the logpoint is located at.

\<id>
The unique identifier of a logpoint. It can be used to remove the logpoint with the watch remove command.

Age
The 'ageValue' helps to classify all received values.

AgeValue Meaning
-1 Values are invalid.
0 Values are from the most recent call.
>0 Values are from a previous call. The value shows how often the POU has been called since the values were taken.

variables
Each variable that has been previously passed to the 'watch add' command is printed to the terminal in a new line. Refer to the 'Age'-section above regarding the validity of the values displayed.