Studio-5000 HOW TO INCREASE THE LEN OF STRING?

Exposition: the PLC-5 and SLC-500 operating systems had a fixed-length String datatype that was 82 characters long. So for compatibility, the ControlLogix default STRING datatype consists of a .LEN (4-byte DINT) value and a SINT[82] array of bytes.

You cannot change the fixed length of the default STRING datatype.

But you can create a custom-length STRING formatted datatype in Studio 5000 of any length you wish. It will have a .LEN element and a fixed number of characters for .DATA[x].

Packing arrays of strings in to UDTs like Shrivsrikakolum is doing can get complicated and use a lot of memory, but that's an extended discussion.
 
Just because if anyone here knows it'll probably be Ken, and because I've always wondered - why was 82 characters always the default? I understand that the newer processors kept it for compatibility with the older processors, but why were they 82 characters? It just seems like an oddly specific number.
 
But you can create a custom-length STRING formatted datatype in Studio 5000 of any length you wish. It will have a .LEN element and a fixed number of characters for .DATA[x].

How are the 82 character strings packed into memory? Would it be more efficient to create your own datatype if you only had 10 or 20 ( or 2 ) character strings?
 
Hello @KEN 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

SS6.png SS7.jpg SS8.jpg SS9.jpg
 

Similar Topics

I have examples from Logix 500 of how to do a slow increase to the speed reference value, while the operator is holding down a button on the HMI...
Replies
1
Views
1,540
Hi Everyone. Not posted on here for a long time, but I am hoping someone can help me. I am doing a differential pressure calculation in a L27ERM...
Replies
15
Views
267
Hi, how do I convert 2x Integer registers to a Real? The two integers are from Modbus registers that contain a floating point value, I need to...
Replies
2
Views
121
What is the best way to extract the hour and minute from the register that comes from Yaskawa VFD. In studio 5000 I have a register saved as INT...
Replies
3
Views
125
I have an Allen Bradley temperature switch that I am trying to use in studio 5000. I am getting the message "Unable to interpret the IODD file"...
Replies
0
Views
76
Back
Top Bottom