Example #1
0
        static void InterlockR1(CancellationToken token)
        {
            Task.Run(() =>
            {
                while (true)
                {
                    if (token.IsCancellationRequested)
                    {
                        break;
                    }

                    robotManager.SetInterLock(Robots.R2
                                              , 1
                                              , robotManager.IsInterLock(Robots.R1, 1) ? true : false);

                    robotManager.SetInterLock(Robots.R3
                                              , 3
                                              , robotManager.IsInterLock(Robots.R1, 3) ? true : false);

                    Thread.Sleep(100);
                }
            });
        }