Thanks,
while i connect, disconnect, and reconnect, the port changes, can I define const(hard) port?
another question:
"The FMD1616 PLC server socket is always open" which type of server this?
i succeed to connect to FMD1616 PLC server
but i try to send the string "abc/n", i got error, what i did wrong?
how i read the data from the controller?
my c# code:
tcpclnt.Connect("192.168.1.5", 9080);
// use the ipaddress as in the server program
Console.WriteLine("Connected");
Console.Write("Enter the string to be transmitted : ");
String str = Console.ReadLine();
Stream stm = tcpclnt.GetStream();
ASCIIEncoding asen = new ASCIIEncoding();
byte[] ba = asen.GetBytes(str);
Console.WriteLine("Transmitting.....");
stm.Write(ba, 0, ba.Length);