McProtocol
McProtocol copied to clipboard
How can I read ASCII data?
I tried with below code.
PLCData<char> devices = new(PlcDeviceType.W, 0x100, 256);
devices.ReadData();
StringBuilder sb = new();
for (int i = 0; i < 160; i++)
{
sb.Append(devices[i]);
}
sb.ToString();
However, I get "McProtocol.PLCData`1[System.Char]".
How can I get the string?