using System; namespace WIDESEA_WCS { class Program { //static List clients; static void Main(string[] args) { //clients = new List(); //List dBGroups = new List() //{ // new DBGroup() // { // DBGroupName = "SC1", // DBGroupIPAddress = "127.0.0.1", // Port = 102, // Rack = 0, // Slot = 0, // DBGroupItems = new System.Collections.Generic.List() { new PLCDBItem { StackerNum = "SC1", ItemAddress = "DB1.0.0", ItemDataType = "bool", ItemName = "心跳" } } // } //}; //for (int i = 0; i < dBGroups.Count; i++) //{ // PLCClient client = new PLCClient(HslCommunication.Profinet.Siemens.SiemensPLCS.S1200); // clients.Add(client); //} //StartHeart(clients); //this.thread = new Thread(() => { while (true) { action(this); Thread.Sleep(2000); }; }) { IsBackground = true }; //this.thread.Start(); Console.Read(); } //void StackExecute(Dictionary clientsDic) //{ // try // { // } // catch (Exception ex) // { // } //} } }