String WinCC Flex Portal and Simatic does not match ???

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hello,

I'm having troubles with strings...
DB761.DBX16.0 is the offset for a string... in the HMI, this works the way it should, but in the PLC, the first 2 bytes are rubbish ... ?? The same problem appears on an other stringtag ??

What's wrong ?

Here some screenshots:

1.jpg

2.PNG

3.jpg

Thanks,

Kind regards,
Combo
 
Erp

Thanks,

ERP reads the String via OPC. The problem is that they see those 2 byte's,
is there a way to filter out those 2 bytes ? Maybe send it in an other format... ?

Kind regards,
Combo

The first two bytes in a string contain the max string length and the actual string length.
 
Then they read the STRING in a wrong way. The two initial bytes is part of the format for a STRING and should be interpreted properly by the OPC server. The two bytes cannot be ignored.
Do they read as a STRING or as an ARRAY of CHARs ? If the latter then it explains it.

You can send and they can read as an ARRAY of CHARs instead of a STRING, but that only works if the text to transfer always has a fixed length.
 

Similar Topics

Can somebody help I am displaying a scanned string via a intermec hand scanner onto a MP377 with a I/O field on wincc flex.The string field length...
Replies
16
Views
8,742
I have 1 TAG for a column. An array of 500 values But for some reason it doesn't work anymore, maybe because I try todo the same with an...
Replies
12
Views
6,967
Hi all, I'm trying to connect WinCC Pro to SQL server through OBDC. Everything is okie, I'm able to transfer number, DateTime and even a direct...
Replies
2
Views
1,445
Hello everyone, I am trying to send some data from WinCC to PLC. All types of data work fine, except string data type. I am getting the string...
Replies
25
Views
8,208
Hi everybody In my program I have five bytes MB10 w#16#62 MB11 w#16#50 MB12 w#16#24 MB13 w#16#10 MB14 w#16#00 I want to show these...
Replies
1
Views
2,568
Back
Top Bottom