I'm reading an array of char from the plc but I have to add the character to the string if it's not empty but as in the picture all the character in the plc are empty but when run the code it add all the character anyway. I can't understand where the problem is
Code:
String sealNumber = "";
for (int i = 90; i < 108; i++)
{
String c = S7.GetCharsAt(bufferLineToRead, i, 1);
if (c != "" && c != "?")
{
Console.WriteLine("STRINGA " + c);
sealNumber += c;
}
}