PLC variables
Counters
● Counter (Cx)
● Counter (Cx)
Data
● Data block (DBx): Data bit (DBXx), data byte (DBBx), data word (DBWx),
data double word (DBDx)
● Data block (VBx): Data bit (VBXx), data byte (VBBx), data word (VBWx),
data double word (VBDx)
Formats
B Binary
H Hexadecimal
D Decimal without sign
+/-D Decimal with sign
F Floating point (for double words)
A ASCII character
Notation examples
Permissible notation for variables:
● PLC variables: EB2, A1.2, DB2.DBW2, VB32000002
● NC variables:
– NC system variables: Notation $AA_IM[1]
– User variables / GUD: Notation GUD/MyVariable[1,3]
– OPI notation: /CHANNEL/PARAMETER/R[u1,2]
Note
If the PLC user program writes a string in an NC/PLC variable, the string will only be displayed
correctly if the variable is parameterized as a field variable of the type "A" (ASCII) on the NC
side.
Example of a field variable
Variable Format
DBx.DBBy[<number>] A
Inserting variables
The start value for "Filter/Search" of variables differs. For example, to insert the variable $R[0],
enter the following start value:
● The start value is 0 if you filter according to "System variables".
● The start value is 1 if you filter according to "All (no filter)". In this case, all signals are
displayed and shown in the OPI notation.
Service and diagnostics
18.1 NC/PLC variables
SINUMERIK Operate (IM9)
406 Commissioning Manual, 12/2017, 6FC5397-1DP40-6BA1