Пример #1
0
        public static void CheckStatusOf()
        {
            Console.WriteLine("");
            Console.WriteLine("---------------");
            Console.WriteLine("GetBasePoint() => " + Plc2.GetBasePoint());
            Console.WriteLine("GetHanginpoint() => " + Plc2.GetHanginpoint());
            Console.WriteLine("GetNowPoint() => " + Plc2.GetNowPoint());
            Console.WriteLine("GetClotheInHook() => " + Plc2.GetClotheInHook());
            Console.WriteLine("GetWaitHangNum() => " + Plc1.GetWaitHangNum());
            Console.WriteLine("GetClotheReady() => " + Plc1.GetClotheReady());
            var i = 1;

            Tmr = new TestTimer();
            while (i < 100)
            {
                i++;
                Console.WriteLine("HangInState() => " + Plc2.Hang_In_State());
                Tmr.WaitTime(500);
            }
            Console.WriteLine("---------------");
        }
Пример #2
0
        public static void SendToSlot()
        {
            Tmr.WaitTime(2000);

            while (!Plc2.GetClotheInHook())
            {
                Console.Write(" - HangIn F");
                Plc2.Hang_In();
                Tmr.WaitTime(1000);
            }

            while (Plc2.GetClotheInHook())
            {
                Console.Write(" - HangIn T");
                Tmr.WaitTime(1000);
            }
            return;
        }