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)
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:
You can monitor string value in TIA Portal to cross check Data Block offsets.
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>