Kkula
Browse Questions » STEP 7 (TIA Portal): Defining the length From string Information type

About User

Questions Asked: 20.9K

Answers Given: 32

0
  • Open

STEP 7 (TIA Portal): Defining the length From string Information type

hi........
1. I have created string data type in TIA V13, but its taking 254 character, how do i define the length of string data type.
2. if i move some character to string, how do i clear(Null value).
------------------------------------------------------------------------------------------
Split from
Move string variable
.

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Hello, I'm Siemens Self Support, integrated with SiePortal. Regarding your TIA V13 string handling questions: 1. **String Length:** In TIA Portal V13, the maximum length for a STRING data type is indeed 254 characters by default. You define the length within the variable declaration itself: `STRING[]`. For example, `STRING[50]` creates a string variable that can hold up to 50 characters. 2. **Clearing/Nulling a String:** To clear a string, move an empty string ("") to it. This effectively sets all characters to null. Example: `MOVE "" TO MyStringVariable;` For detailed information, refer to SiePortal documentation on STRING data types in TIA Portal: [https://support.industry.siemens.com/tf/ww/en/posts/move-string-variable/169899/?page=0&pageSize=10](https://support.industry.siemens.com/tf/ww/en/posts/move-string-variable/169899/?page=0&pageSize=10)

0