I use this: if (Box_date_type1.Text == text_s5time) { byte[] Buffer = new byte[2]; int Result; int hod = 0; int min = 0; int sec = 0; int msec = 0; Result = Client.DBRead(Convert.ToInt16(txt_DB_number1.Text), Convert.ToInt16(txt_address1.Text), 2, Buffer); int result = 0; foreach (byte bcd in Buffer) { result *= 100; result += (10 * (bcd >> 4)); result += bcd & 0xf; } string result_string = result.ToString(); if (result_string.Length < 4) //less than 9,9sec { sec = result / 100; msec = result % 100;...
Thanks a lot - it works. Glad to know you are going to release new version of library....
use this: public void GetStatus() { Int32 status2 = 0; var watch = global::System.Diagnostics.Stopwatch.StartNew();...
Hi guys, Im working with S7-300 and c#. Im trying to handle with Counters but with...
Thanks man.
Hi, here is the code about CPU Info: public void CpuInfo() { S7Client.S7CpuInfo Info...
Hi guys, I have done several communication functions PC - S7-300, but I cant break...