Choose string length in DB

rQx

Lifetime Supporting Member
Join Date
Oct 2010
Location
Trelleborg
Posts
1,051
Hi!

I have a datablock with a string. I want the string to be just 10 char so it doesn't take up 256 bytes.
I write string[10] but still the datablock make it occupie 256 bytes. Any help?
 
It occupied 256 bytes for some reason. I will make a screen tomorrow when I am at work again.
 
Here is the screen of my DB

skrmklippu.jpg
 
Yes I know it should, and as you see in my picture I state batch1[10] and still get 256bytes. Thats what's bothering me =P
 
Ahh I wrote the [10] in my name field instead of the type field. So obvious when I see it but so tricky when you don't know it =)
 

Similar Topics

Hi, I want to use PLCSIM because the hardware I was working on has now been delivered to customer. Which option do I choose from this drop-down...
Replies
12
Views
368
hi all, i'm building a contrologix system that has 4 IB32, 2 OB32, 2 IF16HI, 2 OF16HI and 2 EN2T modules. without knowing the process or the...
Replies
8
Views
3,364
Good Morning all, I am a beginner level PLC guy, I am planning to setup a lab using Allenbradly Compactlogix 5380 controller. I have selected the...
Replies
1
Views
1,557
I am developing a PLC. The IDE for my PLC will be VS Code. I want my PLC to support IEC-61131-3 but only one language with is ST. Actually I...
Replies
28
Views
7,947
Back
Top Bottom