Esempio n. 1
0
        /// <summary>
        /// COmronManager Constructor
        /// </summary>
        public COmronManager()
        {
            _portCompolet = new CIPPortCompolet();

            _class1 = new VariableCompolet();
            //_class1.Active = true;
            //_class1.PlcEncoding = Encoding.UTF8;

            _class3 = new CJ2Compolet();
            //_class3.PeerAddress = "192.168.123.8";
            //_class3.Active = false;
            //_class3.ConnectionType = ConnectionType.Class3;
            ////_class2.DeviceType = 0;
            //_class3.HeartBeatTimer = 1000;
            ////_class2.IsConnected = false;
            //_class3.LocalPort = 2;
            ////_class2.MajorRevision = 0;
            ////_class2.MinorRevision = 0;
            //_class3.OnHeartBeatTimer += new EventHandler(_class2_OnHeartBeatTimer);
            //_class3.PlcEncoding = Encoding.UTF8;
            ////_class2.ProductCode = 0;
            //_class3.ReceiveTimeLimit = 5000;
            //_class3.RoutePath = @"2%192.168.123.8\1%0";
            ////_class2.SerialNumber = 0;
            ////_class2.TypeName = "";
            //_class3.UseRoutePath = false;
            ////_class2.VariableNames = new string[5];
            ////_class2.VendorID = 0;
        }