Extended instructions
9.2 String and character
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
371
Example: Meaning of SIZE parameter
The following example illustrates the meaning of the SIZE parameter. The following tag
name is read from the block interface: "MyPLCTag" (The double quotes at the start and end
belong to the name.)
1 '...'
• First character of WSTRING:'
• Identifier that the name was truncated: ...
• Last character of WSTRING:'
2 '"...'
• First character of WSTRING:'
• The first character of the name and identifier that the
name was truncated:"...
• Last character of WSTRING:'
3 '"M...'
• First character of WSTRING:'
• The first two characters of the name and identifier that
the name was truncated:"... "M...
• Last character of WSTRING:'
6 '"MyPL...'
• First character of WSTRING:'
• The first five characters of the name and identifier that
the name was truncated: "MyPL...
• Last character of WSTRING:'
0 '"MyPLCTag"'
• First character of WSTRING:'
• All characters of the name: "MyPLCTag"
• Last character of WSTRING:'