private void readInt8Val(Tag tag, Libplctag client) { var sb = new StringBuilder(); for (int i = 0; i < tag.ElementCount; i++) { sb.Append($"{tag.Name} = {client.GetInt8Value(tag, (i * tag.ElementSize))}\n"); } MessageBox.Show(sb.ToString(), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); }