Strings WinCC -> S7-400

Jeebs

Member
Join Date
Feb 2007
Location
Leuven
Posts
1,059
Hi,

Got a question thats been bugging my collegue.
We use WinCC to fetch data from a SQL DB. These are mostly strings.
Now we need to send a couple of these strings from WinCC to the PLC. We're using 8-bit type character strings.

The irritating part is that the string in the PLC has an additional character in front of the string. And we have no clue what this character represents.

Any of you know what gets added?


Thanks

Jeebs
 
What do you mean by extra character? Is there more than lenght + array of chars + end mark of zero in it?

To clarify, this is what is normal string

Code:
Byte 0 := 2 (lenght of string)
Byte 1 := 'a' (first char)
Byte 2 := 'b' (second char)
Byte 3 := 0 (end mark)
Is there more than that?
 
Last edited:
I normally do not use the string function for that kind of application, due to the length that is added to the front
I use a Char. array in my db.
This is the link directly as char string in wincc.
Hope that helps.
If you need a sample please PM me then I will make a sample project for you with a SQL call script.
 

Similar Topics

I want to display My PLC software version by using string dispalyon Wincc HMI. I am using Siemens CPU313-2DP. So my question is How can i do it...
Replies
0
Views
1,871
Hey all, was wondering if it was possible to shift values in an array of strings? I have a database that I am loading up with "Users" in the...
Replies
2
Views
294
hi All I am completely green in Mitsubishi PLC (i used to program siemens) but need kepware to connect to FX3U pls with ENET adp module. Could...
Replies
31
Views
7,078
Hi, I have a list selector which I want to display the recipe found inside a plc-5. The recipe is store in an ascii table with each character...
Replies
4
Views
1,403
I'm fairly new to View Studio SE. I'm trying to do a simple visibility animation, but I would like to do so with a string tag. The tag is one...
Replies
0
Views
1,210
Back
Top Bottom