Skip to content

How can I read ASCII data? #1

@locodust6

Description

@locodust6

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions