Click here to Skip to main content
15,919,121 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can any one tell me how to read string using modbus tcp . I'm communicating with plc

What I have tried:

bool[] readcoil = client.ReadCoils(9, 10);
for (int i = 0; i < readcoil.Length; i++)
Console.WriteLine("values of coil" + (9+ i + 1) + readcoil[i].ToString());

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900