private void PLCRWtimer_Tick(object sender, EventArgs e) { string StringToWrite = null; for (int i = 0; i < int.Parse(LoopCount.Text); i++) { for (int j = 0; j < 100; j++) { StringToWrite = StringToWrite + i.ToString().PadLeft(4, '0'); } RdAllW(); WrtAllW(StringToWrite); } foreach (var item in PlcData.AllW) { Console.WriteLine(item); } PLCRWtimer.Stop(); }
private void btnLoopRW_Click(object sender, EventArgs e) { PLCRWtimer.Start(); }