Hi,
if you add the 5 Bytes in WinCC as separate tags (MB10 to MB14), you can use an I/O Field and add a C-script as output value like this:
Code:
char *str;
str = SysMalloc(11); /* allocate memory for a string with 10 chars plus ending \0 '
sprintf(str, "%02x%02x%02x%02x%02x", GetTagByte("MB10"), GetTagByte("MB11"), GetTagByte("MB12"), GetTagByte("MB13"), GetTagByte("MB14"));
return str;
As trigger should add all 5 bytes, so that the script is called when one of the 5 values has changed.
If you would have 4 bytes instead of 5 bytes, it should be possible to use the hexadecimal output style of an I/O field. But then you have a different byte order.