public void LoadAdress()
        {
            ListMachines = new List <MachineItem>();
            PLCData pLCData = new PLCData();

            //     ListMachines.Add(new MachineItem { IP = "172.16.1.145", Line = "L03", IsEnable = true });
            ListMachines = pLCData.GetIpMachineRuning();
        }
Example #2
0
        public void LoadAdress()
        {
            ListMachines = new List <MachineItem>();
            PLCData pLCData = new PLCData();

            ListMachines = pLCData.GetIpMachineRuning();
            ListBarcode  = VariablePLC.barcodeaddress();

            tagsbarcode  = new List <Tag>();
            ListTagWrite = new List <Tag>();
            Tag tag = new Tag(VariablePLC.AddingAvaiable, "");

            ListTagWrite.Add(tag);
            tag = new Tag(VariablePLC.GapQty, "");
            ListTagWrite.Add(tag);
            foreach (var item in ListBarcode)
            {
                tagsbarcode.Add(new Tag(item, ""));
            }

            ListError = VariablePLC.List38Errors();
            tagsError = new List <Tag>();
            foreach (var item in ListError)
            {
                tagsError.Add(new Tag(item, ""));
            }

            ListRework = VariablePLC.List38Reworks();
            tagsRework = new List <Tag>();
            foreach (var item in ListRework)
            {
                tagsRework.Add(new Tag(item, ""));
            }
            tags = new List <Tag>();

            tag = new Tag(VariablePLC.Good_Products_Total, "");
            tags.Add(tag);
            tag = new Tag(VariablePLC.NG_Products_Total, "");
            tags.Add(tag);
            tag = new Tag(VariablePLC.RW_Products_Total, "");
            tags.Add(tag);
            tag = new Tag(VariablePLC.OnOFF, "");
            tags.Add(tag);
        }