Technical data

Testing with the Variable Table
20.4 Entering Variables in Variable Table
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 451
20.4.5 Upper Limits for Entering Counters
Note the following upper limits for entering counters:
Upper limit for counters: C#999
W#16#0999 (maximum value in BCD format)
Examples:
Address Monitor
Format
Enter Modify Value Display Explanation
C1 COUNTER 137 C#137 Conversion
MW4 COUNTER 137 C#89 Representation in BCD format
possible
MW4 HEX 137 W#16#0089 Representation in BCD format
possible
MW6 HEX 157 W#16#009D Representation in BCD format not
possible, therefore the monitor
format COUNTER cannot be
selected
Note
If you enter a decimal number for a counter and do not mark the value with C#, this value is automatically
converted to BCD format (137 becomes C#137).
The modify values for addresses of the data type WORD, for example, IW1, are converted to BCD format. Not
every bit pattern is a valid BCD number, however. If the entry cannot be represented as COUNTER for an
address of the data type WORD, the application reverts automatically to the default format (here: HEX, see Select
Monitor Format, Default Command (View Menu)) so that the value entered can be displayed.
20.4.6 Inserting Comment Lines
Comment lines are introduced by the comment marker "//".
If you want to make one or more lines of the variable table ineffective (as a comment line), use the
Edit > Row not Effective menu command or the corresponding symbol
in the toolbar.