modify - 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

The 'modify' command is used to modify global variables.

modify <variable> <value>

\<variable>
The symbol (variable name) or absolute address to modify.
An absolute address must be specified as described in the variables section of the ST chapter. For example '%QW0' refers to the first 16 output bits.

_\<value>_
The value to be set for the symbol/address.

  • The value of boolean types (BOOL, BBOOL) can be set with 0, 1, false and true (case-insensitive).
  • The value of unordered types (BYTE, WORD, DWORD, LWORD) and integer types (SINT, INT, DINT, LINT, USINT, UINT, UDINT, ULINT) can be set in binary (2#), octal (8#), decimal and hexadecimal (16#) format.
  • The value of floating-point types (REAL, LREAL) must be set with a dot as decimal separator.