Data Block (Db) Editor - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Consider these main points when you select the STL editor:
● STL is most appropriate for experienced programmers.
● STL sometimes allows you to solve problems that you cannot solve very easily with the
LAD or FBD editor.
● While you can always use the STL editor to view or edit a program that was created with
the LAD or FBD editors, the reverse is not always true. You cannot always use the LAD
or FBD editors to display a program that was written with the STL editor.
5.4

Data block (DB) editor

The data block allows you to assign constants (Page 83) (either numeric values or character
strings) to specific locations of V memory. You can make value assignments to byte (V or
VB), word (VW), or double word (VD) addresses. You can also enter optional comments,
preceded by // double forward slashes.
● The first line of the data block must have an explicit address assignment. You can use a
memory address (absolute address) or a symbol name from the symbol table (Page 118)
that you have previously assigned to an address (symbolic address).
● Subsequent lines can have explicit or implicit address assignments. An implicit address
assignment is made by the editor when you type multiple data values after a single
address assignment, or type a line that contains only data values. The editor assigns an
appropriate amount of V memory based on your previous address allocations and the
size (byte, word, or double word) of the data value(s).
● The data block editor is a free-form text editor; however, it expects an address or symbol
name in the first position. If you are continuing an implicit data value entry, enter at least
one space in the address position before entering the implicit data value assignment.
After you finish typing a line and press the ENTER key, the data block editor formats the
line (aligns columns of addresses, data, and comments; capitalizes V memory addresses)
and redisplays it. The data block editor accepts uppercase or lowercase letters and
allows commas, tabs, or spaces to serve as separators between addresses and data
values.
● Pressing CTRL–ENTER after completing an assignment line auto-increments the address
to the next available address.
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
Programming concepts
5.4 Data block (DB) editor
115

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents