How to increase STRING Length in Siemens program???

pjadha

Member
Join Date
Feb 2014
Location
pune
Posts
22
Hello Guys,
I have old Siemens program. In that DB952 is used for 2D barcode scanner data. Previously Barcode was only 10 letters but as per Customer requirement new Barcode is 12 letters. Now if we scan new Barcode with existing program it gives #####error on HMI. When I checked it I found in PLC program in DB952 STRING for barcode scanner data is defined as [10]. So now I want to increase that STRING Length so that I can scan my new Barcode with 12 letters without any error.
Please help me.....
Please see attached picture of my DB952 where STRING is declared.

STRING.jpg
 
Hello Guys,
I have old Siemens program. In that DB952 is used for 2D barcode scanner data. Previously Barcode was only 10 letters but as per Customer requirement new Barcode is 12 letters. Now if we scan new Barcode with existing program it gives #####error on HMI. When I checked it I found in PLC program in DB952 STRING for barcode scanner data is defined as [10]. So now I want to increase that STRING Length so that I can scan my new Barcode with 12 letters without any error.
Please help me.....
Please see attached picture of my DB952 where STRING is declared.


You change the [10[ to [12]. You'll also need to change the field length on the HMI, so it displays correctly.
 
You change the [10[ to [12]. You'll also need to change the field length on the HMI, so it displays correctly.
Hey mk42 Thank you very much.....It works.....
How much STRING Length we can define in DB field???
 
Hey mk42 Thank you very much.....It works.....
How much STRING Length we can define in DB field???

For an S7-300, I think the maximum is 255 chars. If you just declare a STRING with no defined length, it uses this maximum.
 

Similar Topics

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
Replies
8
Views
624
What has been your experience with year over year price increases on your Tech-connect service contracts? Is it up to the distributor? 30% seems...
Replies
5
Views
288
Hi everyone. I have a micrologix 1400 HSC reading a prox on a 40PPR large diameter (12") gear. This gear has large trapezoidal teeth. 500 RPM max...
Replies
41
Views
12,485
Yikes. Things are really starting to get crazy. Siemens had across-the-board price increases at the start of the year and now Rockwell: 7%...
Replies
42
Views
13,333
Hello everyone, I have a question in my mind. I am working on bag-filling process. Now i have a motor that brings goods and a loadcell. My...
Replies
36
Views
20,760
Back
Top Bottom