SSrikakolum

Studio 5000 - How to Increase the LEN of string

7 posts in this topic

I want  increase the length of string from 82 to 150. By default it comes 82 is it possible to do so in Studio 5000

SS4.png

SS5.png

Share this post


Link to post
Share on other sites

You cannot change the capacity of the built-in STRING datatype, but you can create your own string datatypes.  You get to choose the capacity for those.  Anywhere in your own UDTs or AOIs, you can use any alternate string type you need.

1 person likes this

Share this post


Link to post
Share on other sites

Hello @pturmel I created a Datatype Strings with length 150 but when i used it , it says few errors. I am not sure why I work more on Omron PLCs so have not got much experience with studio5000 . i have attached screeshots can you please tell me what are they and what they mean?

Also this program was created by someone else. 

I am using the created strings for different Tag but why is it affecting DataType ALARM_DIGITAL TAGS?

ERR : BASE TAG IS NOT VERIFIED

ERR : ASSOCIATED TAG MUST BE A BOOL, SINT, DINT,LINT OR STRING DATA TYPE

ERR : TAG DOESN'T REFRENCE VALID OBJECT OR TARGET

SS7.png

SS8.png

SS9.png

SS6.png

Share this post


Link to post
Share on other sites

Hi paul the data type was string earlier. with len [82] which wasn't sufficient, so i created new string called strings and assigned the new data type. Then this happened. If I do it to string back again there is no Errors then.

Thank You

Share this post


Link to post
Share on other sites

To use the new "STRINGS" datatype in place of "STRING", you have to change the definitions of the tags and other data types that are using "STRING".  For any built-in data types, like ALARM_DIGITAL, you cannot do this, and you cannot use longer strings.  Sorry.

You have to create a new string data type with a name different from STRING.  Attempts to change the built-in string will break things.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now