How to configure string datatype in S7-Protocol (S7-300-400-1200-1500)? - Manual - SIMATIC S7 Connector - Industrial Edge - Industrial Edge App

SIMATIC S7 Connector

Product
SIMATIC S7 Connector
Product Version
v2.2
Edition
07/2024
Language
en-US (original)

To configure string datatype in S7-Protocol (S7-300/400/1200/1500), you must specify the address based on offset formed in TIA Portal. The format is as follows:

<DataBlock>. <DataBlock Offset>

For example, Tag 11 < string Type> in Data Block 1 (DB1)

171314389131-d2e6544

Off set of Tag 11 (String tag) is 22 as depicted in the above image. The address format for Tag11 (String tag) is 'DB1.DBB22'.

You can configure the string tag data type in S7-Protocol (S7-300/400/1200/1500) as follows:

171314393611-d2e6550

You can monitor string value in TIA Portal to cross check Data Block offsets.

171314410891-d2e6554

Info

When configuring the string datatype or fixed length string, you must adhere to the following address syntax:

Common Connector Configurator You must provide length in string length field in configurator.

String datatype with default length 256 and fixed length:

%DB<DB_Number>.DBX<offset>.0``%DB<DB_Number>.DBB<offset>

Common Configurator String datatype with default length 256:

%DB<DB_Number>.DBX<offset>.0``%DB<DB_Number>.DBB<offset>

String datatype with fixed length:

%DB<DB_Number>.DBX<offset>.0:<Length>``%DB<DB_Number>.DBB<offset>:<Length>